Commit Graph

170 Commits

Author SHA1 Message Date
gingerBill
4581f57953 Merge pull request #6320 from Faker-09/handle_map_duplicate_assignment
In handle_map.dynamic_add(), remove redundant assignment
2026-02-23 13:49:02 +00:00
Shane Shrybman
94fa423cac Reset the xar freelist iterators' index to 0 for easy reuse 2026-02-20 12:06:38 -05:00
Shane Shrybman
baaea5c1e6 Reset the xar iterator index to 0 for easy reuse 2026-02-20 11:28:50 -05:00
Shane Shrybman
45ac966901 Add missing return values on xar iterators 2026-02-17 22:51:39 -05:00
Shane Shrybman
0deacb6871 In handle_map.dynamic_add(), 'item' has been appended to the xar so this additional assignment is unneeded. 2026-02-17 15:31:17 -05:00
Shane Shrybman
111c2506d5 Fix typo in xar.array_linear_search() return 2026-02-17 14:40:15 -05:00
gingerBill
a7ed7ccd0c Merge pull request #6259 from odin-lang/bill/range-init
`for init; x in y {}` style loops (proof of concept)
2026-02-17 11:11:56 +00:00
gingerBill
58deab46a3 Add xar.Freelist_Array 2026-02-17 10:47:14 +00:00
Jeroen van Rijn
03a8526cf0 Add tests
Add tests for `core:container/xar` and `core:container/handle_map` (static + dynamic).
2026-02-15 14:54:31 +01:00
oxSleep
6fc3a8fb2a Use when-block for sanitizer poisoning
Replace @disabled attribute with when-statement to conditionally compile
address sanitizer poisoning in pool elements
2026-02-13 17:21:51 +01:00
imlodinu
b906412f47 use xar.len instead of len for accessing length of items 2026-02-13 15:46:28 +08:00
Jeroen van Rijn
8cb22d9685 Remove core:mem import from core:container/bit_array. 2026-02-12 17:58:10 +01:00
Jeroen van Rijn
51183268b7 Remove core:mem import from core:container/pool. 2026-02-12 17:44:36 +01:00
Shane Shrybman
264029b2d6 Remove core:mem dependency from core:container/xar 2026-02-10 21:13:33 -05:00
gingerBill
8018604f83 Fix handle_map index on dynamic_add 2026-02-08 22:58:44 +00:00
gingerBill
2859bc0853 Update doc.odin 2026-01-26 15:11:07 +00:00
gingerBill
9f206ba6d5 Keep -vet happy 2026-01-26 15:06:15 +00:00
gingerBill
967b6754a7 Rename to static_handle_map.odin 2026-01-26 15:00:15 +00:00
gingerBill
25ecca7159 Rename to Static_Handle_Map 2026-01-26 15:00:00 +00:00
gingerBill
069ca73d4b Make things contextless where possible 2026-01-26 14:53:01 +00:00
gingerBill
f2a8960ab0 Add Dynamic_Handle_Map 2026-01-26 14:48:56 +00:00
gingerBill
02e84f2108 Keep -strict-style happy 2026-01-26 14:11:40 +00:00
gingerBill
425e7ca780 Add core:container/handle_map 2026-01-26 11:46:59 +00:00
Laytan Laats
57d02cb148 pool: remove assert that is too strict 2026-01-14 20:02:08 +01:00
Laytan Laats
4af4b2f575 pool: use elem in else of the when statement (vet issue) 2026-01-13 19:47:09 +01:00
Laytan Laats
4ae02aaacf pool: explicit memory ordering and improved destroy 2026-01-13 19:38:10 +01:00
Laytan Laats
24ee35af28 nbio: add package 2026-01-11 20:21:25 +01:00
Laytan Laats
08c4503875 xar: fix example 2026-01-11 20:21:25 +01:00
Laytan Laats
ec040c1fcb rbtree: fix pointer usages 2026-01-11 20:21:25 +01:00
gingerBill
6f396ac49b Rename xar.Xar to xar.Array 2025-12-31 15:01:03 +00:00
Laytan Laats
b53ee3dba3 container/xar: fix undeclared n assignment 2025-12-22 16:57:58 +01:00
gingerBill
a66b84372a Improve docs and add Iterator 2025-12-12 14:41:01 +00:00
gingerBill
d43b00bb10 Add basic docs 2025-12-12 01:44:31 +00:00
gingerBill
23ddb8dd3f Add push_back_elem_and_get_ptr 2025-12-12 01:00:11 +00:00
gingerBill
a2d361f17d Add basic docs 2025-12-12 00:40:03 +00:00
gingerBill
9bd2186c8a core:container/xar 2025-12-12 00:35:40 +00:00
Jeroen van Rijn
91409cb37e Clarify get and get_ptr in core:container/small_array.
See #5892.
2025-11-06 15:21:56 +01:00
Jeroen van Rijn
5b6889ccf5 Enable misnamed doc example test for small_array 2025-10-30 11:29:51 +01:00
Jeroen van Rijn
ece213afca Render examples. 2025-10-10 12:24:28 +02:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Jeroen van Rijn
248b0fe9e1 More package lines 2025-10-09 16:11:33 +02:00
Jeroen van Rijn
9c7fe1d8a7 Package lines for core:container. 2025-10-09 14:58:50 +02:00
Jeroen van Rijn
5a154a1775 Add more package lines for the docs 2025-10-09 14:41:22 +02:00
gingerBill
b427e025d7 Merge pull request #5629 from smercer10/fix-rbtree-find-or-insert
Fix rbtree.find_or_insert
2025-10-08 11:21:34 +01:00
gingerBill
51f79724ed Merge pull request #5686 from thetarnav/zero-small-array-resize
Zero small array resize
2025-09-26 14:16:54 +01:00
Damian Tarnawski
e163c20a02 Correct set_example in small_array 2025-09-15 15:29:17 +02:00
Damian Tarnawski
40c8f45a81 Correct small_array resize examples 2025-09-15 15:15:44 +02:00
Damian Tarnawski
b986c534a3 Replace mem.zero_slice with intrinsics.mem_zero in small_array.resize 2025-09-15 15:01:20 +02:00
Damian Tarnawski
7adc33d5a4 Add @require to core:mem import in small_array 2025-09-15 14:56:46 +02:00
Damian Tarnawski
3d66625de0 Zero memory in small_array.resize and add non_zero_resize 2025-09-15 14:40:58 +02:00