From 72f38afb0405898067b611f24269395c13b06936 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 6 Mar 2024 00:52:31 -0500 Subject: [PATCH] Make core::os get_page_size contextless --- core/os/os_darwin.odin | 2 +- core/os/os_freebsd.odin | 2 +- core/os/os_js.odin | 2 +- core/os/os_linux.odin | 2 +- core/os/os_openbsd.odin | 2 +- core/os/os_windows.odin | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin index b22d3250f..43e0efc0a 100644 --- a/core/os/os_darwin.odin +++ b/core/os/os_darwin.odin @@ -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 diff --git a/core/os/os_freebsd.odin b/core/os/os_freebsd.odin index be86854dd..c783ccdbf 100644 --- a/core/os/os_freebsd.odin +++ b/core/os/os_freebsd.odin @@ -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 diff --git a/core/os/os_js.odin b/core/os/os_js.odin index 910cb8155..69a15c15e 100644 --- a/core/os/os_js.odin +++ b/core/os/os_js.odin @@ -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") } diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin index 545349bc5..7e9246235 100644 --- a/core/os/os_linux.odin +++ b/core/os/os_linux.odin @@ -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 diff --git a/core/os/os_openbsd.odin b/core/os/os_openbsd.odin index 182d97979..caffabf14 100644 --- a/core/os/os_openbsd.odin +++ b/core/os/os_openbsd.odin @@ -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 diff --git a/core/os/os_windows.odin b/core/os/os_windows.odin index b375e7c66..edec5fcb1 100644 --- a/core/os/os_windows.odin +++ b/core/os/os_windows.odin @@ -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