#ifndef __MALLOC_FREELIST_H_ #define __MALLOC_FREELIST_H_ #include "uvm32_target.h" #ifdef __cplusplus extern "C" { #endif //__cplusplus /** * Initialize malloc with a memory address and pool size */ void malloc_addblock(void* addr, size_t size); /** * Free-list malloc implementation */ void* fl_malloc(size_t size); /** * Corresponding free-list free implementation */ void fl_free(void* ptr); #ifdef __cplusplus } #endif //__cplusplus #endif //__MALLOC_FREELIST_H_