Rename ...New/...Free to ...Create/...Destroy
This commit is contained in:
@@ -20,7 +20,7 @@ static void heapSiftDown(BzHeapHead *head, void *heap);
|
||||
|
||||
|
||||
|
||||
void *_bzHeapNew(i32 startCapacity, i32 stride, i32 weightOffset) {
|
||||
void *_bzHeapCreate(i32 startCapacity, i32 stride, i32 weightOffset) {
|
||||
i32 numBytes = sizeof(BzHeapHead) + (startCapacity + 1) * stride;
|
||||
BzHeapHead *heap = bzAlloc(numBytes);
|
||||
heap[0] = (BzHeapHead) {
|
||||
@@ -33,7 +33,7 @@ void *_bzHeapNew(i32 startCapacity, i32 stride, i32 weightOffset) {
|
||||
return &heap[1];
|
||||
}
|
||||
|
||||
void _bzHeapFree(void *heap) {
|
||||
void _bzHeapDestroy(void *heap) {
|
||||
bzFree(HEAP_HEAD(heap));
|
||||
}
|
||||
void _bzHeapClear(void *heap) {
|
||||
|
||||
Reference in New Issue
Block a user