Rename ...New/...Free to ...Create/...Destroy

This commit is contained in:
2023-11-16 06:26:24 +01:00
parent 581da2b990
commit 9e6c836207
11 changed files with 34 additions and 34 deletions

View File

@@ -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) {