Jeroen van Rijn
b18f75c41c
Make core:flags file open errors more readable
...
If it fails because the file doesn't exist:
[Open_File_Error#2] Unable to open "foo.file". File not found.
If it does exist and the flags are simple (.Read, .Write or both), it'll say this:
[Open_File_Error#2] Unable to open "foo.file" with perms 0o444 as read-only
It it does exist but fails to open for other reasons, it'll print:
[Open_File_Error#2] Unable to open "foo.file" with perms 0o444 and flags File_Flags{....}
Future work: Translate permissions from octal to `ls -al` format (e.g. `-rwxrwxrwx`).
2026-02-11 22:52:24 +01:00
Jeroen van Rijn
b82512b4cf
Restrict math.wrap to floats.
2026-02-11 22:15:15 +01:00
Jeroen van Rijn
43f4b2187c
Fix #6251
...
Introduces `strings.Builder` versions of the various `to_string` procedures.
These are used using a stack buffer for `address_to_string` as called by `endpoint_to_string`, requiring no temp allocation for the address that's then written into the endpoint's builder.
2026-02-11 21:21:48 +01:00
Laytan Laats
ea6867ed61
Revert "fix wrong allocator in endpoint_to_string"
...
This reverts commit f755839877 .
2026-02-11 20:11:35 +01:00
Laytan Laats
d49ab07d35
fix typo
2026-02-11 20:05:45 +01:00
Laytan Laats
f755839877
fix wrong allocator in endpoint_to_string
...
Fixes #6251
2026-02-11 20:03:24 +01:00
Jeroen van Rijn
530fa1a257
Merge branch 'master' of github.com:odin-lang/Odin
2026-02-11 19:15:47 +01:00
Jeroen van Rijn
8468d269dc
Remove @(require_results) from os.read_directory_iterator
2026-02-11 19:15:32 +01:00
Laytan Laats
9c47ca7306
checkout with LFS binaries in nightly CI
2026-02-11 19:00:11 +01:00
gingerBill
355b8a8c83
Merge pull request #6245 from odin-lang/new_os
...
`core:os/os2` -> `core:os` integration
2026-02-11 17:53:16 +00:00
Jeroen van Rijn
b5bf28dc47
Merge branch 'master' of github.com:odin-lang/Odin
2026-02-11 16:34:50 +01:00
Jeroen van Rijn
bd3cf2a1e6
Remove -show-import-graph header
...
This allows you to pipe the output to a file and have a working graph without any editing.
(Provided you don't also use additional -flags like `-show-timings`.)
2026-02-11 16:33:52 +01:00
Jeroen van Rijn
2618a03514
Merge pull request #6258 from Faker-09/xar_depend
...
Remove core:mem dependency from core:container/xar
2026-02-11 16:19:21 +01:00
Jeroen van Rijn
2e58c62a80
Clarify -lto help text
2026-02-11 15:13:24 +01:00
gingerBill
b1633b9ebb
Require all values from a procedure iterator if the procedure is marked with @(require_results)
2026-02-11 14:05:06 +00:00
gingerBill
9e547b4f82
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-02-11 13:02:06 +00:00
gingerBill
16a6c96971
Add VirtualAlloc2 and MapViewOfFile3
2026-02-11 13:01:35 +00:00
Jeroen van Rijn
fedc0a9d96
Merge pull request #6257 from krnowak/krnowak/asm-unknown-directives
...
Stop silently ignoring unknown directives on an inline asm expression
2026-02-11 13:40:38 +01:00
Krzesimir Nowak
6cc6f06d4d
Stop silently ignoring unknown directives on an inline asm expression
2026-02-11 13:22:13 +01:00
Shane Shrybman
264029b2d6
Remove core:mem dependency from core:container/xar
2026-02-10 21:13:33 -05:00
gingerBill
ae91b9b369
Add -show-import-graph
2026-02-10 22:16:15 +00:00
gingerBill
3eaa11044c
Add user_data: rawptr to time.Benchmark_Options
2026-02-10 20:20:02 +00:00
Jeroen van Rijn
855bc31350
Merge pull request #6254 from jakubtomsu/more-import-cleanup
...
More import cleanup
2026-02-10 20:19:26 +01:00
jakubtomsu
83489c07f1
fix allocator error
2026-02-10 19:56:49 +01:00
jakubtomsu
26e4af28ad
remove the actual fmt import from trace_cpp
2026-02-10 19:55:50 +01:00
jakubtomsu
edd960905a
fix typo in the trace cpp backend
2026-02-10 19:48:12 +01:00
jakubtomsu
77be6a1f18
fix tabs
2026-02-10 19:46:51 +01:00
jakubtomsu
0e2f5b7d70
remove strconv
2026-02-10 19:45:18 +01:00
jakubtomsu
874ffa0385
remove core:fmt dependency from core:debug/trace
2026-02-10 19:19:30 +01:00
jakubtomsu
53cb56cc21
remove core:mem dependency from core:bytes
2026-02-10 18:48:22 +01:00
jakubtomsu
8bfee54204
Merge branch 'master' of https://github.com/jakubtomsu/Odin into more-import-cleanup
2026-02-10 18:39:28 +01:00
jakubtomsu
204dee162d
remove xxhash core:mem dependency
2026-02-10 18:31:43 +01:00
gingerBill
132e4e470f
Merge pull request #6249 from laytan/fix-box2d-build-and-try-lfs
...
fix box2d build and try Git LFS
2026-02-10 13:30:24 +00:00
Jeroen van Rijn
9c3ea1386f
Merge pull request #6250 from jakubtomsu/dep-cleanup
...
Clean-up some imports and dependencies
2026-02-09 23:11:08 +01:00
jakubtomsu
d492122bd4
import cleanup
2026-02-09 20:08:22 +01:00
laytan
5a02132ac3
fix box2d build and try git LFS
2026-02-09 19:48:27 +01:00
Jeroen van Rijn
1a37f4eb0c
Only count bits in touched array members.
2026-02-09 19:13:32 +01:00
Jeroen van Rijn
454ad1f4b8
Unwrap cpu affinity syscalls.
2026-02-09 19:01:43 +01:00
Jeroen van Rijn
fa44c64c42
!= nil
2026-02-09 18:29:31 +01:00
Jeroen van Rijn
ec05bb57dc
Implement get_processor_core_count without libc for Linux.
2026-02-09 18:16:16 +01:00
Jeroen van Rijn
7a7127aa13
Fix package line
2026-02-09 16:34:24 +01:00
Jeroen van Rijn
8366e7094a
Fix up ABI name for core:os and core:os/old
2026-02-09 16:27:53 +01:00
Jeroen van Rijn
e7dbabf668
core:os -> core:os/old && core:os/os2 -> core:os
2026-02-09 15:50:21 +01:00
Jeroen van Rijn
8ed264680b
Remove all core:os imports from JS targets
...
Fix `local_tz_name` on FreeBSD.
2026-02-09 15:07:27 +01:00
gingerBill
8018604f83
Fix handle_map index on dynamic_add
2026-02-08 22:58:44 +00:00
Jeroen van Rijn
5bf30b2d56
Fix os2 file_wasi
2026-02-08 14:13:20 +01:00
Jeroen van Rijn
b16ca5a986
fix libc-shim
2026-02-08 13:51:49 +01:00
Jeroen van Rijn
674f0e0474
Fix doc tests
2026-02-08 13:28:04 +01:00
Jeroen van Rijn
29b6a7ddfe
Remove unused import
2026-02-08 13:21:01 +01:00
Jeroen van Rijn
89fccd6056
One more fix.
2026-02-08 13:17:39 +01:00