Begin converting os.Errno to be a nil-able type as a transition period

This commit is contained in:
gingerBill committed 2024-08-04 10:51:08 +01:00
1 parent 71932628cc
commit e60951a902
22 files changed
+1165 -666

No files matched your search

+6
View File
@@ -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)
}