Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
v420v committed Oct 19, 2024
1 parent 67f8a8e commit baeb1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/std/header.ibu
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions lib/std/std.ibu
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;

Expand All @@ -103,8 +101,6 @@ func memmove(dest *u8, src *u8, n u32) i32 {
i++;
}
}

return dest;
}

func byte_to_lower(c u8) u8 {
Expand Down

0 comments on commit baeb1a1

Please sign in to comment.