Start work on malloc.c

This commit is contained in:
gamemasterplc 2023-11-21 20:53:03 -06:00
parent 0b4ae7caba
commit 237bf72a2c
6 changed files with 121 additions and 28 deletions

View file

@ -5,6 +5,9 @@
#include "common_structs.h"
void OSReport(const char * format, ...);
void* OSAllocFromHeap(int heap, u32 size);
s32 OSCheckHeap(int heap);
void DCFlushRangeNoSync(void *addr, u32 size);
void* HuPrcCreate(void (*), s32, s32, s32);
void Hu3DBGColorSet(u8, u8, u8);
void Hu3DCameraCreate(s16);
@ -18,4 +21,12 @@ void fn_80045F74(s16, s32);
s32 fn_800578E4(void);
void fn_1_26C(void);
void HuMemInitAll(void);
void *HuMemInit(void *ptr, u32 size);
void HuMemDCFlush(int heap);
void *HuMemHeapInit(void *ptr, u32 size);
void *HuMemMemoryAlloc(void *heap_ptr, u32 size, void *retaddr);
#endif

View file

@ -1,6 +1,7 @@
#ifndef _TYPES_H_
#define _TYPES_H_
#define NULL ((void *)0)
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;