mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Minor fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ get_page_size :: proc() -> int {
|
||||
|
||||
|
||||
|
||||
exit :: proc(code: int) -> ! {
|
||||
exit :: proc "contextless" (code: int) -> ! {
|
||||
win32.ExitProcess(win32.DWORD(code));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user