diosmios/alloc.h
crediar@rypp.net 7f75f5eb1e Cheating:
*Due space limitations only the debug version of kenobigc is supported, this means there is a bit less space for cheats.


git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@2 be6c1b03-d731-4111-a574-e37d80d43941
2012-06-23 18:08:56 +00:00

24 lines
418 B
C

#include "utils.h"
#include "memory.h"
#include "HW.h"
#ifndef _ALLOC_
#define _ALLOC_
#define _AHEAP_SIZE_TOTAL 0x3000
#define _AHEAP_INFO_SIZE 0x0100
#define _AHEAP_SIZE _AHEAP_SIZE_TOTAL-_AHEAP_INFO_SIZE
typedef struct
{
u8 *Offset;
u32 Size;
} HeapInfoEntry;
void HeapInit( u8 *Offset );
void *malloc( u32 size );
void *malloca( u32 size, u32 align );
void free( void *ptr );
#endif