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) NONBANKED
|  |  | Garbage collect (join free hunks).

|  | void | debug ( char *routine, char *msg ) NONBANKED
|  |  | 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