summaryrefslogtreecommitdiff
path: root/std/mem.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-08 13:58:17 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-08 13:58:17 -0400
commit8b4a6f6298fadf92a4f9a5d9879225ba7d27270d (patch)
treefa640c60c6b8be226da1a8797c319218d3ef31d1 /std/mem.toc
parent38d57cdce42115fac4eb48bb441ac31f0fd81a7a (diff)
got double include to work
Diffstat (limited to 'std/mem.toc')
-rw-r--r--std/mem.toc6
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)