From f5dc9ad48db4d22e7d6f15e340063dc7cb14c1e1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Sep 2019 23:47:52 +0200 Subject: Implicit cast from str to ?&c_char, fix use of parameters (to use sys v registers) --- std/io.amal | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'std/io.amal') diff --git a/std/io.amal b/std/io.amal index 9023280..6acfb1b 100644 --- a/std/io.amal +++ b/std/io.amal @@ -1,5 +1,6 @@ extern const print_extern: fn() i32; +extern const printf: fn(fmt: ?&c_char, ...) c_int; -pub const print = fn() i32 { - return print_extern(); +pub const print = fn(fmt: str, arg1: str) i32 { + return printf(fmt, arg1); } \ No newline at end of file -- cgit v1.2.3