about summary refs log tree commit diff stats
path: root/arena.h
diff options
context:
space:
mode:
Diffstat (limited to 'arena.h')
-rw-r--r--arena.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arena.h b/arena.h
new file mode 100644
index 0000000..43ce053
--- /dev/null
+++ b/arena.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifndef ARENA_H_
+#define ARENA_H_
+
+int
+ar_setup(size_t total_size);
+
+void *
+ar_alloc(size_t object_size);
+
+void
+ar_free(void);
+
+void
+ar_cleanup(void);
+
+#endif