diff options
| author | Syndamia <kamen@syndamia.com> | 2026-04-28 14:06:44 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-05-12 07:08:56 +0300 |
| commit | 0d249b1d47a7f84cfe5f09ad070d1affd26566da (patch) | |
| tree | f395f67eecb27daea3fc4a9ad8e59bf40f988984 /GlobalArena.c | |
| parent | 5c36b582ad60a569ed996fe188ed92ef6bd7fc5f (diff) | |
| download | foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.tar foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.tar.gz foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.zip | |
feat!: Refactor using MemoryManager
The idea is to provide a universal memory management "API", through
which you allocate and deallocate. This allows our implementations (for
String and Vector) to be more generic.
It does also allow usage of different allocators depending on situation.
Diffstat (limited to 'GlobalArena.c')
| -rw-r--r-- | GlobalArena.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/GlobalArena.c b/GlobalArena.c deleted file mode 100644 index e19e38d..0000000 --- a/GlobalArena.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "GlobalArena.h" - -BumpArena g_arena = NULL; - -void* -BG_alloc(usize size) { - return B_alloc(g_arena, size); -} - -int -BG_resizeable(void* ptr) { - return B_resizeable(g_arena, ptr); -} - -Result -BG_resize(usize size) { - return B_resize(g_arena, size); -} - -Result -BG_free() { - return B_free(g_arena); -} |
