diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-17 18:28:05 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-17 18:28:05 -0700 |
commit | 23ac1f4f98accc3bb84e81be264d8408be372028 (patch) | |
tree | d3876d6d5ce73c9f0669ec3f0c04c3a7524ec91e /include/libn.h | |
parent | 9ec5bed6a7d715ffa69851569485a685dd69db2e (diff) |
fix: bugs associated to map reallocating
Diffstat (limited to 'include/libn.h')
-rw-r--r-- | include/libn.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libn.h b/include/libn.h index 87c993c..8e21056 100644 --- a/include/libn.h +++ b/include/libn.h @@ -76,6 +76,11 @@ void *·alloc(void* _, uint n, ulong size) { return malloc(n*size); } +static +void *·calloc(void* _, uint n, ulong size) { + return calloc(n, size); +} + // TODO(nnoll): Allow for nil iterfaces? static mem·Allocator mem·sys = { |