From e0630766450d402455d9c8368087f96d8075c07c Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 5 Aug 2022 09:31:06 +0200 Subject: headers, import --- bootstrap/test.cff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index f74619a..5e74cf1 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -1,3 +1,5 @@ +import "libc.hff"; +import "libc.hff"; struct Vec2f; struct Vec2f { @@ -18,7 +20,6 @@ enum Color { static xs *void = {}; fn isort(xs *int, n usize) void { - extern fn qsort(base *void, nmemb usize, size usize, compar *fn(l *const void, r *const void, _ *void) int) void; fn icmp(lhs *const void, rhs *const void, _ *void) int { let lhs = *as(*int)lhs; let rhs = *as(*int)rhs; @@ -28,7 +29,6 @@ fn isort(xs *int, n usize) void { } extern fn main (argc int, argv **u8) int { - extern fn printf(fmt *const u8, ...) int; let colors [3]Color = { :Red, :Green, :Blue } ; let x = Vec2f { .y: 1, .x: 2.4 }; -- cgit v1.2.3