Jeroen van Rijn
bfe1f234ec
Merge pull request #6289 from wrathdoesthat/master
...
Propagate allocator errors from certain unicode functions
2026-02-16 20:50:45 +01:00
Jeroen van Rijn
3adc529113
-vet
2026-02-16 20:50:13 +01:00
Wrath
06b10f9ae8
Add #optional_allocator_error
2026-02-16 14:40:37 -05:00
wrathdoesthat
f0912ce4c2
Merge branch 'odin-lang:master' into master
2026-02-16 14:38:22 -05:00
Jeroen van Rijn
dc3c53b494
Merge pull request #6293 from Kelimion/vendor-wycheproof
...
Vendor wycheproof
2026-02-16 19:08:08 +01:00
Jeroen van Rijn
69831da51f
Vendor Yawning Angel's odin-wycheproof into tests/crypto/wycheproof
...
Upstream test vectors from [wycheproof](https://github.com/C2SP/wycheproof ) have been vendored into the [Odin test-assets](https://github.com/odin-lang/test-assets ) repository, and will be downloaded and verified using `tests/core/download_assets.py`.
2026-02-16 19:00:43 +01:00
gingerBill
a8cc056e3a
Merge pull request #6278 from ske2004/spread-string
...
Add broadcasting to strings (fix #1837 )
2026-02-16 13:30:50 +00:00
gingerBill
bf1ea780d8
Merge pull request #6285 from DuchGhast/utf8-validation-fix
...
Fix utf8 validation
2026-02-16 11:24:43 +00:00
Wrath
5c5e337172
Propagate allocator errors from certain unicode functions
2026-02-15 22:27:30 -05:00
Jeroen van Rijn
64a0973776
Merge pull request #6287 from krnowak/krnowak/fix-sys-es
...
Fix build errors in the sys/es package
2026-02-15 17:39:05 +01:00
Jeroen van Rijn
3d5029c0f0
Merge pull request #6288 from Kelimion/big_cleanup
...
Clean up `core:math/big`
2026-02-15 17:24:11 +01:00
Jeroen van Rijn
60fe21e086
Merge pull request #6286 from krnowak/krnowak/duplicate-partial-switch
...
Do not allow duplicated #partial directives on switch statements
2026-02-15 17:20:41 +01:00
Jeroen van Rijn
a7bf06eb5f
Fix cast.
2026-02-15 17:15:48 +01:00
Jeroen van Rijn
5c95a48bc7
Clean up core:math/big
...
- Deprecate the u64/u32 implementation so we can use fewer nails and have an easier time of maintaining and optimizing the package going forward. The remaining implementation still works on 32-bit targets, it's just a smidge less efficient.
- Use only 1 nail instead of 4. The tests now run 3.5% faster as a result.
Future optimizations may including using fully packed backing (no nails) using `intrinsics.overflow_*` to handle borrow and carry safely.
2026-02-15 17:00:53 +01:00
Krzesimir Nowak
2b985e900c
Fix build errors in the sys/es package
2026-02-15 16:57:32 +01:00
Krzesimir Nowak
a84179de1f
Do not allow duplicate #partial directives on switch statement
2026-02-15 16:37:14 +01:00
DuchGhast
c1df42d991
Fix utf8 validation
2026-02-15 14:49:50 +00:00
Jeroen van Rijn
730e6ce0d4
Merge pull request #6284 from Kelimion/xar_hm_tests
...
Add tests
2026-02-15 15:02:49 +01: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
Jeroen van Rijn
c66059dd03
One more test, unicode path elements
2026-02-15 13:00:34 +01:00
Jeroen van Rijn
1c394d87b1
Merge pull request #6283 from Kelimion/fix-6279
...
Fix #6279
2026-02-15 12:54:58 +01:00
Jeroen van Rijn
95c82e0f76
Fix #6279
...
If the replacement rune was multi-byte, `os.replace_path_separators` would silently fail to replace anything.
Now it properly handles non-ASCII separator. Additionally added a fast path for when all runes in the input path as well as the replacement separator are simple ASCII.
Test added.
2026-02-15 12:42:55 +01:00
Jeroen van Rijn
8f87871f78
Merge pull request #6280 from Faker-09/bytes_compare_comment_update
...
Update the comment on core:bytes.compare() to match the proc signature
2026-02-14 21:47:28 +01:00
Shane Shrybman
3d9441c394
Update the comment on core:bytes.compare() to match the proc signature
2026-02-14 15:15:50 -05:00
ske
9d439bd630
Add broadcasting to strings ( fix #1837 )
2026-02-14 16:23:51 -03:00
Jeroen van Rijn
71cf7f59a9
Merge pull request #6277 from tpat7187/master
...
Minor Spelling mistake in Using error line
2026-02-14 17:07:45 +01:00
tpat7187
4fce910973
Minor Spelling mistake in Using error line
2026-02-14 15:51:03 +00:00
Jeroen van Rijn
7be7ba8252
Merge pull request #6275 from Kelimion/fix-6229
...
Fix #6229
2026-02-14 14:05:10 +01:00
Jeroen van Rijn
2622c1ab99
Fix #6229
...
Fixes #6229 by adding `encode_upper` and `encode_upper_into_writer`.
Also updated the documentation to be more like the rest of `core`.
2026-02-14 13:57:02 +01:00
Jeroen van Rijn
4c9466e3ea
Add comment to ole32.odin and types.odin.
2026-02-14 13:17:28 +01:00
Jeroen van Rijn
1d38b715c3
Revert "Add missing platform guards."
...
This reverts commit 2da1befe04 .
2026-02-14 13:14:33 +01:00
Jeroen van Rijn
2da1befe04
Add missing platform guards.
2026-02-14 13:11:36 +01:00
Jeroen van Rijn
bea892bfe7
Merge pull request #6274 from Kelimion/fp_dir
...
Fix `filepath.dir`
2026-02-14 13:03:10 +01:00
Jeroen van Rijn
1af1beb248
Fix filepath.dir
2026-02-14 12:52:51 +01:00
Jeroen van Rijn
67922a57e9
Merge pull request #6273 from blob1807/master
...
Add more Windows endpoints
2026-02-14 12:14:53 +01:00
blob1807
dcd93579f0
Add more Windows endpoints
2026-02-14 20:31:51 +10:00
Jeroen van Rijn
f6d3500509
Merge pull request #6272 from Ribiveer/patch-1
...
Fix cross_3d in demo.odin
2026-02-14 02:30:03 +01:00
Ribiveer
666c64051a
Fix cross_3d in demo.odin
...
Not a very significant or meaningful change, but it did irk me that the equation was wrong...
2026-02-14 02:11:05 +01:00
Jeroen van Rijn
d26ad6a0e5
Update doc line for core:os and core:os/old.
2026-02-14 00:55:21 +01:00
Jeroen van Rijn
fbfc45a125
Merge pull request #6271 from oxSleep/fix-pool-container-type-error
...
[core:container/pool] Fix pool parapoly type error when using multiple Pool types
2026-02-13 17:46:09 +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
Jeroen van Rijn
6386b395de
Add -did-you-mean-limit:N
...
```
-did-you-mean-limit:<integer>
Sets the maximum number of suggestions the compiler provides.
Must be an integer >0.
If not set, the default limit is 10.
```
e.g. with a limit of 5
```
W:/Scratch/main.odin(44:7) Error: Undeclared name 'B1' for type 'E'
e = .B1
^^
Suggestion: Did you mean?
A23
A02
A19
A20
A21
... and 25 more ...
```
2026-02-13 15:15:03 +01:00
Jeroen van Rijn
f7f19e5ebe
Merge branch 'master' of github.com:odin-lang/Odin
2026-02-13 12:38:11 +01:00
Jeroen van Rijn
57653dd363
short_stem
2026-02-13 12:37:55 +01:00
Jeroen van Rijn
faca11d593
Fix os.stem, os.short_stem.
2026-02-13 12:36:15 +01:00
gingerBill
4e2dcb6b74
Merge pull request #6268 from lodinukal/fix_dynamic_handle_map
...
use xar.len instead of len for accessing length of items
2026-02-13 10:38:24 +00:00
Jeroen van Rijn
f8767e58c5
Fix #6267
2026-02-13 11:10:37 +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
22a5792888
Merge pull request #6261 from Faker-09/strings_remove_mem_depend
...
Remove core:mem dependency from core:strings
2026-02-12 20:13:50 +01:00
Shane Shrybman
ce2a1f5d02
Remove core:mem dependency from strings builder
2026-02-12 14:04:38 -05:00