aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-06-20 09:42:05 +0100
committergingerBill <bill@gingerbill.org>2025-06-20 09:42:05 +0100
commitf055d8e7147dd2761557e77ccaa732eb25f9a1f2 (patch)
treeff2dbb153dff1dc6fac2810ea99467ccf1cf358c /vendor
parent9d1517092892042bab12c31c2947b70097b47e54 (diff)
Slight change to `un` definition
Diffstat (limited to 'vendor')
-rw-r--r--vendor/kb_text_shape/kb_text_shape_types.odin13
1 files changed, 10 insertions, 3 deletions
diff --git a/vendor/kb_text_shape/kb_text_shape_types.odin b/vendor/kb_text_shape/kb_text_shape_types.odin
index eab25ae67..bc5ee35e8 100644
--- a/vendor/kb_text_shape/kb_text_shape_types.odin
+++ b/vendor/kb_text_shape/kb_text_shape_types.odin
@@ -2,8 +2,16 @@ package vendor_kb_text_shape
import "core:c"
-un :: distinct uintptr
-// sn :: distinct (i32 when size_of(uintptr) == 4 else i64)
+un :: distinct (
+ uint when (size_of(uintptr) == size_of(uint)) else
+ u32 when size_of(uintptr) == 4 else
+ u64
+)
+// sn :: distinct (
+// int when (size_of(uintptr) == size_of(int)) else
+// i32 when size_of(uintptr) == 4 else
+// i64
+// )
joining_feature :: enum u8 {
NONE,
@@ -745,7 +753,6 @@ language :: enum u32 {
}
break_flags :: distinct bit_set[break_flag; u32]
-
break_flag :: enum u32 {
// Direction changes from left-to-right to right-to-left, or vice versa.
DIRECTION = 0,