diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-04-22 14:08:40 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-04-22 14:08:40 -0700 |
commit | 62f04ff585edd4f932f18ecad109f1d0213973a6 (patch) | |
tree | 30ac82ea314913842f9f9bdab9e289267bd2c49c /sys/libn | |
parent | 4b0ef5bf1644520bcec05a7b2f59d6787eb616f8 (diff) |
chore(refactor): libraries to define explicit interfaces
Diffstat (limited to 'sys/libn')
-rw-r--r-- | sys/libn/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |