replace mock allocator with simple k&r malloc

This commit is contained in:
Yuichi Nishiwaki
2013-10-13 15:14:15 +09:00
parent 38858e7a11
commit e3600a65c9
4 changed files with 95 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef GC_H__
#define GC_H__
struct header {
struct header *ptr;
size_t size;
};
struct heap_page {
struct header *base, *freep;
size_t heap_size;
};
void init_heap_page(struct heap_page *);
#endif