bundled all types into ktypes.h and added optionals
parent
b6d967262a
commit
c8c19f298a
@ -1,17 +1,17 @@
|
|||||||
#ifndef H_MALLOC
|
#ifndef H_MALLOC
|
||||||
#define H_MALLOC
|
#define H_MALLOC
|
||||||
|
|
||||||
typedef unsigned int size_t;
|
#include "ktypes.h"
|
||||||
|
|
||||||
typedef struct malloc_info {
|
typedef struct malloc_info {
|
||||||
void* allocate_memory_end;
|
void* allocate_memory_end;
|
||||||
void* allocate_memory_start;
|
void* allocate_memory_start;
|
||||||
} malloc_info;
|
} malloc_info;
|
||||||
|
|
||||||
void* malloc(size_t size);
|
optional_voidptr malloc(size_t size);
|
||||||
// int free(void* ptr);
|
// int free(void* ptr);
|
||||||
|
|
||||||
void* malloc_stack(size_t size);
|
optional_voidptr malloc_stack(size_t size);
|
||||||
|
|
||||||
void malloc_init(malloc_info* info);
|
void malloc_init(malloc_info* info);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue