1
/********************************
2
because this application will do lots of smaller
3
allocations and never release them, this basic
4
memory allocator is optimized for it and will chunk
5
memory together so it easily can be released at once.
6
when we are done. This also removes allmost all
7
overhead per allocation.
8
**********************************/
10
struct HEAP *mem_create();
11
void mem_destroy(struct HEAP *heap);
13
void *mem_allocate(struct HEAP *heap, int size);
14
void mem_dumpstats(struct HEAP *heap);
16
/* TODO: perhaps some sort of string pooling to reduce memory usage? */