1
0
Fork 0
forked from len0rd/rockbox

malloc(), best-fit for big blocks, small blocks treated separately, all

details in THOUGHTS. No headers and stuff added yet.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@569 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-13 19:35:10 +00:00
parent e14e13df5c
commit 1dd21edacf
12 changed files with 2110 additions and 0 deletions

View file

@ -0,0 +1,13 @@
void *dmalloc(size_t);
void dfree(void *);
void *drealloc(void *, size_t);
#define malloc(x) dmalloc(x)
#define free(x) dfree(x)
#define realloc(x,y) drealloc(x,y)
#define calloc(x,y) dcalloc(x,y)
/* use this to intialize the internals of the dmalloc engine */
void dmalloc_initialize(void);