From 62f04ff585edd4f932f18ecad109f1d0213973a6 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 22 Apr 2021 14:08:40 -0700 Subject: chore(refactor): libraries to define explicit interfaces --- sys/libn/memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/libn/memory.c') diff --git a/sys/libn/memory.c b/sys/libn/memory.c index 999819b..d7df8e3 100644 --- a/sys/libn/memory.c +++ b/sys/libn/memory.c @@ -25,7 +25,7 @@ void * return realloc(ptr, n*size); } -mem·Allocator mem·sys = { +mem·Allocator sys·Memory = { .alloc = ·alloc, .free = ·free }; @@ -120,6 +120,7 @@ mem·makearena(mem·Allocator from, void *impl) return a; } +static void grow(mem·Arena *a, vlong min) { -- cgit v1.2.1