diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/io.toc | 6 | ||||
-rw-r--r-- | std/mem.toc | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -1,8 +1,8 @@ -/* TODO: use write / WriteFile */ +/* @TODO: use write / WriteFile */ -#include "std/base.toc"; +#include "std/base.toc", base; -putchar ::= #foreign("putchar", libc) fn(#C int) #C int; +putchar ::= #foreign("putchar", base.libc) fn(#C int) #C int; toc_putchar ::= fn(x: char) { putchar(x as #C int); } 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) |