aboutsummaryrefslogtreecommitdiff
path: root/core/container
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-06-14 11:43:35 +0100
committergingerBill <bill@gingerbill.org>2021-06-14 11:43:35 +0100
commit3e7aabe6d83797f7451300a5c8e6fb4a5c1804d2 (patch)
tree1d478a40ae1ac927846700c1d130ab4ce639607e /core/container
parentd4df325e0a2cfe1d6de90667099d9ac43e269029 (diff)
Change uses for parapoly records to use `$` always
Diffstat (limited to 'core/container')
-rw-r--r--core/container/array.odin2
-rw-r--r--core/container/map.odin4
-rw-r--r--core/container/priority_queue.odin2
-rw-r--r--core/container/queue.odin2
-rw-r--r--core/container/ring.odin2
-rw-r--r--core/container/small_array.odin2
6 files changed, 7 insertions, 7 deletions
diff --git a/core/container/array.odin b/core/container/array.odin
index 1f2cdc58c..74dcd847f 100644
--- a/core/container/array.odin
+++ b/core/container/array.odin
@@ -3,7 +3,7 @@ package container
import "core:mem"
import "core:runtime"
-Array :: struct(T: typeid) {
+Array :: struct($T: typeid) {
data: ^T,
len: int,
cap: int,
diff --git a/core/container/map.odin b/core/container/map.odin
index 959fc19f8..c4795e996 100644
--- a/core/container/map.odin
+++ b/core/container/map.odin
@@ -4,12 +4,12 @@ import "intrinsics"
_ :: intrinsics;
-Map :: struct(Key, Value: typeid) where intrinsics.type_is_valid_map_key(Key) {
+Map :: struct($Key, $Value: typeid) where intrinsics.type_is_valid_map_key(Key) {
hash: Array(int),
entries: Array(Map_Entry(Key, Value)),
}
-Map_Entry :: struct(Key, Value: typeid) where intrinsics.type_is_valid_map_key(Key) {
+Map_Entry :: struct($Key, $Value: typeid) where intrinsics.type_is_valid_map_key(Key) {
hash: uintptr,
next: int,
key: Key,
diff --git a/core/container/priority_queue.odin b/core/container/priority_queue.odin
index 8f3f6bb32..f1ceac3a4 100644
--- a/core/container/priority_queue.odin
+++ b/core/container/priority_queue.odin
@@ -1,6 +1,6 @@
package container
-Priority_Queue :: struct(T: typeid) {
+Priority_Queue :: struct($T: typeid) {
data: Array(T),
len: int,
priority: proc(item: T) -> int,
diff --git a/core/container/queue.odin b/core/container/queue.odin
index 2664b9a08..b4ca0ae8f 100644
--- a/core/container/queue.odin
+++ b/core/container/queue.odin
@@ -1,6 +1,6 @@
package container
-Queue :: struct(T: typeid) {
+Queue :: struct($T: typeid) {
data: Array(T),
len: int,
offset: int,
diff --git a/core/container/ring.odin b/core/container/ring.odin
index d0e7d9b52..fca2db6f9 100644
--- a/core/container/ring.odin
+++ b/core/container/ring.odin
@@ -1,7 +1,7 @@
package container
-Ring :: struct(T: typeid) {
+Ring :: struct($T: typeid) {
next, prev: ^Ring(T),
value: T,
}
diff --git a/core/container/small_array.odin b/core/container/small_array.odin
index 235c42a77..014837631 100644
--- a/core/container/small_array.odin
+++ b/core/container/small_array.odin
@@ -1,6 +1,6 @@
package container
-Small_Array :: struct(N: int, T: typeid) where N >= 0 {
+Small_Array :: struct($N: int, $T: typeid) where N >= 0 {
data: [N]T,
len: int,
}