aboutsummaryrefslogtreecommitdiffstats
path: root/menu/heap.h
diff options
context:
space:
mode:
Diffstat (limited to 'menu/heap.h')
-rw-r--r--menu/heap.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/menu/heap.h b/menu/heap.h
new file mode 100644
index 00000000..52f88588
--- /dev/null
+++ b/menu/heap.h
@@ -0,0 +1,19 @@
+
+#ifndef _HEAP_H_
+#define _HEAP_H_
+
+// How much space to reserve for the stack
+#define STACKSIZE (8*1024)
+
+// Will an allocation of num bytes be successful?
+// We need this because we dont do any deallocation
+extern int checkalloc(unsigned int num);
+
+// Allocate so much space
+extern void * malloc(unsigned int num);
+
+// This is a nop for now may be future implementations will actually do something
+extern void free(void *); // Dealloc space.
+
+#endif
+