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
Robin Bergewski
e963ba12fc
core:container/small_array: add package documentation
2025-04-05 15:38:42 +02:00
Laytan Laats
a5f3c1b849
container/queue: fix init_with_contents
...
Fixes #4729
2025-01-20 19:51:46 +01:00
Laytan Laats
bd45900257
container/bit_array: add 'init' procedure
2024-09-29 10:57:42 +02:00
gingerBill
a4fd0c133e
Merge pull request #4191 from laytan/improve-package-doc-comments
...
core: improve package doc comments for the documentation generator
2024-09-04 21:37:48 +01:00
Feoramund
c3bd94a27e
Change Bit_Array.max_index to length
...
This will allow correct iteration of empty `bit_array`s.
2024-09-03 16:56:02 -04:00
Feoramund
d86e56089a
Fix iteration of biased Bit_Array
2024-09-03 15:34:38 -04:00
Laytan Laats
288312a812
core: improve package doc comments for the documentation generator
2024-09-03 19:59:04 +02:00
Feoramund
b8f8cb9582
Add bit_array.shrink
2024-09-03 13:33:15 -04:00
Feoramund
001b2b9d8f
Let bit_array.create make zero-length arrays
2024-09-03 13:33:11 -04:00
Feoramund
309953e0f2
Return false if Small_Array can't append multiple elements
...
Fixes #4177
2024-09-03 01:14:17 -04:00
Jeroen van Rijn
03cb585845
Merge pull request #3908 from NicknEma/Intrusive-list-docs
...
Write docs for `core:container/intrusive/list` package
2024-07-14 23:28:53 +02:00
NicknEma
63276a85ba
Fixed grammar and expanded info
...
Fixed points made by Jeroen.
2024-07-14 18:18:12 +02:00
Laytan Laats
d90d7ed002
Fix off-by-one in queue back and back_ptr procs
2024-07-14 16:00:55 +02:00
gingerBill
8642d719f0
Imply #no_capture to all variadic parameters
2024-07-14 12:19:47 +01:00
gingerBill
c7bd954752
Add more uses of #no_capture
2024-07-14 11:56:04 +01:00