summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-31 22:11:33 +1000
committerquou <quou@disroot.org>2024-07-31 22:11:56 +1000
commit9fedd9336c48835495f74994d80795aa6e3fbecd (patch)
treedb348b188a81f0d1857a07fd6d5d5d02c1ff977a
parentb93d36f9c95594311ec9d7c2d6acede6c33e9e08 (diff)
tags for Arena and Heap
-rw-r--r--memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.h b/memory.h
index 1dc5021..38e632a 100644
--- a/memory.h
+++ b/memory.h
@@ -4,7 +4,7 @@
int aligned(void* p, int a);
int align_size(int s, int a);
-typedef struct {
+typedef struct Arena {
char* buf;
int size, ptr;
} Arena;
@@ -25,7 +25,7 @@ void* arena_alloc_aligned(
int align
);
-typedef struct {
+typedef struct Heap {
char* buf;
int size, blocks;
} Heap;