You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
317 B
C
18 lines
317 B
C
#ifndef H_MALLOC
|
|
#define H_MALLOC
|
|
|
|
#include "ktypes.h"
|
|
|
|
typedef struct malloc_info {
|
|
void* allocate_memory_end;
|
|
void* allocate_memory_start;
|
|
} malloc_info;
|
|
|
|
optional_voidptr malloc(size_t size);
|
|
// int free(void* ptr);
|
|
|
|
optional_voidptr malloc_stack(size_t size);
|
|
|
|
void malloc_init(malloc_info* info);
|
|
|
|
#endif |