Jeroen van Rijn
d315d357ca
Add aliases for Is*Ready -> Is*Valid
2024-11-25 20:18:53 +01:00
Jeroen van Rijn
7c3ce334d6
Fix #4508 for abs, min, max ( #4516 )
...
* Fix #4508 for abs, min, max and the rest of the builtins.
None of these segfault now:
```odin
package bug
main :: proc() {
p :: proc() {}
// _ = len(p())
// _ = cap(p())
// _ = size_of(p())
// _ = align_of(p())
// T :: struct {}
// _ = offset_of(p())
// _ = offset_of(T, p())
// _ = offset_of(p(), foo)
// _ = offset_of(p(), "")
// _ = type_of(p())
// _ = type_info_of(p())
// _ = typeid_of(p())
// A: [4]int
// _ = swizzle(p()) // :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
// _ = swizzle(A, p()) // :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
// _ = complex(p(), p())
// _ = quaternion(p(), p(), p(), p())
// _ = quaternion(w=p(), x=p(), y=p(), z=p())
// _ = real(p())
// _ = imag(p())
// _ = jmag(p())
// _ = kmag(p())
// _ = conj(p())
// _ = expand_values(p())
// _ = min(p())
// _ = max(p())
// _ = abs(p())
// _ = clamp(p(), p(), p())
// _ = soa_zip(p())
// _ = soa_unzip(p())
}
```
2024-11-25 15:27:35 +01:00
gingerBill
f213b8e5cf
Allow for odin help build etc
2024-11-25 14:04:17 +00:00
Jeroen van Rijn
1a0a6c485d
Add comment explaining #4515 test.
2024-11-25 13:47:04 +01:00
Jeroen van Rijn
2dc0187836
Test #4515
2024-11-25 13:16:27 +01:00
o:tone
c3478e0002
fix unmarshal unhandled error ( #4515 )
...
* fix unmarshal unhandled error
2024-11-25 13:15:33 +01:00
Jeroen van Rijn
d3d3cbf186
Merge pull request #4512 from lxmcf/master
...
raylib: Update to 5.5
2024-11-25 11:16:28 +01:00
lxmcf
29839ea9e2
Resolve indentation issues
2024-11-25 21:09:10 +11:00
Alex Macafee
6ebea39b3e
Add missing trailing commas
2024-11-25 19:50:34 +11:00
lxmcf
b76781015b
Update vendor:raylib to raylib 5.5
2024-11-25 19:37:43 +11:00
gingerBill
a84fcd03da
Delete imports of removed packages
2024-11-24 12:35:05 +00:00
gingerBill
12e7ff1e3c
Remove core:c/frontend
2024-11-24 12:32:10 +00:00
Jeroen van Rijn
73ab881eda
Merge pull request #4510 from Kelimion/fix_4509
...
Fix #4509
2024-11-24 13:15:02 +01:00
Jeroen van Rijn
56e4da8546
Fix #4509
2024-11-24 13:08:24 +01:00
Laytan
e607cbe930
Merge pull request #4506 from laytan/vet-cast-check-actually-castable
...
checker: only error with -vet-cast when it is actually castable
2024-11-21 19:30:14 +01:00
Laytan Laats
83bf0c6ab8
checker: only error with -vet-cast when it is actually castable
2024-11-21 19:18:17 +01:00
gingerBill
a88ac1d210
Merge pull request #4505 from colrdavidson/tzone_fix
...
Parsing fix for timezones that have an uneven number of utc / st tags
2024-11-21 15:30:17 +00:00
Colin Davidson
f8586d0051
oops, copy-paste-bug
2024-11-20 15:33:20 -08:00
Colin Davidson
da3a7a25c7
oops
2024-11-20 14:07:23 -08:00
Colin Davidson
3bb73eacfc
fix parsing issue around utc/localtime split
2024-11-20 12:09:32 -08:00
gingerBill
3229f4668d
Improve odin help -foo usage
2024-11-18 23:35:10 +00:00
Jeroen van Rijn
5955881d3c
Merge pull request #4499 from Waqar144/patch-1
...
Fix typo, its supposed to be #config
2024-11-18 20:18:43 +01:00
Waqar Ahmed
aafa7a04ab
Fix typo, its supposed to be #config
...
Otherwise compile errors out when importing the file with the error:
```odin
vendor/lua/5.2/lua.odin(10:15) Error: Undeclared name: config
LUA_SHARED :: config(LUA_SHARED, false)
```
2024-11-18 23:58:02 +05:00
gingerBill
8f845c7f73
Update radlink.exe
2024-11-17 21:47:46 +00:00
Jeroen van Rijn
d118f88cd5
Merge pull request #4494 from jakubtomsu/min-max-one-numeric-param-error
...
[checker] Report error when builtin `min`/`max` has only one numeric parameter
2024-11-17 21:53:45 +01:00
jakubtomsu
86c84f2621
Fix a bug in hxa decoder found by the new check
2024-11-17 21:35:49 +01:00
jakubtomsu
71880eb1ff
report error when builtin min/max has 1 (non-type) param
2024-11-17 21:02:30 +01:00
Laytan
b3b276c473
Merge pull request #4493 from Dudejoe870/quaternion-dot-fix
...
Fix typo in the Quaternion dot product implementation
2024-11-17 18:55:15 +01:00
Dudejoe870
4d22f1f544
Fix typo in Quaternion dot product
2024-11-17 10:42:59 -06:00
Laytan Laats
20f4f378b2
sys/posix: add MAP_ANONYMOUS
2024-11-17 13:52:08 +01:00
Laytan Laats
8f2766c4dc
add missing macos version
2024-11-16 15:42:13 +01:00
Jeroen van Rijn
40eeaf42b9
Merge pull request #4490 from Tetralux/fix-make-map-alloc
...
[runtime] `make(map[K]V)` should not allocate any capacity
2024-11-16 12:56:00 +01:00
Tetralux
2f85257bad
[runtime] make(map[K]V) should not allocate any capacity
...
`make(map[K]V)` was resolving to `make_map_cap()` which allocates initial capacity when it wasn't intended to.
It now calls `make_map()` which doesn't allocate any capacity.
Both `make(map[K]V)` and `make(map[K]V, allocator)` will NOT allocate initial capacity now.
2024-11-16 06:13:12 +00:00
gingerBill
0781871efd
Merge pull request #4489 from laytan/os2-dir-leak-and-test
...
os2: fix leak in dir_windows, fix netbsd, and add a test for dir reading
2024-11-15 23:22:14 +00:00
Laytan Laats
282d956aa7
os2: skip dir test when unsupported
2024-11-15 21:56:55 +01:00
Laytan Laats
ce74325673
sys/posix: fix dirfd on netbsd
2024-11-15 21:22:23 +01:00
Jeroen van Rijn
a3442b22da
Merge pull request #4488 from NicknEma/win32-struct-fix
...
Fix integer type
2024-11-15 21:17:35 +01:00
NicknEma
5486327e0b
Fix integer type
...
Change int to i32 so it is the correct size
2024-11-15 21:10:55 +01:00
Laytan Laats
de9d0134e4
os2: fix file type detection in dir_windows
2024-11-15 21:08:14 +01:00
Laytan Laats
71020d7642
os2: add read dir test
2024-11-15 20:47:51 +01:00
Laytan Laats
b3c2f5cb12
os2: fix leak in dir_windows
2024-11-15 20:47:34 +01:00
gingerBill
2af014b960
Make lowercase
2024-11-14 17:42:21 +00:00
gingerBill
7adb4c91d4
Fix typo
2024-11-14 17:05:34 +00:00
gingerBill
b9886dfcc7
Add -linker:<string> to replace -lld and -radlink
2024-11-14 17:04:45 +00:00
gingerBill
26f6741674
Check for more errors in json.unmarshal
2024-11-14 16:45:36 +00:00
gingerBill
8de6909198
Disallow -lld and -radlink to be used together
2024-11-14 16:35:48 +00:00
gingerBill
f57d531a52
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-11-14 16:34:04 +00:00
gingerBill
b5a9b8b6c3
Add radlink.exe
2024-11-14 16:33:54 +00:00
gingerBill
21a25bddde
Add -radlink
2024-11-14 16:32:26 +00:00
gingerBill
537ff3beb3
Merge pull request #4482 from A1029384756/master
...
core:sys/linux - implemented inotify
2024-11-14 16:23:08 +00:00