aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-05 09:31:06 +0200
committerlemon <lsof@mailbox.org>2022-08-05 09:31:06 +0200
commite0630766450d402455d9c8368087f96d8075c07c (patch)
tree57c6815ff9c4e4264e39f4643e60e4d0be7c192c /bootstrap/test.cff
parent9667272414380e2d50113e0a0c6408a02e7c23eb (diff)
headers, import
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff4
1 files changed, 2 insertions, 2 deletions
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 };