summaryrefslogtreecommitdiffstats
path: root/src/core/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Implemented realloc(), and changed the semantics of malloc(0) to allowMichael Brown2006-11-241-15/+79
| | | | for realloc(0) being a valid way to free memory.
* We don't actually have a stdio.h header file. Our printf() functions areMichael Brown2006-09-271-1/+0Star
| | | | | | | | defined in vsprintf.h. (This may change, since vsprintf.h is a non-standard name, but for now it's the one to use.) There should be no need to include vsprintf.h just for DBG() statements, since include/compiler.h forces it in for a debug build anyway.
* include stdio.h to suppress printf warning, general warnings fixupsMarty Connor2006-09-271-0/+2
|
* Tidied up debugging messagesMichael Brown2006-05-271-4/+4
|
* Fix typoMichael Brown2006-05-161-1/+1
|
* Add an explicit failure debug messageMichael Brown2006-04-281-0/+2
|
* Glenn managed to shrink .text by 5 more bytes.Michael Brown2006-04-251-3/+6
|
* Fixed erroneous comparisonMichael Brown2006-04-251-1/+1
|
* Removed incorrect comment; malloc() is inefficient only when theMichael Brown2006-04-251-5/+0Star
| | | | | alignment and size are both powers of two, and there's no way to specify an alignment through the malloc() interface anyway.
* Now passes trivial tests. free_memblock() needs neatening up.Michael Brown2006-04-251-15/+34
|
* Updated memory allocator to improve support for unaligned or partiallyMichael Brown2006-04-251-118/+158
| | | | | | | | | aligned blocks. Moved header to include/malloc.h, since we now also provide the POSIX-like malloc()/free() pair. Not yet tested.
* First draft of a dynamic memory allocatorMichael Brown2006-04-241-0/+209