add SLOB allocator

This commit is contained in:
Sven M. Hallberg 2015-12-27 14:45:21 +01:00
parent efea10417c
commit 30cc709b8c
7 changed files with 389 additions and 2 deletions

View file

@ -789,6 +789,9 @@ HTokenType h_get_token_type_number(const char* name);
const char* h_get_token_type_name(HTokenType token_type);
// }}}
/// Make an allocator that draws from the given memory area.
HAllocator *h_sloballoc(void *mem, size_t size);
#ifdef __cplusplus
}
#endif