summaryrefslogtreecommitdiff
path: root/include/rune/core/alloc.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-03-20 14:11:53 -0500
committerDanny Holman <dholman@gymli.org>2025-03-20 14:11:53 -0500
commit7281fe8fdbb64a83bc0f569ef01db33a1f26ac98 (patch)
tree468c67d71db30716795b9145ddb963794ab7f891 /include/rune/core/alloc.h
parent65462e5eff7d952d97d30bc3e3720d7f6d8a402e (diff)
core: alloc: make the mem_block type opaque
Make the mem_block struct into a fully opaque type. This brings the allocation manager in line with project coding style. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/rune/core/alloc.h')
-rw-r--r--include/rune/core/alloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rune/core/alloc.h b/include/rune/core/alloc.h
index 65121ce..b2ccca0 100644
--- a/include/rune/core/alloc.h
+++ b/include/rune/core/alloc.h
@@ -28,12 +28,12 @@
/**
* Memory block used for memory accounting
*/
-struct mem_block {
+typedef struct mem_block {
void *ptr;
size_t sz;
int free;
- struct list_head list;
-};
+ list_head_t list;
+} mem_block_t;
/**
* \brief Custom malloc implementation