Begin converting os.Errno to be a nil-able type as a transition period
This commit is contained in:
1 parent
71932628cc
commit
e60951a902
22 files changed
+1165
-666
No files matched your search
@@ -13,6 +13,12 @@ SEEK_SET :: 0
|
||||
SEEK_CUR :: 1
|
||||
SEEK_END :: 2
|
||||
|
||||
Platform_Error :: _Platform_Error
|
||||
Error :: Platform_Error
|
||||
Errno :: Error // alias
|
||||
|
||||
ERROR_NONE :: Errno(0)
|
||||
|
||||
write_string :: proc(fd: Handle, str: string) -> (int, Errno) {
|
||||
return write(fd, transmute([]byte)str)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user