Jeroen van Rijn and flysand7
9388f0d5a5
Add aliases for Is*Ready -> Is*Valid
2024-12-01 11:54:56 +11:00
Jeroen van Rijn and flysand7
0e3572947a
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-12-01 11:54:56 +11:00
gingerBill and flysand7
3c3c59fc03
Allow for odin help build etc
2024-12-01 11:54:56 +11:00
Jeroen van Rijn and flysand7
7e4aafe239
Add comment explaining #4515 test.
2024-12-01 11:54:56 +11:00
Jeroen van Rijn and flysand7
66c57e380a
Test #4515
2024-12-01 11:54:56 +11:00
o:tone and flysand7
d15d152746
fix unmarshal unhandled error ( #4515 )
...
* fix unmarshal unhandled error
2024-12-01 11:54:55 +11:00
lxmcf and flysand7
0f7b1b426f
Resolve indentation issues
2024-12-01 11:54:55 +11:00
Alex Macafee and flysand7
58d08090f7
Add missing trailing commas
2024-12-01 11:54:55 +11:00
lxmcf and flysand7
9f1e3862b5
Update vendor:raylib to raylib 5.5
2024-12-01 11:54:55 +11:00
gingerBill and flysand7
329855e586
Delete imports of removed packages
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
d85de2e54e
Remove core:c/frontend
2024-12-01 11:54:54 +11:00
Jeroen van Rijn and flysand7
4d9a9ec3f5
Fix #4509
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
1d8eb3aac4
checker: only error with -vet-cast when it is actually castable
2024-12-01 11:54:54 +11:00
Colin Davidson and flysand7
876989b3ab
oops, copy-paste-bug
2024-12-01 11:54:54 +11:00
Colin Davidson and flysand7
6c140b01ed
oops
2024-12-01 11:54:54 +11:00
Colin Davidson and flysand7
b66e756135
fix parsing issue around utc/localtime split
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
514b537dd5
Improve odin help -foo usage
2024-12-01 11:54:54 +11:00
Waqar Ahmed and flysand7
3f30953c01
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-12-01 11:54:54 +11:00
gingerBill and flysand7
6baff9f1f8
Update radlink.exe
2024-12-01 11:54:54 +11:00
jakubtomsu and flysand7
a119a6f33e
Fix a bug in hxa decoder found by the new check
2024-12-01 11:54:54 +11:00
jakubtomsu and flysand7
aaea7b27f2
report error when builtin min/max has 1 (non-type) param
2024-12-01 11:54:54 +11:00
Dudejoe870 and flysand7
76d689a601
Fix typo in Quaternion dot product
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
460e2629bd
sys/posix: add MAP_ANONYMOUS
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
468c0b573a
add missing macos version
2024-12-01 11:54:54 +11:00
Tetralux and flysand7
f8003b8b03
[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-12-01 11:54:54 +11:00
Laytan Laats and flysand7
ed8aede369
os2: skip dir test when unsupported
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
d94ef8d27a
sys/posix: fix dirfd on netbsd
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
ac2c9ac713
os2: fix file type detection in dir_windows
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
dac927fb75
os2: add read dir test
2024-12-01 11:54:54 +11:00
Laytan Laats and flysand7
0c64129aad
os2: fix leak in dir_windows
2024-12-01 11:54:54 +11:00
NicknEma and flysand7
f8ba86e0a6
Fix integer type
...
Change int to i32 so it is the correct size
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
57e0c41982
Make lowercase
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
d613a9ee5a
Fix typo
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
e58ac3cb8d
Add -linker:<string> to replace -lld and -radlink
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
6963b0f3f2
Check for more errors in json.unmarshal
2024-12-01 11:54:54 +11:00
gingerBill and flysand7
95731aceac
Disallow -lld and -radlink to be used together
2024-12-01 11:54:54 +11:00
A1029384756 and flysand7
9e520c38db
core:sys/linux - prefixing + moved IN_CLOSE/IN_MOVE to constants
2024-12-01 11:54:54 +11:00
A1029384756 and flysand7
59adcf6c46
core:sys/linux - flags, spacing, inotify_init
2024-12-01 11:54:54 +11:00
A1029384756 and flysand7
f6b0ea160b
core:sys/linux - fixed vet errors
2024-12-01 11:54:54 +11:00
A1029384756 and flysand7
be66d4bd8b
core:sys/linux - implemented inotify
...
core:sys/linux - added constants and spacing
2024-12-01 11:54:53 +11:00
gingerBill and flysand7
3afde70513
Add radlink.exe
2024-12-01 11:54:53 +11:00
gingerBill and flysand7
ec96939953
Add -radlink
2024-12-01 11:54:53 +11:00
gingerBill and flysand7
5d38eb9d81
Remove relative types from json marshaller
2024-12-01 11:54:53 +11:00
Alex Overstreet and flysand7
357d6212d0
Use tabs instead of spaces
2024-12-01 11:54:53 +11:00
Alex Overstreet and flysand7
522f05445e
Add STICKYKEYS, TOGGLEKEYS, and FILTERKEYS
2024-12-01 11:54:53 +11:00
Sebastian Pahnke and flysand7
a0561860f9
Add NSApplication bindings for mainWindow and keyWindow
2024-12-01 11:54:53 +11:00
gingerBill and flysand7
e72736a5a8
Remove #relative types from the compiler
2024-12-01 11:54:53 +11:00
gingerBill and flysand7
31c630dfea
Make #relative types an error in parsing
2024-12-01 11:54:53 +11:00
gingerBill and flysand7
95c812db78
Keep ASAN happy on type assertions
2024-12-01 11:54:53 +11:00
p2jason and flysand7
62d30daa00
Increase size of JS keyboard event key/code buffer size
2024-12-01 11:54:53 +11:00