Commit Graph

14703 Commits

Author SHA1 Message Date
Feoramund
35b157ac83 Fix multiline RegEx iteration
In `.Multiline` mode:

- `^` is now defined to assert the start of the string or that a "\n" or
  "\r" rune was parsed on last VM dispatch.

- `$` is now defined to consume a newline sequence of "\n", "\r", or
  "\r\n" or to assert the end of the string.
2025-05-26 14:48:45 -04:00
gingerBill
4f7ed35435 Merge pull request #5192 from Badaxis/badaxis/Windows-Audio&Winmm
COM & Audio bindings
2025-05-26 19:20:27 +01:00
Laytan
f1da10469e Merge pull request #5212 from sven-strothoff/glfw-bool-returns
Use b32 for GLFW functions that return GLFW_TRUE or GLFW_FALSE
2025-05-26 20:19:46 +02:00
gingerBill
36a8e81e4d Merge pull request #5219 from laytan/wgpu-25.0.2.1
wgpu: update to 25.0.2.1
2025-05-26 19:18:59 +01:00
Laytan Laats
88908d7f78 wgpu: update to 25.0.2.1 2025-05-26 20:06:11 +02:00
Laytan Laats
478c923e2c fix another type alias issue with mini cycle 2025-05-26 19:48:28 +02:00
Jeroen van Rijn
229c734820 Add comments to builtin.odin, documenting ODIN_* constants. (#5218)
And document constants not previously listed.
2025-05-26 18:58:59 +02:00
Vincent Billet
9b7bb9290e HRESULT_FROM_WIN32 correction 2025-05-26 08:52:46 +02:00
Vincent Billet
bb274ab512 Merge branch 'odin-lang:master' into badaxis/Windows-Audio&Winmm 2025-05-26 08:16:45 +02:00
Jeroen van Rijn
655fab7227 Add core/hyperthread count for Windows and Linux (#5216)
Add core/hyperthread count to `core:sys/info` for Windows and Linux.
TODO: Linux RISCV, Linux ARM, Darwin, and the BSDs.
2025-05-25 19:43:10 +02:00
Sven Strothoff
7c69cb399a Use b32 for GLFW functions that return GLFW_TRUE or GLFW_FALSE 2025-05-25 00:37:26 +02:00
Jeroen van Rijn
0a6dced9da Merge pull request #5210 from Barinzaya/core-math-big-range-check
Fix range check in `core:math/big`'s `int_atoi`
2025-05-24 17:43:00 +02:00
Barinzaya
d402b7408d Fix a range check in int_atoi in core:math/big.
The check seems to have been assuming that rune comparisons are
unsigned, but they're signed. This was causing an assertion failure for
certain input characters (anything with an ASCII value less than
'+'/43).
2025-05-24 11:31:37 -04:00
Jeroen van Rijn
142dd58b27 Merge pull request #5209 from Feoramund/regex-fixes
Fix RegEx iterator, remove `.Global`, make patterns unanchored by default (breaking change)
2025-05-24 15:38:26 +02:00
gingerBill
7b0b5d9adf Merge branch 'master' of https://github.com/odin-lang/Odin 2025-05-24 14:18:22 +01:00
gingerBill
594f1b30b4 Add Suggestion: 'context = runtime.default_context()' 2025-05-24 14:18:16 +01:00
Feoramund
5d01acc04f Add more RegEx tests 2025-05-24 07:42:04 -04:00
Feoramund
37d6491300 Remove Global RegEx flag, default to unanchored patterns 2025-05-24 07:42:04 -04:00
Feoramund
fedb9efb41 Make RegEx VM restartable and fix iterator infinite loop 2025-05-24 07:23:04 -04:00
Jeroen van Rijn
8b657379f3 Typo fix 2025-05-23 17:07:08 +02:00
Jeroen van Rijn
3d60b219c1 Allow text/scanner to scan 0h hex floats 2025-05-23 14:02:49 +02:00
Jeroen van Rijn
7ad8f21e79 Merge pull request #5205 from HeHHeyboi/signature-fix
Correct RWwrite signature in vendor:sdl2
2025-05-23 11:35:38 +02:00
HeHHeyboi
020dd57b06 Correct RWwrite signature 2025-05-23 15:29:08 +07:00
Jeroen van Rijn
84b140f963 Rename -keep-test-executable to -keep-executable 2025-05-23 08:47:48 +02:00
Jeroen van Rijn
f716d4c88f your your 2025-05-23 08:32:16 +02:00
Jeroen van Rijn
12167bace0 Tweak #5202
Back out the new `-build-only` for tests in favor of the more established `-build-mode:test`, but retain the new `-keep-test-executable` option and default cleanup of test executables.
2025-05-23 08:28:27 +02:00
Laytan
1886c7df0a Merge pull request #5203 from mothfuzz/patch-3
Correct mipmapFilter field name in wgpu.js
2025-05-23 07:48:52 +02:00
Jeroen van Rijn
149c563146 Merge pull request #5204 from Feoramund/freebsd-sanitizer
Enable all sanitizers on FreeBSD
2025-05-23 07:19:30 +02:00
Feoramund
6c5b96948e Enable all sanitizers on FreeBSD 2025-05-22 21:39:35 -04:00
Gaia
433a21b6ff Update wgpu.js
mipmapFilter is being ignored and defaulting to .Nearest on web platforms due to incorrect capitalization of the field name
2025-05-22 19:46:31 -05:00
Jeroen van Rijn
82c9681e28 Merge pull request #5202 from Feoramund/fix-2035
Add `-build-only`, `-keep-test-executable`, delete test executable after running
2025-05-23 00:13:36 +02:00
Feoramund
5b5822effc Delete test executable after running, add -keep-test-executable 2025-05-22 17:58:51 -04:00
Feoramund
0536f86268 Add -build-only for odin test command
This allows test executables to be only built, not run too.
2025-05-22 17:33:24 -04:00
gingerBill
93d2e6aca2 Merge pull request #5200 from rope-hmg/master
Added Semaphore API to the SDL3 vendor bindings
2025-05-22 15:59:32 +01:00
Hector
affced2d02 Added Semaphore API to the SDL3 vendor bindings 2025-05-22 15:35:09 +01:00
gingerBill
34e998c1fc Merge pull request #5173 from Feoramund/fix-linux-shared-lib-runtime-call
Keep shared libraries from calling main program's startup/cleanup procs on Linux
2025-05-22 15:27:53 +01:00
Feoramund
713360a792 Keep shared libraries from calling main program's startup/cleanup procs on Linux 2025-05-22 09:40:37 -04:00
Jeroen van Rijn
9421b77eb5 Merge pull request #5198 from Feoramund/fix-2807
Only trim `.odin` from build filenames
2025-05-22 15:01:35 +02:00
Feoramund
e35e1dcc7b Only trim .odin from build filenames 2025-05-22 08:23:06 -04:00
Vincent Billet
1ed05c2498 Retracted some winmm changes 2025-05-22 12:15:16 +02:00
Vincent Billet
240d45201d Reverted CoCreateInstance formatting 2025-05-22 09:14:33 +02:00
Jeroen van Rijn
f8bbeb54d4 Slight tweak. 2025-05-21 20:28:21 +02:00
Jeroen van Rijn
c32b7ba593 List -subtarget in odin help build 2025-05-21 20:24:27 +02:00
Jeroen van Rijn
95183e4b9c Remove now unnecessary checks. 2025-05-21 19:37:09 +02:00
Jeroen van Rijn
bd4134382b Merge pull request #5195 from Kelimion/fix-5177
Fix #5177
2025-05-21 19:28:38 +02:00
Jeroen van Rijn
96fd07e0ee Fix #5177 - Tweak error messages. 2025-05-21 19:20:58 +02:00
Jeroen van Rijn
a2c0720fb0 Merge pull request #5194 from Feoramund/fix-5067
Fix off-by-one error in `priority_queue.remove`
2025-05-21 16:21:14 +02:00
Feoramund
1662ab10af Fix off-by-one error in priority_queue.remove 2025-05-21 09:33:39 -04:00
Jeroen van Rijn
96bbd944dc Merge pull request #5193 from Feoramund/compliant-win32-terminal
Also use `ENABLE_PROCESSED_OUTPUT` on Windows terminals
2025-05-21 14:50:48 +02:00
Feoramund
899cfe9c37 Also use ENABLE_PROCESSED_OUTPUT on Windows terminals
This is specified to be necessary when using
`ENABLE_VIRTUAL_TERMINAL_PROCESSING`.
2025-05-21 08:40:19 -04:00