Main Page   Compound List   File List   Header Files   File Members  

malloc.h File Reference

Header for a simple implementation of malloc(). More...


Compounds

struct  smalloc_hunk

Defines

#define MALLOC_FREE
The malloc hunk flags Note: Cound have used a negative size a'la TI.

#define MALLOC_MAGIC
Magic number of a header. More...


Typedefs

typedef struct smalloc_hunk mmalloc_hunk

Functions

void malloc_gc (void)
Garbage collect (join free hunks).

void debug ( char *routine, char *msg )
debug message logger.


Variables

struct smalloc_hunk* pmmalloc_hunk
UBYTE malloc_heap_start
Start of free memory, as defined by the linker.

pmmalloc_hunk malloc_first
First hunk.


Detailed Description

Header for a simple implementation of malloc().

This library may currently be broken.


Define Documentation

#define MALLOC_MAGIC ()

Magic number of a header.

Gives us some chance of surviving if the list is corrupted


Generated at Sun May 7 12:17:00 2000 for gbdk-lib by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999