From befd2899835a322d49c438c9e5f0777ed56bd21b Mon Sep 17 00:00:00 2001 From: Greg Wells Date: Thu, 15 May 2025 18:47:01 -0400 Subject: [PATCH] update list name --- src/lists/gryphn_array_list.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lists/gryphn_array_list.h b/src/lists/gryphn_array_list.h index 3c344ae..29d6871 100644 --- a/src/lists/gryphn_array_list.h +++ b/src/lists/gryphn_array_list.h @@ -1,7 +1,7 @@ #pragma once #include "stdlib.h" -typedef struct gnCList { +typedef struct gnArrayList { int count; int maxCount; void* data; @@ -9,7 +9,7 @@ typedef struct gnCList { const int GROWTH_RATE = 2; // i heard somewhere that 1.5 is better but imma use 2 because I also heard that its better somewhere else -inline gnCList gnCreateCList(int count) { +inline gnArrayList gnCreateArrayList(int count) { gnCList newList; if (count == 0) { @@ -23,7 +23,7 @@ inline gnCList gnCreateCList(int count) { return newList; } -inline void gnCListResize(gnCList* cList, int count) { +inline void gnArrayListResize(gnArrayList* cList, int count) { cList->count = count; while (cList->count > cList->maxCount) { int oldMaxCount = cList->maxCount; @@ -36,7 +36,7 @@ inline void gnCListResize(gnCList* cList, int count) { cList->data = realloc(cList->data, cList->maxCount); } -inline void gnCListReserve(gnCList* cList, int count) { +inline void gnArrayListReserve(gnArrayList* cList, int count) { while (cList->count > cList->maxCount) { int oldMaxCount = cList->maxCount; cList->maxCount *= GROWTH_RATE;