From baeb1a1d5e70282b845b62afa3f3230175bb1adb Mon Sep 17 00:00:00 2001 From: v420v Date: Sat, 19 Oct 2024 19:38:16 +0900 Subject: [PATCH] some changes --- lib/std/header.ibu | 2 +- lib/std/std.ibu | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/std/header.ibu b/lib/std/header.ibu index 6657e1a..1f370ee 100644 --- a/lib/std/header.ibu +++ b/lib/std/header.ibu @@ -20,7 +20,7 @@ func alloc(size i32) *u8; func strlen(str *u8) i32; func fputs(fd i32, str *u8) i32; func align_to(n i32, align i32) i32; -func memmove(dest *u8, src *u8, n u32) i32; +func memmove(dest *u8, src *u8, n u32) u0; func byte_to_lower(c u8) u8; func byte_to_upper(c u8) u8; func strrchr(str *u8, ch i32) *u8; diff --git a/lib/std/std.ibu b/lib/std/std.ibu index b6cbec9..6a135a6 100644 --- a/lib/std/std.ibu +++ b/lib/std/std.ibu @@ -59,8 +59,6 @@ func strlen(str *u8) i32 { return str - start; } -func eprintf(fmt *u8, ...) i32; - func fputs(fd i32, str *u8) i32 { let p *u8 = str; let endp *u8 = p + strlen(str); @@ -82,7 +80,7 @@ func align_to(n i32, align i32) i32 { return (n + align - 1) / align * align; } -func memmove(dest *u8, src *u8, n u32) i32 { +func memmove(dest *u8, src *u8, n u32) u0 { let p_dest *u8 = dest; let p_src *u8 = src; @@ -103,8 +101,6 @@ func memmove(dest *u8, src *u8, n u32) i32 { i++; } } - - return dest; } func byte_to_lower(c u8) u8 {