diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2024-03-27 17:55:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-27 09:55:05 -0700 |
| commit | 540648ef26d6dbdd4277bd4bdd8a38e32e8569ad (patch) | |
| tree | b708af79f4843a47daccc154aee8ff7057391e45 /include/listalloc.h | |
| parent | 4b081155a9f62ccc0bf46245cd2219cfb9324cd9 (diff) | |
listalloc OK (#158)
Diffstat (limited to 'include/listalloc.h')
| -rw-r--r-- | include/listalloc.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/listalloc.h b/include/listalloc.h index 9e3e0f4..e4ca07f 100644 --- a/include/listalloc.h +++ b/include/listalloc.h @@ -3,9 +3,14 @@ #include "ultra64.h" -// void func_800D6390_jp(); -// void func_800D63A4_jp(); -// void func_800D6410_jp(); -// void func_800D6490_jp(); +typedef struct ListAlloc { + /* 0x0 */ struct ListAlloc* prev; + /* 0x4 */ struct ListAlloc* next; +} ListAlloc; // size = 0x8 + +ListAlloc* ListAlloc_Init(ListAlloc* this); +void* ListAlloc_Alloc(ListAlloc* this, size_t size); +void ListAlloc_Free(ListAlloc* this, void* data); +void ListAlloc_FreeAll(ListAlloc* this); #endif |
