aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-01 13:42:40 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-01 13:42:40 +0000
commitb446b91251af00d4d648b5e178bc4f4e7a735bb9 (patch)
treed937f29131619d495f890b586802e5e60e8fa342
parent70697fa00fdda2dc651d41b60f5f6dbed46998a1 (diff)
Add `@(rodata)` to global constants
-rw-r--r--core/fmt/fmt.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin
index 0d20071e6..a87529174 100644
--- a/core/fmt/fmt.odin
+++ b/core/fmt/fmt.odin
@@ -1225,8 +1225,8 @@ _fmt_int_128 :: proc(fi: ^Info, u: u128, base: int, is_signed: bool, bit_size: i
_pad(fi, s)
}
// Units of measurements:
-__MEMORY_LOWER := " b kib mib gib tib pib eib"
-__MEMORY_UPPER := " B KiB MiB GiB TiB PiB EiB"
+@(rodata) __MEMORY_LOWER := " b kib mib gib tib pib eib"
+@(rodata) __MEMORY_UPPER := " B KiB MiB GiB TiB PiB EiB"
// Formats an integer value as bytes with the best representation.
//
// Inputs:
@@ -1284,8 +1284,8 @@ _fmt_memory :: proc(fi: ^Info, u: u64, is_signed: bool, bit_size: int, units: st
_pad(fi, str)
}
// Hex Values:
-__DIGITS_LOWER := "0123456789abcdefx"
-__DIGITS_UPPER := "0123456789ABCDEFX"
+@(rodata) __DIGITS_LOWER := "0123456789abcdefx"
+@(rodata) __DIGITS_UPPER := "0123456789ABCDEFX"
// Formats a rune value according to the specified formatting verb.
//
// Inputs: