aboutsummaryrefslogtreecommitdiff
path: root/src/base/mem/interface.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-05 11:55:10 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-05 12:02:10 -0800
commitc200dd832789afa298ba45e0b9efdec96c0e92cc (patch)
tree4dc5622468a23acfd747e7778eeb9132266d7c9b /src/base/mem/interface.c
parent8eedf5bdb05c2df0cd339f8742dc4f1752e8aaae (diff)
Chore: simplified allocator interfaces.
I was never happy with the allocator/reallocator split. It was originally designed to accomodate things like arenas that don't free. But the majority of the time you don't care about this.
Diffstat (limited to 'src/base/mem/interface.c')
-rw-r--r--src/base/mem/interface.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/base/mem/interface.c b/src/base/mem/interface.c
index e128bb9..99cb774 100644
--- a/src/base/mem/interface.c
+++ b/src/base/mem/interface.c
@@ -20,12 +20,7 @@ static void *
return realloc(ptr, n*size);
}
-mem·Allocator sys·Memory = {
- .alloc = ·calloc,
- .free = ·free
-};
-
-mem·Reallocator sys·FullMemory = {
+mem·Allocator base·Memory = {
.alloc = ·calloc,
.realloc = ·realloc,
.free = ·free