#ifndef ALLOCATOR_H #define ALLOCATOR_H #include typedef struct { int length; int next; bool marked; // Object* data; } Array; typedef struct { int capacity; int usedStart; int freeStart; Array* data; } Allocator; void aInit(Allocator* a); void aDelete(Allocator* a); int aAllocate(Allocator* a, int length); void aClearMarker(Allocator* a); void aRemoveUnmarked(Allocator* a); #endif