Laytan and GitHub
bca016ae94
Merge pull request #4720 from jasonKercher/remove-custom-heap-allocator
...
os2/heap_linux point to runtime._heap_allocator_proc
2025-01-19 13:34:11 +01:00
Laytan and GitHub
20fa9fbd61
Merge pull request #4717 from LineuVale/fixDrawRectangleRoundedLines
...
Fix raylib DrawRectangleRoundedLines
2025-01-18 22:55:51 +01:00
Laytan Laats
5622fb583c
math/rand: add @(require_results) to create
2025-01-18 22:52:13 +01:00
Laytan and GitHub
f8c2aa9316
Merge pull request #4713 from Rexicon226/matrix-errors
...
fix inverted error messages
2025-01-18 22:46:41 +01:00
Laytan and GitHub
6f24eb87c0
Merge pull request #4697 from JamesDSource/master
...
Allow captures in gfind and gmatch to be used in-loop
2025-01-18 22:36:19 +01:00
Laytan Laats
4de5911a15
fix map_entry sometimes giving wrong key pointer
...
`map_desired_position` does not return the actual position, probing must
be done afterwards to figure out the real position. `map_entry` did not
do this for the returned key pointer so it could point to the wrong key
if probing was done.
2025-01-18 14:02:27 +01:00
Laytan and GitHub
47030501ab
Merge pull request #4585 from wrapperup/miniaudio-bitsets
...
`vendor:miniaudio`: Use bit sets for flags
2025-01-17 18:42:46 +01:00
Laytan and GitHub
8e9726866a
remove other redundant constant
2025-01-17 18:31:39 +01:00
Laytan and GitHub
16eca1ded1
Merge pull request #4702 from flysand7/4632-futex-windows
...
[sync]: Fix typos in comments and remove my note.
2025-01-16 18:05:51 +01:00
Laytan Laats
aa3f0b86c1
compiler: fix align error check
2025-01-15 20:18:50 +01:00
Laytan and GitHub
e55b652916
Merge pull request #4678 from clindholm/glfw_get_monitor_workarea
...
vendor/glfw: add GetMonitorWorkarea binding
2025-01-15 10:37:42 +01:00
Laytan and GitHub
0cb04f5153
Merge pull request #4691 from harold-b/fix-unused-define-crash-when-ignore-warnins
...
Fixes crash when unused defines are used in conjunction with `-ignore-warnings`
2025-01-15 10:37:15 +01:00
Laytan and GitHub
432c49e214
Merge pull request #4689 from karl-zylinski/d3d12-tabs-fix
...
d3d12 bindings -vet-tabs fix
2025-01-14 06:11:57 +01:00
Laytan Laats
9d4fa39daa
add ensure and ensuref to fmt and log, fix some inconsistencies
2025-01-13 20:33:49 +01:00
Laytan and GitHub
cd93e2f6f8
Merge pull request #4672 from shizeeg/master
...
add os.exists() to FreeBSD
2025-01-11 01:03:36 +01:00
Laytan Laats
896319d0d5
ci: test issues on windows
2025-01-11 01:00:15 +01:00
Laytan Laats
e3c0cc9dfc
time: add haiku
2025-01-11 00:18:36 +01:00
Laytan and GitHub
e4ae832775
Merge pull request #4603 from avanspector/master
...
Haiku: fix build and add initial `core:sys/posix` support
2025-01-11 00:06:29 +01:00
Laytan Laats
1511162b0a
webgpu: fix cstring as parameter not loading correctly
2025-01-09 17:29:31 +01:00
Laytan Laats
16e3abfe82
strings: use map_entry
2025-01-08 22:20:43 +01:00
Laytan Laats
2620721128
'#no_nil' I am actually disappointed in myself
2025-01-08 21:45:59 +01:00
Laytan Laats
b3c359557e
#no_nil third time's the charm
2025-01-08 21:24:22 +01:00
Laytan Laats
7185a93a86
actually fix #no_nil debug info
...
Fixes #4664
2025-01-08 20:24:31 +01:00
Laytan Laats
2aae4cfd46
fix #no_nil in debug info
...
Fixes #4664
2025-01-08 18:47:32 +01:00
Laytan and GitHub
b71c74a357
Merge pull request #4666 from DaveTheGameDev/sys_windows
...
Fix name of RI_MOUSE_LEFT_BUTTON_DOWN containing S at the end in (user32.odin)
2025-01-08 07:46:47 +01:00
Laytan Laats
b136aa26c8
sys/windows: fix xinput build tag
2025-01-06 21:14:37 +01:00
Laytan Laats
0cc1dbb092
vendor/box2d: clarify wasm building
2025-01-05 19:35:37 +01:00
Laytan Laats
bf0e6eaf60
vendor/raylib: fix SetVertexAttribute definition
...
Fixes #4596
2025-01-05 19:21:39 +01:00
Laytan and GitHub
f566c5ee83
Merge pull request #4639 from flga/vulkan_xlib_xcb
...
`vendor:vulkan` Add support for xlib and xcb
2025-01-05 19:03:57 +01:00
Laytan and GitHub
3a2396033c
Merge pull request #4648 from lzurbriggen/fix/get-comm-ports
...
move GetCommPorts, add missing comm functions, add communication events
2025-01-05 18:53:36 +01:00
Laytan and GitHub
00afd53f46
Merge pull request #4654 from obiwan87/master
...
Minor adjustments in documentation-only files for better LSP support
2025-01-05 18:52:19 +01:00
Laytan and GitHub
b98833ce04
spacing
2025-01-05 18:42:48 +01:00
Laytan and GitHub
96513c8d5d
Merge pull request #4636 from 2nafish117/update-to-cgltf-1.14
...
update cgltf from 1.13 to 1.14
2025-01-05 18:41:29 +01:00
laytan
834209194f
rebuild windows lib
2025-01-05 17:35:40 +01:00
Laytan Laats
252b807714
update wasm blob
2025-01-05 18:22:38 +01:00
Laytan and GitHub
bf77036cb0
Merge pull request #4651 from flga/runtime_map_get
...
runtime: map_cell_index_static produced wrong results when the number of elements per cell was a power of 2
2025-01-05 14:27:44 +01:00
Laytan and GitHub
aa4bc10a84
Merge pull request #4649 from dspx-plcr/master
...
add default -I and -L paths for OpenBSD
2025-01-05 14:23:51 +01:00
Laytan and GitHub
73d1427127
Merge pull request #4662 from IllusionMan1212/jpeg-detection
...
fix(core/image): off-by-one index when detecting certain JPEG images
2025-01-05 14:23:35 +01:00
Laytan Laats
5957ff3699
vendor/raylib: fix Vector3Unproject wrong assignment
...
Fixes #4646
2025-01-05 13:45:01 +01:00
Laytan and GitHub
71b0f7e698
Merge pull request #4644 from karl-zylinski/box2d-build-script-fix
...
Fix for casing error in box2d/wasm.Makefile
2025-01-01 21:26:28 +01:00
Laytan and GitHub
8763b15c61
Merge pull request #4643 from karl-zylinski/fix-vendor-libc-sin-log-types
...
Fix for vendor:libc using wrong types for log and sin procs.
2025-01-01 21:18:47 +01:00
Laytan and GitHub
7ffec820ac
Merge pull request #4610 from blob1807/master
...
Fix io.write_escaped_rune not writing full value
2024-12-30 23:53:24 +01:00
Laytan and GitHub
c02710cce8
Merge pull request #4638 from DataResearch/master
...
Added proc to user32 Bindings
2024-12-30 23:53:04 +01:00
Laytan and GitHub
a73c7be8f7
Merge pull request #4600 from jasonKercher/arm64-linux-fixes
...
Get arm64 up to speed in os2 linux
2024-12-30 23:38:59 +01:00
Laytan and GitHub
8b1c9b0ff5
Merge pull request #4568 from giuliano-macedo/master
...
docs: improved `slice.reinterpret` docstring
2024-12-14 16:46:17 +01:00
Laytan and GitHub
cecd7ea0b2
Merge pull request #4572 from GonkieDev/win32_rawinput_typo_fix
...
Typo in windows rawinput constant's name
2024-12-11 23:02:25 +01:00
Laytan Laats
c8f0d27cee
compiler: remove viral #force(_no)_inline
...
If a procedure was marked `#force_no_inline`, any procedure calls within
it would also implicitly be. This is not expected for multiple reasons:
1. `#force(_no)_inline` on a call expr works differently than on a procedure literal.
2. Adding the attribute on it and every called proc blows up the amount
of work for the inliner pass and may increase the time it takes.
3. Putting `#force_no_inline` on a procedure to keep executable size
down (like we do for some map procedures), benchmark it, or find it in
asm/ir has the added effect of slowing those procedures down significantly
and not representing truth.
2024-12-09 19:12:42 +01:00
Laytan Laats
6e1d028861
fix #4389 - retrieve file type by opening if other methods failed
2024-12-06 23:51:14 +01:00
Laytan Laats
f1cae8d844
fix #4496 - allow unlock of unlocked mutex (making it consistent with windows behaviour)
2024-12-06 23:08:47 +01:00
Laytan Laats
7edd332993
fix #4536 - stack buffer overflow for size_of 0 types in struct unmarshal
2024-12-06 22:12:52 +01:00
Laytan Laats
676fe34863
fix #4547 - wasm -out without file extension
2024-12-06 19:38:53 +01:00
Laytan Laats
402f8dd576
raylib/rlgl: fix foreign imports after update to 5.5
2024-12-06 18:54:48 +01:00
Laytan Laats
cf53404f5f
sync: fix no new values
2024-12-05 20:05:19 +01:00
Laytan Laats
ac3a87c2cf
sync: fix require results
2024-12-05 19:04:45 +01:00
Laytan Laats
ad438f418d
sync: fix futexes on wasm
2024-12-05 19:00:45 +01:00
Laytan and GitHub
cdb86d69b3
Merge pull request #4556 from cornishon/index_multi
...
improve `strings.index_multi`
2024-12-04 22:01:49 +01:00
Laytan and GitHub
910b46ebf0
Merge pull request #4555 from ycros/fix-regex-num-groups
...
fix: regex's match_with_preallocated_capture returning num_groups
2024-12-04 12:46:57 +01:00
Laytan and GitHub
03a53ccce2
Merge pull request #4546 from thetarnav/correct-parsing-build-tag-newlines
...
Correct handling newlines between build tags in `core:odin`
2024-12-01 19:13:59 +01: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
8050622fe6
add map_entry procedure
2024-11-28 20:07:54 +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