commit 2c8a05b8636840abd0873a0473e0354dfa395e2e
parent ad08c872d7648aea972b13e5e151e7b9f36aaf66
Author: Robert Russell <robertrussell.72001@gmail.com>
Date: Mon, 2 Oct 2023 18:48:20 -0700
Make default allocators non-e versions
This is almost always what I want.
Diffstat:
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/inc/dict/impl/macros.h b/inc/dict/impl/macros.h
@@ -23,7 +23,7 @@
#endif
#ifndef DICT_ALLOCZ
-#define DICT_ALLOCZ r_eallocz
+#define DICT_ALLOCZ r_allocz
#endif
#ifndef DICT_FREE
diff --git a/inc/list/impl/macros.h b/inc/list/impl/macros.h
@@ -18,7 +18,7 @@
#endif
#ifndef LIST_REALLOC
-#define LIST_REALLOC r_erealloc
+#define LIST_REALLOC r_realloc
#endif
#ifndef LIST_FREE
diff --git a/inc/set/impl/macros.h b/inc/set/impl/macros.h
@@ -19,7 +19,7 @@
#endif
#ifndef SET_ALLOCZ
-#define SET_ALLOCZ r_eallocz
+#define SET_ALLOCZ r_allocz
#endif
#ifndef SET_FREE
diff --git a/inc/vmem.h b/inc/vmem.h
@@ -7,5 +7,6 @@
usize vmem_page_size(void);
void *vmem_alloc(void *p, usize size);
void *vmem_reserve(void *p, usize size, bool swap);
+// TODO: using len as an in and out parameter is awful
void *vmem_open(usize *len, void *p, char *path, char *opt);
void vmem_free(void *p, usize size);