Commit Graph

6628 Commits

Author SHA1 Message Date
Vincent Billet
d98253564b MAKEFOURCC: changed BYTE to byte 2025-05-26 22:31:21 +02:00
Jeroen van Rijn
d156c2663a Merge pull request #5220 from Feoramund/fix-multiline-regex
Fix multiline RegEx iteration (breaking change for `.Multiline` usage)
2025-05-26 21:24:02 +02:00
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
Laytan Laats
eac58fc640 sys/info: populate cpu.physical_cores and cpu.logical_cores on Darwin 2025-05-26 20:41:18 +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
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
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
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
Feoramund
1662ab10af Fix off-by-one error in priority_queue.remove 2025-05-21 09:33:39 -04: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
Jeroen van Rijn
f65e418dc9 Merge pull request #5189 from Feoramund/fix-ansi-log-terminal
Add `core:terminal`, fix test runner/`core:log` ANSI code issues
2025-05-21 14:20:18 +02:00
Feoramund
e659df1a3f Restructure core:terminal for better Windows support 2025-05-21 07:49:08 -04:00
Feoramund
b6f1821bba Fix terminal detection on Windows 2025-05-21 05:20:58 -04:00
gingerBill
5af9e37e08 Merge pull request #5187 from laytan/no-libc-use-os2
os2: remove libc use on Linux for get_absolute_path
2025-05-21 09:41:30 +01:00
Vincent Billet
b03cdd22d5 COM & Audio useful bindings 2025-05-21 09:48:41 +02:00
Feoramund
1b407ef207 Add animation detection support to test runner 2025-05-20 19:28:07 -04:00
Feoramund
3c40a54dcd Add terminal color detection to logging in core:testing 2025-05-20 19:28:06 -04:00
Feoramund
a9df1b1cde Rename core:encoding/ansi to core:terminal/ansi 2025-05-20 19:28:06 -04:00
Feoramund
df5e64beeb Add terminal color detection to core:log 2025-05-20 19:28:06 -04:00
Feoramund
30c1b88741 Add core:terminal 2025-05-20 19:27:58 -04:00
Laytan Laats
eab3e2be22 os2: remove libc use on Linux 2025-05-20 19:48:06 +02:00
Jeroen van Rijn
8bffd247b7 Restore console mode when test runner exits. 2025-05-20 16:51:24 +02:00
Krzesimir Nowak
3519cecb7c Formatting fixes 2025-05-18 15:25:17 +02:00
Krzesimir Nowak
306d3a16c4 sys/linux: Improve documentation for Dirent and related procedures 2025-05-17 20:05:51 +02:00
Jeroen van Rijn
d6210ae76f Fix -vet complaints in core:sys/darwin/Foundation 2025-05-17 16:36:10 +02:00
gingerBill
5454e120fe Add NSMenuItem.odin 2025-05-17 13:27:54 +01:00
gingerBill
63304af47e Merge branch 'master' of https://github.com/odin-lang/Odin 2025-05-17 11:36:30 +01:00
gingerBill
d77124feae Add Objective-C helper for creating subclasses 2025-05-17 11:36:24 +01:00
Laytan
d3159f74cd Merge pull request #4944 from dozn/master
[core:encoding/json] When Unmarshalling, Only Match On Struct Tags If Present
2025-05-15 22:31:34 +02:00
Jeroen van Rijn
d7a83a7a1f Revert "os2: Don't try to translate Windows file attributes to Unix mode flags"
This reverts commit 95923c2059.
It'll be updated later.
2025-05-12 23:34:12 +02:00
Jeroen van Rijn
be24feb862 Move things to constants.odin 2025-05-12 17:13:59 +02:00
Jeroen van Rijn
dec3d6959d Update linux.Map_Flags_Bits
Fixes #5151

- Removes `SHARED_VALIDATE` from the enum and turns it into `Map_Shared_Validate :: Map_Flags{.SHARED, .PRIVATE}` so it has the proper value of 0x03.
- Adds `DROPPABLE`.
- Adds constants `MAP_HUGE_SHIFT` and `MAP_HUGE_MASK`.
- Adds the huge page precomputed constants from `mman.h`, defined as the log2 of the size shifted left by `MAP_HUGE_SHIFT`:
	Map_Huge_16KB
	Map_Huge_64KB
	Map_Huge_512KB
	Map_Huge_1MB
	Map_Huge_2MB
	Map_Huge_8MB
	Map_Huge_16MB
	Map_Huge_32MB
	Map_Huge_256MB
	Map_Huge_512MB
	Map_Huge_1GB
	Map_Huge_2GB
	Map_Huge_16GB
2025-05-12 16:45:51 +02:00
Jeroen van Rijn
39789bc6cb Make strings.to_cstring adhere to #optional_allocator_error 2025-05-12 01:17:34 +02:00
Jeroen van Rijn
30388cada3 Fix os2.clean_path on Windows 2025-05-11 15:35:52 +02:00
gingerBill
ecd0655ba2 Merge pull request #5138 from laytan/os2-native-copy
os2: copy directory using walker & native copy setup and implementation on macos
2025-05-10 14:34:03 +01:00
Laytan Laats
ebc63a7355 add hexfloat (0h) parsing to strconv 2025-05-10 15:11:52 +02:00
Laytan Laats
cacb9f9f54 os2: better copy_directory, and add native copy_file and copy_directory variants on MacOS 2025-05-08 19:32:30 +02:00
gingerBill
edbe7aa06e Merge pull request #5091 from Badaxis/badaxis/windows-scancodes
Adding windows keyboard scan codes
2025-05-08 16:33:14 +01:00
gingerBill
4a4294c2af Merge pull request #5095 from Lperlind/temp-collisions
os2: Resolve temp allocator collisions
2025-05-08 15:11:51 +01:00
gingerBill
0ce8373528 Formatting Fix 2025-05-08 13:23:22 +01:00
Lucas Perlind
f5b947ea73 Fix linux 2025-05-08 17:45:29 +10:00
Lucas Perlind
14c5096b81 Improve assert information 2025-05-08 17:41:03 +10:00
Lucas Perlind
9f2d008a8a Remove TEMP_ALLOCATOR_GUARD wrapper 2025-05-08 17:41:03 +10:00