|
|
|
@ -94,12 +94,12 @@ extern void* kern_os_malloc(size_t size); |
|
|
|
|
extern void kern_os_free(void* addr); |
|
|
|
|
extern void* kern_os_realloc(void* addr, size_t nsize); |
|
|
|
|
|
|
|
|
|
static void* kern_os_calloc(size_t num, size_t size) { |
|
|
|
|
static void* cs_kern_os_calloc(size_t num, size_t size) { |
|
|
|
|
return kern_os_malloc(num * size); // malloc bzeroes the buffer
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cs_malloc_t cs_mem_malloc = kern_os_malloc; |
|
|
|
|
cs_calloc_t cs_mem_calloc = kern_os_calloc; |
|
|
|
|
cs_calloc_t cs_mem_calloc = cs_kern_os_calloc; |
|
|
|
|
cs_realloc_t cs_mem_realloc = kern_os_realloc; |
|
|
|
|
cs_free_t cs_mem_free = kern_os_free; |
|
|
|
|
cs_vsnprintf_t cs_vsnprintf = vsnprintf; |
|
|
|
|