mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
Initial slab implementation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#ifndef _ALLOC_H_INCLUDE
|
||||
#define _ALLOC_H_INCLUDE
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void* alloc(size_t);
|
||||
void free(void*);
|
||||
|
||||
void alloc_init();
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef _SLAB_H_INCLUDE
|
||||
#define _SLAB_H_INCLUDE
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void* slab_alloc(size_t);
|
||||
void slab_free(void*);
|
||||
|
||||
void slab_init();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user