Skip to content

Commit baeb1a1

Browse files
committed
some changes
1 parent 67f8a8e commit baeb1a1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/std/header.ibu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func alloc(size i32) *u8;
2020
func strlen(str *u8) i32;
2121
func fputs(fd i32, str *u8) i32;
2222
func align_to(n i32, align i32) i32;
23-
func memmove(dest *u8, src *u8, n u32) i32;
23+
func memmove(dest *u8, src *u8, n u32) u0;
2424
func byte_to_lower(c u8) u8;
2525
func byte_to_upper(c u8) u8;
2626
func strrchr(str *u8, ch i32) *u8;

lib/std/std.ibu

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ func strlen(str *u8) i32 {
5959
return str - start;
6060
}
6161

62-
func eprintf(fmt *u8, ...) i32;
63-
6462
func fputs(fd i32, str *u8) i32 {
6563
let p *u8 = str;
6664
let endp *u8 = p + strlen(str);
@@ -82,7 +80,7 @@ func align_to(n i32, align i32) i32 {
8280
return (n + align - 1) / align * align;
8381
}
8482

85-
func memmove(dest *u8, src *u8, n u32) i32 {
83+
func memmove(dest *u8, src *u8, n u32) u0 {
8684
let p_dest *u8 = dest;
8785
let p_src *u8 = src;
8886

@@ -103,8 +101,6 @@ func memmove(dest *u8, src *u8, n u32) i32 {
103101
i++;
104102
}
105103
}
106-
107-
return dest;
108104
}
109105

110106
func byte_to_lower(c u8) u8 {

0 commit comments

Comments
 (0)