From 0d249b1d47a7f84cfe5f09ad070d1affd26566da Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 28 Apr 2026 14:06:44 +0300 Subject: 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. --- Array.h | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Array.h (limited to 'Array.h') diff --git a/Array.h b/Array.h deleted file mode 100644 index 508a069..0000000 --- a/Array.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef _ARRAY -#define _ARRAY - -#include "Types.h" -#include "BumpAlloc.h" - -typedef void* Array; - -Array A_new(BumpArena b, usize element_size, usize length); -usize A_length(Array arr); -usize A_count(Array arr); -Result A_push(Array arr, void *value); -Result A_ppush(Array arr, void *value); -void* A_pop(Array arr); - -Array AG_new(usize element_size, usize length); - -#endif /* _ARRAY */ -- cgit v1.2.3