Laytan Laats and flysand7
e6a9f93e9f
dynlib: unload library before loading again & add LIBRARY_FILE_EXTENSION constant
2024-12-01 11:54:56 +11:00
Laytan Laats and flysand7
d51692a3b4
properly keep track of current scope for debugging
...
Fixes #4519
2024-12-01 11:54:56 +11:00
Laytan Laats and flysand7
da4347f790
sys/info & odin report: rework macos version retrieval
2024-12-01 11:54:56 +11:00
Laytan Laats and flysand7
76516030c4
vendor/raylib: revert removal of arm64 raygui binaries and fix import paths
2024-12-01 11:54:56 +11:00
Laytan Laats and flysand7
5a201d588b
add macos 15.1.1 to odin report and sys/info
2024-12-01 11:54:56 +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
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
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
Laytan Laats and flysand7
38c79b203a
reflect: add enum_value_has_name proc
...
Easy way to check if the current value has a defined name/member in the
enum type.
2024-12-01 11:54:53 +11:00
Laytan Laats and flysand7
9adc7f2bcf
fix tabs
2024-12-01 11:54:52 +11:00
Laytan Laats and flysand7
6866e69cb9
add time/timezone to docs
2024-12-01 11:54:52 +11:00
Laytan Laats and flysand7
9735f8a0ba
add CoreFoundation and Security to docs
2024-12-01 11:54:52 +11:00
Laytan Laats and flysand7
7b63abdba3
add kqueue to docs
2024-12-01 11:54:52 +11:00
Laytan Laats and flysand7
e6d324c5c4
testing: separate the posix import into target files
...
This is needed for the docs generator to generate all the docs for the
posix package, if it is imported like it was on Windows it would
generate docs for the Windows version of the package which has much less
symbols exposed.
2024-12-01 11:54:52 +11:00
Laytan Laats and flysand7
c08408ea08
fix thread_unix for Darwin after pthread corrections in posix package
...
afed3ce removed the sys/unix package and moved over to sys/posix, it has
new bindings for the pthread APIs but should have been equivalent (not).
8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the
correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for
FreeBSD in that commit).
What this meant is that the
`pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually
successful, but because the error wasn't checked it was assumed it was.
It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would
actually be setting `PTHREAD_CANCEL_DISABLE`.
The code in this PR restores the behaviour by now actually deliberately
setting `PTHREAD_CANCEL_DISABLE` and not setting
`PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does
actually seem to work for some reason.
(I also fixed an issue in fmt where `x` would use uppercase if it was a
pointer.)
2024-12-01 11:54:52 +11:00
Laytan and flysand7
78dc4d4907
fix test
2024-12-01 11:54:51 +11:00
Laytan and flysand7
9f1c894f1f
port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it
2024-12-01 11:54:51 +11:00
Laytan and flysand7
f342215b4d
clean up dynlib and path/filepath with sys/posix
2024-12-01 11:54:51 +11:00
Laytan and flysand7
2b5f0fc729
remove pthread from sys/unix and use sys/posix where used
2024-12-01 11:54:51 +11:00
Laytan and flysand7
7de56ec852
fix #load_directory including nested directories
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
49ddbd9b99
sys/posix: impl rest of linux, impl some of Windows
2024-12-01 11:54:51 +11:00
Laytan and flysand7
5faefac106
math/rand: choice_bit_set return not_empty -> ok
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
d85f18e898
math/rand: add choice_bit_set
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
8e6cbe9a29
fix the typeid type kind of a typeid being set to Typeid_Invalid
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
f3c19e183f
wgpu: add missing JS impl for RenderPassEncoderSetBlendConstant
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
d185ab5991
sys/wasm/js: add set_element_style
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
3740497e42
encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
4207d4fded
encoding/cbor: handle binary having more fields than the struct by discarding
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
0d4d3bd1de
math/rand: support non-contiguous enums in choice_enum
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
538cea27f7
wgpu: take version check out of @init, use C cc when appropriate
2024-12-01 11:54:51 +11:00
Laytan Laats and flysand7
0c470895b3
image: add panic when load is called without any registered loaders
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
6e534c0e24
check packed load and set alignment on all loads, not just lb_emit_load
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
64fdf6e18f
quote the dsymutil argument
...
Fixes #4417
2024-12-01 11:54:50 +11:00
laytan and flysand7
182a916092
fix erronous updating alignment of external global
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
357f463372
odin/parser: fix offsets of value declarations
...
Fixes #4356
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
f56ac466c3
encoding/json: fix leak when string is unmarshalled into non-string field
...
Fixes #4391
2024-12-01 11:54:50 +11:00
Laytan Laats and flysand7
cded6b8479
possibly fix not having shared dir in recent windows releases
...
Probably caused by https://github.com/actions/upload-artifact/issues/602
Possibly fixes #4384
2024-12-01 11:54:49 +11:00
Laytan Laats
1cece52359
dynlib: unload library before loading again & add LIBRARY_FILE_EXTENSION constant
2024-11-28 21:08:08 +01:00
Laytan Laats
fa39d87f88
properly keep track of current scope for debugging
...
Fixes #4519
2024-11-27 20:55:48 +01:00
Laytan Laats
ad80aa6d28
sys/info & odin report: rework macos version retrieval
2024-11-26 22:28:21 +01:00
Laytan Laats
ef3d51fad2
vendor/raylib: revert removal of arm64 raygui binaries and fix import paths
2024-11-26 18:59:51 +01:00
Laytan Laats
767daf4a9c
add macos 15.1.1 to odin report and sys/info
2024-11-26 18:46:27 +01:00
Laytan and GitHub
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
Laytan and GitHub
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
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
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
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
Laytan and GitHub
7cec3044db
Merge pull request #4484 from spahnke/add-bindings
...
Add NSApplication bindings for `mainWindow` and `keyWindow`
2024-11-13 20:18:23 +01:00
Laytan and GitHub
bed6828ea3
Merge pull request #4454 from amekusa/fix-build-sh
...
Fix: `build_odin.sh` always runs demo regardless of argument
2024-11-11 19:02:57 +01:00
Laytan Laats
9c374b4d02
reflect: add enum_value_has_name proc
...
Easy way to check if the current value has a defined name/member in the
enum type.
2024-11-11 18:56:59 +01:00
Laytan and GitHub
e03f998c27
Merge pull request #4462 from A1029384756/master
...
Added Unlinking Section to Posix Socket Binding Documentation
2024-11-07 21:37:50 +01:00
Laytan and GitHub
fd442b8678
Merge pull request #4461 from nickk-dv/master
...
Fix random sequence bindings in vendor raylib
2024-11-06 22:31:00 +01:00
Laytan and GitHub
7cfaf0b181
Merge pull request #4415 from p2jason/master
...
Remove the event queue from odin.js and directly invoke callbacks so they are executed in context where prevent default is possible
2024-11-01 19:48:36 +01:00
Laytan Laats
8b5492dd4d
fix tabs
2024-11-01 18:10:20 +01:00
Laytan Laats
92bc3a5b4d
add time/timezone to docs
2024-11-01 18:01:49 +01:00
Laytan Laats
80393cb708
add CoreFoundation and Security to docs
2024-11-01 16:47:48 +01:00
Laytan Laats
7fd32a74c5
add kqueue to docs
2024-11-01 16:42:06 +01:00
Laytan Laats
f798f0b446
testing: separate the posix import into target files
...
This is needed for the docs generator to generate all the docs for the
posix package, if it is imported like it was on Windows it would
generate docs for the Windows version of the package which has much less
symbols exposed.
2024-11-01 16:27:45 +01:00
Laytan and GitHub
d4d546a63a
Merge pull request #4438 from laytan/fixing-threads
...
fix thread_unix for Darwin after pthread corrections in posix package
2024-10-30 16:10:34 +01:00
Laytan Laats
cc3c9bd871
fix thread_unix for Darwin after pthread corrections in posix package
...
afed3ce removed the sys/unix package and moved over to sys/posix, it has
new bindings for the pthread APIs but should have been equivalent (not).
8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the
correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for
FreeBSD in that commit).
What this meant is that the
`pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually
successful, but because the error wasn't checked it was assumed it was.
It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would
actually be setting `PTHREAD_CANCEL_DISABLE`.
The code in this PR restores the behaviour by now actually deliberately
setting `PTHREAD_CANCEL_DISABLE` and not setting
`PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does
actually seem to work for some reason.
(I also fixed an issue in fmt where `x` would use uppercase if it was a
pointer.)
2024-10-30 15:51:56 +01:00
Laytan and GitHub
47be77ead5
Merge pull request #4430 from Wyr0X/patch-1
...
fix cbor.to_json always returning array of tuples for objects
2024-10-29 11:46:51 +01:00
Laytan and GitHub
5f99d6b427
Merge pull request #4423 from laytan/rand-choice-bit-set
...
math/rand: add `choice_bit_set`
2024-10-28 20:23:45 +01:00
Laytan
cb2768625a
math/rand: choice_bit_set return not_empty -> ok
2024-10-28 20:07:38 +01:00
Laytan and GitHub
3e024347ee
Merge pull request #4426 from SrMordred/patch-1
...
Update process_windows.odin
2024-10-28 20:06:24 +01:00
Laytan
7e12e37df9
fix test
2024-10-28 19:58:39 +01:00
Laytan
b7140875cf
port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it
2024-10-28 19:42:27 +01:00
Laytan
0b4a4212bb
clean up dynlib and path/filepath with sys/posix
2024-10-28 19:21:16 +01:00
Laytan
afed3ce6b5
remove pthread from sys/unix and use sys/posix where used
2024-10-28 19:20:43 +01:00
Laytan
e064f8c6be
fix #load_directory including nested directories
2024-10-28 18:59:39 +01:00
Laytan Laats
1cebc025b0
sys/posix: impl rest of linux, impl some of Windows
2024-10-28 18:59:06 +01:00
Laytan Laats
69d375705e
fix the typeid type kind of a typeid being set to Typeid_Invalid
2024-10-27 01:11:44 +02:00
Laytan Laats
44eef21997
wgpu: add missing JS impl for RenderPassEncoderSetBlendConstant
2024-10-26 22:41:52 +02:00
Laytan Laats
bd38b4839c
sys/wasm/js: add set_element_style
2024-10-26 22:41:14 +02:00
Laytan Laats
4608d26e6e
encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal
2024-10-26 22:39:46 +02:00
Laytan and GitHub
1e3a924e11
Merge pull request #4420 from laytan/cbor-better-handling-of-mismatch-in-struct-and-binary-fields
...
encoding/cbor: handle binary having more fields than the struct by discarding
2024-10-26 17:14:44 +02:00
Laytan Laats
10c2f8dbeb
math/rand: add choice_bit_set
2024-10-26 13:50:28 +02:00
Laytan Laats
bb4fc9979a
math/rand: support non-contiguous enums in choice_enum
2024-10-25 20:41:57 +02:00
Laytan Laats
793ef6012b
encoding/cbor: handle binary having more fields than the struct by discarding
2024-10-25 20:37:55 +02:00
Laytan and GitHub
3b6ed2164b
Merge pull request #4399 from laytan/wgpu-improvements
...
wgpu: take version check out of @init, use C cc when appropriate
2024-10-25 20:15:15 +02:00
Laytan and GitHub
0b8e98febe
Merge pull request #4398 from laytan/image-misuse-panic
...
image: add panic when load is called without any registered loaders
2024-10-25 20:05:32 +02:00
Laytan Laats
bcf2b93c6e
quote the dsymutil argument
...
Fixes #4417
2024-10-25 15:34:59 +02:00
Laytan Laats
da1e09c95d
check packed load and set alignment on all loads, not just lb_emit_load
2024-10-25 15:23:15 +02:00
laytan
50597e8691
fix erronous updating alignment of external global
2024-10-22 17:34:49 +02:00
Laytan and GitHub
7c1922b0a7
Merge pull request #4401 from tgolsson/ts/cbor-unmarshal-dynarray
...
cbor: fix capacity and ptr calculation for dynarray unmarshal
2024-10-20 21:40:05 +02:00
Laytan Laats
c8ed499293
image: add panic when load is called without any registered loaders
2024-10-20 18:41:10 +02:00
Laytan Laats
62922a421c
wgpu: take version check out of @init, use C cc when appropriate
2024-10-20 18:40:17 +02:00
Laytan Laats
9f609dd740
odin/parser: fix offsets of value declarations
...
Fixes #4356
2024-10-19 20:02:39 +02:00
Laytan Laats
e79f94ca5e
encoding/json: fix leak when string is unmarshalled into non-string field
...
Fixes #4391
2024-10-19 17:08:24 +02:00
Laytan Laats
b82f8df5f5
possibly fix not having shared dir in recent windows releases
...
Probably caused by https://github.com/actions/upload-artifact/issues/602
Possibly fixes #4384
2024-10-17 18:05:37 +02:00
Laytan and GitHub
2141299d2b
Merge pull request #4376 from Barinzaya/sysinfo-avx512
...
core:sys/info AVX-512 CPU Features
2024-10-16 19:46:01 +02:00