diff options
Diffstat (limited to 'std/mem.toc')
-rw-r--r-- | std/mem.toc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/mem.toc b/std/mem.toc index e283364..ef4e638 100644 --- a/std/mem.toc +++ b/std/mem.toc @@ -1,8 +1,8 @@ -#include "std/base.toc"; +#include "std/base.toc", base; // TODO: check for failed calloc -calloc ::= #foreign("calloc", libc) fn(#C size_t, #C size_t) #C &"void"; -free ::= #foreign("free", libc) fn(#C &"void"); +calloc ::= #foreign("calloc", base.libc) fn(#C size_t, #C size_t) #C &"void"; +free ::= #foreign("free", base.libc) fn(#C &"void"); new ::= fn(t :: Type) &t { calloc(1, (sizeof t) as #C size_t) |