Commit Graph

7426 Commits

Author SHA1 Message Date
Faker-09
61d53212dd Handle map iterator reset for reuse + fix example (#6335)
* Reset the handle_map iterators for reuse
* Make the handle_map example more compilable
2026-02-25 21:41:00 +01:00
Laytan Laats
8bb8344ad6 xar: fix freelist_push_with_index using freelist_index_of which doesn't exist 2026-02-25 19:01:30 +01:00
Jeroen van Rijn
a7b2471a26 Update handle_map doc string 2026-02-25 17:33:33 +01:00
Shane Shrybman
2a56a943d2 core:bufio remove core:mem dependency 2026-02-25 09:17:48 -05:00
George Potoshin
5335bdbe34 [core:text/regex] Follow up to fix #6323 and add test case. As was said in the issue discussion I had suspicion that there may be a sibling bug in .Assert_Non_Word_Boundary implementation and I was able to confirm that with re.findall(rB", ") python code. Odin implementation outputed an empty string wherase python gave "'". That is the same bug related to incorrect logic on string ends. This commit makes implementation of those 2 instructions cleaner and adds a test case. 2026-02-25 14:33:09 +01:00
Jeroen van Rijn
e696073d7b [core:text/regex] Fix #6323 and add test case
Thanks to @GPotoshin for the fix.
2026-02-25 10:49:27 +01:00
Jeroen van Rijn
545d17fd8d Fix core:sys/regex debug output 2026-02-24 22:40:32 +01:00
Jeroen van Rijn
1e1e00c68e [core:sys/info] One more thing 2026-02-24 14:48:09 +01:00
Jeroen van Rijn
2cc7fe6d16 [core:sys/info] Fix small doc render issue 2026-02-24 14:46:30 +01:00
Jeroen van Rijn
853afea0c7 [core:container/priority_queue] Make example visible on package overview 2026-02-24 13:18:56 +01:00
Jeroen van Rijn
4321efacc3 [core:container/priority_queue] Add example and tests 2026-02-24 13:05:26 +01:00
Jeroen van Rijn
af43e6851b [core:sys/info] Remove , ok 2026-02-23 23:55:36 +01:00
Jeroen van Rijn
ea80eab75a [core:sys/info] Remove @(init) where practical 2026-02-23 23:09:37 +01:00
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
0ffd740583 core:bytes add loc := #caller_location 2026-02-22 10:18:04 -05:00
Jeroen van Rijn
1f18672110 Merge pull request #6312 from xandaron/add-win32-functions
added 2 user32 functions
2026-02-21 14:51:27 +01:00
Jeroen van Rijn
82b3917300 Update unicode.xml to 17 2026-02-21 14:02:41 +01:00
Alex Davis
9359cfa39e added 2 user32 functions 2026-02-21 10:15:31 +00:00
Jeroen van Rijn
ac11491979 Update generated table 2026-02-21 01:55:07 +01:00
Jeroen van Rijn
98b65f2c2e Update unicode generator + test 2026-02-21 01:54:17 +01:00
Jeroen van Rijn
11d2d37277 Better. 2026-02-20 19:31:50 +01:00
Jeroen van Rijn
3299981433 core:sys/info: Fix GPU enumeration loop 2026-02-20 19:25:17 +01:00
Jeroen van Rijn
b6f064100a Merge pull request #6309 from Faker-09/xar_iter_reset
core:container/xar reset iterators for easy reuse
2026-02-20 19:12:33 +01: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
Yawning Angel
4ef6300eb3 core/crypto/ed25519: Add private_key_generate 2026-02-20 04:10:54 +09:00
Yawning Angel
7e7515d7d9 core/crypto/ecdsa: Add ECDSA support 2026-02-20 04:10:54 +09:00
Yawning Angel
49ab240c45 core/crypto/_weierstrass: Add Shamir-Strauss 2026-02-20 03:59:34 +09:00
Yawning Angel
ffa6fc2a67 core/crypto/_weierstrass: Add scalar field inversion 2026-02-20 03:59:34 +09:00
gingerBill
aea6274a10 Fix _mkdir_all for wasi 2026-02-19 14:54:34 +00:00
gingerBill
b643b0b1a9 Fix _copy_directory_all_native 2026-02-19 14:05:49 +00:00
gingerBill
cf3ac07a7e Fix copy_directory_all 2026-02-19 14:00:38 +00:00
gingerBill
26a4b2bfef Fix perm: int to perm: Permissions 2026-02-19 13:58:02 +00:00
Håkon Stormo
686cba8ca2 Fix to_string_hms_12 2026-02-19 02:32:00 +01:00
Jeroen van Rijn
76f5c39d9b Merge pull request #6301 from laytan/remove-process-close-add-process-terminate
os: remove `process_close` and add `process_terminate`
2026-02-18 20:35:39 +01:00
Laytan
dfb09d1299 Merge pull request #6231 from lucypero/fix/atomic-typo
Fix typo in atomic.odin documentation
2026-02-18 20:28:02 +01:00
Laytan Laats
7a7d7560b6 os: remove sys/unix dep on Linux 2026-02-18 20:16:55 +01:00
Laytan Laats
e87e3fba1b os: remove process_close and add process_terminate
`process_wait` (optionally prefaced with a `process_kill`) can be used
to properly close and free resources of the process.

`process_terminate` was added because `process_kill` is a forceful
exit, we were missing a way to request the process to terminate.
2026-02-18 20:15:07 +01:00
jakubtomsu
73a62f672a Merge branch 'odin-lang:master' into more-import-cleanup 2026-02-18 10:59:00 +01:00
Shane Shrybman
45ac966901 Add missing return values on xar iterators 2026-02-17 22:51:39 -05:00
Krzesimir Nowak
a90f2ad3a0 Print errors in tools and examples to stderr 2026-02-17 23:08:32 +01:00
Krzesimir Nowak
47775214d6 Fix some tools and examples after core:os update and using-stmt feature 2026-02-17 21:58:08 +01: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
jakubtomsu
cd3ba3c3d5 unused intrinsics import in core:hash 2026-02-17 18:56:39 +01:00
jakubtomsu
8a7fb8bd4e net: generate DNS ID with context.random_generator directly 2026-02-17 18:51:41 +01:00
jakubtomsu
e8aac50f8b math/rand math/bits dependency 2026-02-17 18:34:37 +01:00
gingerBill
ad6cde0b3c Add reader_read_* utilities for slices and rawptr 2026-02-17 14:57:50 +00:00
gingerBill
96d6eec8e5 Add reader_read_slice and reader_read_slice_at 2026-02-17 14:55:59 +00:00
gingerBill
442b163871 Fix typos 2026-02-17 14:41:09 +00:00