GBDK 2020 Docs
API Documentation for GBDK 2020
|
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | smalloc_hunk |
Macros | |
#define | MALLOC_FREE 1 |
#define | MALLOC_USED 2 |
#define | MALLOC_MAGIC 123 |
Typedefs | |
typedef struct smalloc_hunk | mmalloc_hunk |
typedef struct smalloc_hunk * | pmmalloc_hunk |
Functions | |
void | malloc_gc (void) NONBANKED |
void | debug (char *routine, char *msg) NONBANKED |
Variables | |
UBYTE | malloc_heap_start |
pmmalloc_hunk | malloc_first |
#define MALLOC_FREE 1 |
The malloc hunk flags Note: Cound have used a negative size a'la TI
#define MALLOC_USED 2 |
#define MALLOC_MAGIC 123 |
Magic number of a header. Gives us some chance of surviving if the list is corrupted
typedef struct smalloc_hunk mmalloc_hunk |
typedef struct smalloc_hunk* pmmalloc_hunk |
void malloc_gc | ( | void | ) |
Garbage collect (join free hunks)
void debug | ( | char * | routine, |
char * | msg | ||
) |
debug message logger
|
extern |
Start of free memory, as defined by the linker
|
extern |
First hunk