parrotcode: Memory allocation | |
Contents | C |
src/memory.c - Memory allocation
The memory (mem) API handles memory allocation,
Basically just a wrapper around malloc/calloc/realloc/free()
with an setup function to initialize the memory pools.
void *mem_sys_allocate(size_t size)
malloc
to allocate system memory.void *mem_sys_allocate_zeroed(size_t size)
calloc
to allocate system memory.void *mem_sys_realloc(void *from, size_t size)
void mem_sys_free(void *from)
void mem_setup_allocator(Interp *interpreter)
|