Commit Graph

155 Commits

Author SHA1 Message Date
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
Damian Tarnawski
3e62c2c79a Add "contextless" to small_array get_safe and get_ptr_safe 2025-09-14 10:39:33 +02:00
Sam Mercer
30021e8dac Fix rbtree.find_or_insert
Update the existing node's value if the key is already present and align
documentation with behavior.
2025-08-29 11:02:30 +01:00
Mohit Sethi
27b59ab7c3 Propogate #caller_location to core:container/queue procs 2025-08-22 16:45:50 +01:00
Feoramund
23c1ce8722 container/queue: Remove trailing whitespace 2025-06-11 11:57:38 -04:00
Feoramund
638a1529a3 container/queue: Add shrink 2025-06-11 11:55:30 -04:00
Feoramund
040d79e1b9 container/queue: Let queues be re-initialized with different allocators 2025-06-11 11:55:30 -04:00
Feoramund
81f5763482 container/queue: Add common aliases enqueue and dequeue 2025-06-11 11:55:30 -04:00
Feoramund
6cb84e467b container/queue: Document the package 2025-06-11 11:55:30 -04:00
Feoramund
862442511a container/queue: Reorganize 2025-06-11 11:55:29 -04:00
Feoramund
58bda1209a container/queue: Deprecate peek_*
The `*_ptr` and `peek_*` procedures did the same thing, except `peek_*`
was over-cautiously putting the index through a modulo when all
assignments to `q.offset` are already wrapped.
2025-06-11 11:54:52 -04:00
Feoramund
27cd508571 container/queue: Fix and add more bounds checking 2025-06-11 11:54:47 -04:00
Feoramund
1662ab10af Fix off-by-one error in priority_queue.remove 2025-05-21 09:33:39 -04:00
Jeroen van Rijn
8c47d42394 Fix lru.remove 2025-04-29 00:14:46 +02:00
Jeroen van Rijn
5a39013339 Let core:container/priority_queue return runtime.Allocator_Error
`init`, `reserve` and `push` now return `runtime.Allocator_Error`.
2025-04-17 14:20:03 +02:00
Jeroen van Rijn
f7c4c80ef3 Fix broken examples in documentation tester.
No more:
```
We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo"
The following procedures were found:
   bar()
```
2025-04-05 16:36:26 +02:00