Improve min-dep for Type Info

This commit is contained in:
gingerBill
2018-01-28 15:37:15 +00:00
parent e919482aa8
commit b66e7bed45
5 changed files with 112 additions and 40 deletions
+5
View File
@@ -9,6 +9,11 @@ write_string :: proc(fd: Handle, str: string) -> (int, Errno) {
return write(fd, cast([]byte)str);
}
write_byte :: proc(fd: Handle, b: byte) -> (int, Errno) {
return write(fd, []byte{b});
}
read_entire_file :: proc(name: string) -> (data: []byte, success: bool) {
fd, err := open(name, O_RDONLY, 0);
if err != 0 {