diff options
| author | 2022-08-10 04:12:33 +0200 | |
|---|---|---|
| committer | 2022-08-10 04:12:33 +0200 | |
| commit | b33ee6afa74ab1e83554d1b535d81c7df0b3fca5 (patch) | |
| tree | d5fb52a1529bf35658468adae796757e664bc792 /src/libc.hff | |
| parent | 769aa95cf3374117c86ec652117dcbab97497eec (diff) | |
many bugfix
Diffstat (limited to 'src/libc.hff')
| -rw-r--r-- | src/libc.hff | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libc.hff b/src/libc.hff index f06f4dd..d686905 100644 --- a/src/libc.hff +++ b/src/libc.hff @@ -1,4 +1,4 @@ -! stdio.h +// stdio.h struct FILE; extern static stdin *FILE, stdout *FILE, @@ -6,6 +6,9 @@ extern static stdin *FILE, extern fn printf(fmt *const u8, ...) void; extern fn fprintf(fp *FILE, fmt *const u8, ...) void; -! stdlib.h +// stdlib.h extern fn abort() void; extern fn exit(c int) void; +extern fn malloc(n usize) *void; +extern fn realloc(p *void, n usize) *void; +extern fn free(p *void) void; |