mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
30 lines
493 B
C
30 lines
493 B
C
#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_
|