Minor fixes

This commit is contained in:
gingerBill
2021-03-18 13:25:41 +00:00
parent 04e0cacd30
commit 359ae29d98
7 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -503,7 +503,7 @@ absolute_path_from_relative :: proc(rel: string) -> (path: string, err: Errno) {
}
rel_cstr := strings.clone_to_cstring(rel, context.temp_allocator);
path_ptr := _unix_realpath(rel_cstr, nil);
if path_ptr == nil {
return "", Errno(get_last_error());
@@ -566,7 +566,7 @@ set_current_directory :: proc(path: string) -> (err: Errno) {
return ERROR_NONE;
}
exit :: proc(code: int) -> ! {
exit :: proc "contextless" (code: int) -> ! {
_unix_exit(code);
}
+1 -1
View File
@@ -421,7 +421,7 @@ set_current_directory :: proc(path: string) -> (err: Errno) {
return ERROR_NONE;
}
exit :: proc(code: int) -> ! {
exit :: proc "contextless" (code: int) -> ! {
_unix_exit(c.int(code));
}
+1 -1
View File
@@ -590,7 +590,7 @@ set_current_directory :: proc(path: string) -> (err: Errno) {
return ERROR_NONE;
}
exit :: proc(code: int) -> ! {
exit :: proc "contextless" (code: int) -> ! {
_unix_exit(c.int(code));
}
+1 -1
View File
@@ -127,7 +127,7 @@ get_page_size :: proc() -> int {
exit :: proc(code: int) -> ! {
exit :: proc "contextless" (code: int) -> ! {
win32.ExitProcess(win32.DWORD(code));
}