gingerBill
4697c8837c
Merge pull request #6479 from cuiweixie/fix/llvm-cstring16-u16-multi-ptr-transmute
...
Fix u16 multi-pointer to cstring16 transmute condition in lb_emit_conv
2026-03-26 11:16:49 +00:00
gingerBill
761f433dd3
Merge pull request #6476 from MortimerSnerd/scratch_allocator_fix
...
Fix for corner case in the scratch allocator.
2026-03-26 11:16:27 +00:00
gingerBill
e0f348bf06
Merge pull request #6478 from cuiweixie/fix/llvm-panic-subtype-cast-format
...
Fix GB_PANIC format string in lb_emit_conv invalid subtype cast
2026-03-26 11:16:20 +00:00
gingerBill
b0e2affa60
Merge pull request #6477 from cuiweixie/fix/gteq-string-runtime-deps
...
Fix >= comparison runtime dependencies for string and cstring types
2026-03-26 10:52:37 +00:00
Weixie Cui
4e87f47fe3
Fix >= comparison runtime dependencies for string and cstring types
...
Token_GtEq incorrectly added *_gt runtime symbols for cstring, cstring16,
string16, and string comparisons; use the correct *_ge dependencies instead.
2026-03-26 18:21:27 +08:00
Weixie Cui
b16eaea8a8
Fix u16 multi-pointer to cstring16 transmute condition in lb_emit_conv
...
cstring16 uses UTF-16 code units; accept u16 multi-pointers, not u8.
2026-03-26 17:57:18 +08:00
Weixie Cui
a2f1aafed3
Fix GB_PANIC format string in lb_emit_conv invalid subtype cast
...
The panic string passed two type names but only had one %s placeholder.
2026-03-26 17:54:17 +08:00
Mortimer Snerd
6aceb7639f
Clean up the name of the test file for this PR
2026-03-25 19:55:38 -04:00
Mortimer Snerd
2363f85944
Fix for corner case in the scratch allocator.
...
The scratch allocator could erroneously return a slice
overlapping previously allocated memory for allocation
requests that were smaller than the arena size, but larger
than the amount of free space left in the arena.
- fix the check in mem::scratch_alloc_bytes_non_zeroed
that wasn't routing the request to the backup allocator.
- added concrete reproduction test under tests/issues.
2026-03-25 19:33:17 -04:00
gingerBill
0fce2da442
Add suggestion when trying to slice an enumerated array
2026-03-25 15:03:37 +00:00
gingerBill
e10257f86a
Fix slicing logic of a FCD array to check if it can be sliced or not
2026-03-25 14:11:22 +00:00
gingerBill
59eaa13625
Fix indexing logic of FCD arrays
2026-03-25 14:10:08 +00:00
gingerBill
e6d7ccad2c
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-03-25 14:08:48 +00:00
gingerBill
a9e81e01aa
Allow addressing of an index expression of an soa slice/dynamic array
2026-03-25 14:08:39 +00:00
gingerBill
e3d4d44ad9
Merge pull request #6413 from Znarf64/master
...
Fix #6407
2026-03-25 12:04:12 +00:00
gingerBill
9379273d20
Remove deprecated append_* procedures in core:strconv
2026-03-25 11:41:05 +00:00
gingerBill
8bac2e30c6
Remove deprecated procedures in core:container/queue
2026-03-25 11:40:26 +00:00
gingerBill
7e9c14e6f3
Remove deprecated procedure
2026-03-25 11:38:38 +00:00
gingerBill
8f4b720e90
Add contextless to appropriate procedures in core:math/fixed
2026-03-25 11:38:14 +00:00
gingerBill
b178e39f80
Improve error message when trying to pass a parapoly type to value parameter
2026-03-25 11:33:05 +00:00
gingerBill
85eeca2f03
Add missing generic #soa pointers to parapoly handling system
2026-03-25 10:15:58 +00:00
gingerBill
7fbabb491b
Merge pull request #6466 from jakubtomsu/bit-field-intrin
...
Bit field intrinsics and fixes
2026-03-25 09:55:28 +00:00
gingerBill
35df231099
Merge pull request #6470 from harold-b/hb.allow-offset-zero-subtype-ptr-proc-param
...
Allow pointers to types which have subtype fields at offset 0 to be assignable in proc parameters.
2026-03-25 09:44:31 +00:00
Harold Brenes
35b4c42f87
Use odin test for test_pr_6470.odin on windows
2026-03-24 16:07:59 -04:00
Harold Brenes
b66e65e7f8
Rename temp test name given PR number
2026-03-24 15:40:29 -04:00
Harold Brenes
7a017d2ecd
Add test case for implicit cast pointer to offset zero subtype field proc param
2026-03-24 15:37:04 -04:00
Jeroen van Rijn
44b50eab98
Merge pull request #6469 from odin-lang/revert-6467-master
...
Revert "added get_page_size() to `core:mem/virtual`"
2026-03-24 16:26:44 +01:00
Jeroen van Rijn
2d77303b27
Revert "added get_page_size() to core:mem/virtual"
2026-03-24 16:16:24 +01:00
Jeroen van Rijn
48c25fe76e
Merge pull request #6467 from Carlyle-Foster/master
...
added get_page_size() to `core:mem/virtual`
2026-03-24 15:16:34 +01:00
Harold Brenes
4f6caf19f0
Ensure checking for proc property equality before checking param assignability
2026-03-23 21:15:12 -04:00
Harold Brenes
147542b5cc
Allow pointers to types which have subtype fields at offset 0
...
to be assignable in proc parameters.
```odin
// Virtual interface
IFoo :: struct {
foo: proc( self: ^IFoo ),
}
// Implements IFoo interface
Foo :: struct {
using vt: IFoo,
name: string,
}
// Implement interface via `Foo`
Foo_Impl :: IFoo {
// `self` of type `^Foo` (not `^IFoo`) is now accepted as a valid parameter.
foo = proc( self: ^Foo ) {
...
},
}
```
2026-03-23 20:55:44 -04:00
Laytan
d90cc4e3b6
json: fix user unmarshaller example ( #6468 )
...
* json: fix user unmarshaller example
- Returning `.None` in the custom unmarshaler is wrong, should be `nil`
- `advance_token` has to be called
Besides the fixes I made it an actual example that will show up on the package docs
2026-03-23 21:28:47 +01:00
Carlyle
d6a47f5e99
added get_page_size() to core:mem/virtual
2026-03-23 11:43:13 -07:00
jakubtomsu
7053e6720f
remove type_bit_field_size accident
2026-03-23 17:18:01 +01:00
jakubtomsu
b1d9db7b15
make offset_of(Bit_Field, ...) an error, typo fix
2026-03-23 16:43:11 +01:00
jakubtomsu
a097f3c938
add type_field_bit_offset/size intrinsics
2026-03-23 16:42:30 +01:00
gingerBill
df5a0dcabd
Merge pull request #6460 from jakubtomsu/add-wasapi
...
Add `vendor:windows/wasapi`
2026-03-23 13:08:47 +00:00
Jakub Tomsu
2f8ffc75b2
move WASAPI to vendor:windows/wasapi
2026-03-21 22:12:00 +01:00
Jakub Tomsu
d03f61bc76
add core WASAPI bindings
2026-03-21 20:31:54 +01:00
Jeroen van Rijn
72f9d55266
Merge pull request #6456 from imp0s5ible/imp-file-mapping-fix
...
Fix #6455
2026-03-20 16:41:06 +01:00
imp0s5ible
e2bb7d70af
Make map_file_from_path use the open flags
...
map_file_from_path now passes the appropriate flags on to os.open
instead of always calling it with os.O_RDWR.
It will no longer try to open a file with write permissions if the user
didn't request write access to the file mapping (or vice-versa).
2026-03-20 15:21:12 +01:00
gingerBill
5e6e1c1e75
Add gethostname to ws2_32.odin
2026-03-20 11:44:10 +00:00
gingerBill
73df99fcb1
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-03-19 20:31:25 +00:00
gingerBill
111bee6ecd
Fix scope->elements iteration causing a few bugs in the doc-format
2026-03-19 20:31:01 +00:00
Laytan
a329d0f4f0
Merge pull request #6450 from laytan/stb-vorbis-wasm
...
vendor/stb/vorbis: support WASM
2026-03-19 20:17:34 +01:00
gingerBill
3fb430ceb7
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-03-19 18:50:17 +00:00
gingerBill
e6521ed269
Inline the generic count stuff
2026-03-19 18:50:01 +00:00
Jeroen van Rijn
ea1d97f703
Merge pull request #6448 from SpaceTravelCompany/master
...
fixes Android build
2026-03-19 19:45:33 +01:00
Laytan Laats
261881e57c
vendor/stb/vorbis: support WASM
2026-03-19 19:44:34 +01:00
Jeroen van Rijn
c29fd7f872
Merge pull request #6436 from nathanchere/patch-1
...
Update build_odin.sh to support LLVM 22
2026-03-19 19:18:31 +01:00