Make core::os get_page_size contextless

This commit is contained in:
ed
2024-03-06 00:52:31 -05:00
parent 9525a3a135
commit 72f38afb04
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -982,7 +982,7 @@ dlerror :: proc() -> string {
return string(_unix_dlerror())
}
get_page_size :: proc() -> int {
get_page_size :: proc "contextless" () -> int {
// NOTE(tetra): The page size never changes, so why do anything complicated
// if we don't have to.
@static page_size := -1
+1 -1
View File
@@ -702,7 +702,7 @@ dlerror :: proc() -> string {
return string(_unix_dlerror())
}
get_page_size :: proc() -> int {
get_page_size :: proc "contextless" () -> int {
// NOTE(tetra): The page size never changes, so why do anything complicated
// if we don't have to.
@static page_size := -1
+1 -1
View File
@@ -237,7 +237,7 @@ last_write_time_by_name :: proc(name: string) -> (File_Time, Errno) {
}
get_page_size :: proc() -> int {
get_page_size :: proc "contextless" () -> int {
unimplemented("core:os procedure not supported on JS target")
}
+1 -1
View File
@@ -1005,7 +1005,7 @@ dlerror :: proc() -> string {
return string(_unix_dlerror())
}
get_page_size :: proc() -> int {
get_page_size :: proc "contextless" () -> int {
// NOTE(tetra): The page size never changes, so why do anything complicated
// if we don't have to.
@static page_size := -1
+1 -1
View File
@@ -697,7 +697,7 @@ dlerror :: proc() -> string {
return string(_unix_dlerror())
}
get_page_size :: proc() -> int {
get_page_size :: proc "contextless" () -> int {
// NOTE(tetra): The page size never changes, so why do anything complicated
// if we don't have to.
@static page_size := -1
+1 -1
View File
@@ -91,7 +91,7 @@ last_write_time_by_name :: proc(name: string) -> (File_Time, Errno) {
}
get_page_size :: proc() -> int {
get_page_size :: proc "contextless" () -> int {
// NOTE(tetra): The page size never changes, so why do anything complicated
// if we don't have to.
@static page_size := -1