Commit Graph

15401 Commits

Author SHA1 Message Date
Feoramund
2760f43ce7 Add deprecation warnings for strconv.append_* 2025-06-05 17:34:14 -04:00
Feoramund
153f7af594 Rename fixed.append to fixed.write too, for good measure 2025-06-05 16:56:29 -04:00
Feoramund
0049c62b26 Remove trailing whitespace 2025-06-05 16:56:01 -04:00
Feoramund
b7de15caa3 Clarify strconv.append_* to strconv.write_* 2025-06-05 16:56:00 -04:00
Jeroen van Rijn
108c8781c7 Factor out into helper. 2025-06-05 22:27:18 +02:00
Feoramund
f8228a91d1 Mark some uninitialized memory as safe
Syscalls (but not C functions) are opaque to MemorySanitizer, thus some
memory addresses need to be manually marked as safe to access.
2025-06-05 16:06:44 -04:00
Feoramund
9c5640886d Add @(no_sanitize_memory) proc attribute with MSan additions to base:sanitizer 2025-06-05 16:06:40 -04:00
Jeroen van Rijn
90a1b0ec4b UAF 2025-06-05 21:45:36 +02:00
Jeroen van Rijn
2428fa37a9 tabs 2025-06-05 21:38:59 +02:00
Jeroen van Rijn
5ce6eae366 Merge pull request #5285 from elyalon/dirs
Add more user platform dirs
2025-06-05 21:09:27 +02:00
Ely Alon
a9cdb4f446 add more user dirs 2025-06-05 21:50:59 +03:00
Jeroen van Rijn
97fd228f01 Merge pull request #5284 from A1029384756/master
[parser.cpp] - packages with `.odin` in the name no longer attempt to parse as odin files
2025-06-05 17:42:00 +02:00
Hayden Gray
ccdd14394e [parser.cpp] - packages with .odin in the name no longer attempt
to parse as odin files
2025-06-05 11:24:50 -04:00
Jeroen van Rijn
a1759aa2fa Fix 2025-06-05 16:54:39 +02:00
Jeroen van Rijn
3412b13216 Merge pull request #5283 from Kelimion/user-dirs
Change `os2.user_*` on Windows to use `SHGetKnownFolderPath`.
2025-06-05 16:44:05 +02:00
Jeroen van Rijn
93e1c6593e Change os2.user_* on Windows to use SHGetKnownFolderPath.
Known folders can be redirected using `SHSetKnownFolderPath`, and it's a bit iffy to rely on environment variables.

This also more easily allows us to add `user_*_dir` procedures for the remaining 139 GUIDs in `known_folders.odin`, provided they have equivalents on other platforms.
2025-06-05 16:37:41 +02:00
Jeroen van Rijn
da3b3a4139 Allocate return value on provided allocator 2025-06-05 15:16:35 +02:00
Jeroen van Rijn
8cd5d01dad Merge pull request #5282 from Feoramund/fix-4364
Let compound literal array be broadcast to a struct field of arrays
2025-06-05 14:02:56 +02:00
Feoramund
36b41ce163 Let compound literal array be broadcast to a struct field of arrays
Fixes #4364

Patch courtesy of @cribalik
2025-06-05 07:48:10 -04:00
Laytan Laats
9eefa2006e encoding/cbor: support simd vectors 2025-06-04 22:00:02 +02:00
Laytan Laats
85224b21e6 encoding/cbor: support the matrix type 2025-06-04 21:51:12 +02:00
Jeroen van Rijn
1a35c7f954 Merge pull request #5279 from Feoramund/fix-4673
Be strict with type switch case column alignment too
2025-06-04 20:24:44 +02:00
Jeroen van Rijn
4838f6b542 Merge pull request #5280 from Feoramund/fix-4642
Print timings to stderr instead of stdout
2025-06-04 20:23:41 +02:00
Jeroen van Rijn
bd13bdc391 Merge pull request #5281 from Feoramund/fix-4595
Guard against negative `index` in `inject_at`
2025-06-04 20:18:02 +02:00
Feoramund
d046214f67 Be strict with type switch case column alignment too
This copies the same block used for regular switch cases.

Fixes #4673
2025-06-04 14:00:33 -04:00
Feoramund
b0d050dd90 Print timings to stderr instead of stdout
This is in line with other diagnostic messages.

Fixes #4642
2025-06-04 13:59:31 -04:00
Feoramund
91111937a7 Guard against negative index in inject_at
Fixes #4595
2025-06-04 13:58:06 -04:00
gingerBill
6804f4c471 Add support for #soa[N]T compound literals 2025-06-04 13:56:46 +01:00
Jeroen van Rijn
77594a0dc9 Merge pull request #5268 from Kelimion/check-js
Allow `odin check examples/all` for js_wasm
2025-06-04 12:22:40 +02:00
Jeroen van Rijn
17319efd8f Remove SDL3/TTF flag NORMAL
It's a `bit_set`, and NORMAL is an empty one.

https://wiki.libsdl.org/SDL3_ttf/TTF_SetFontStyle

Fixes #5275
2025-06-04 11:22:59 +02:00
Jeroen van Rijn
1dffc2efd8 Switch to @(require) 2025-06-04 11:14:01 +02:00
Jeroen van Rijn
ae5c92ac38 Enable odin check examples/all for JS. 2025-06-04 11:08:25 +02:00
Jeroen van Rijn
d3922ebc06 Merge pull request #5276 from Feoramund/fix-4354
Forbid multiple uses of `-sanitize`
2025-06-04 10:48:48 +02:00
Jeroen van Rijn
986cfbcaf4 Merge pull request #5277 from benjryan/master
Add windows bindings to support overlapped IO
2025-06-04 10:41:46 +02:00
Laytan
a7cbf4f7dd Merge pull request #5274 from Feoramund/fix-render-typo
Fix typo
2025-06-04 06:18:18 +02:00
Ben Ryan
cd417b0d1f Add windows bindings to support overlapped IO 2025-06-04 11:34:31 +10:00
Feoramund
68ed631582 Forbid multiple uses of -sanitize
`clang` does not allow this.

Fixes #4354
2025-06-03 21:23:24 -04:00
Feoramund
09ddf121e3 Fix typo 2025-06-03 21:15:20 -04:00
gingerBill
8923e28b2a Merge pull request #5267 from Feoramund/rewrite-atomic-rw-mutex
Rewrite `Atomic_RW_Mutex`
2025-06-03 15:32:36 +01:00
Jeroen van Rijn
dd27049e13 Merge pull request #5261 from spiel0meister/master
add a missing nullptr check
2025-06-03 15:39:09 +02:00
Jeroen van Rijn
fab7715c35 Allow -dynamic-literals for [dynamic]T 2025-06-03 15:22:20 +02:00
Feoramund
8cde9dce47 Rewrite Atomic_RW_Mutex
This patch simplifies the implementation and fixes #5254.

Previously, the mutex was set up as if there could be multiple writers,
and there seemed to be some confusion as to which `Writer` bits to
check, as not all were checked or set at the same time.

This could also result in the mutex being left in a non-zero state even
after unlocking all locks.

All unneeded state has been removed and extra checks have been put in
place.
2025-06-03 09:07:38 -04:00
Jeroen van Rijn
fcf0d4efa1 Merge pull request #5264 from LeandroLibanio28H/5243-fix-scope-attribute-proc-grouping
Fix scope attribute proc grouping (#5243 )
2025-06-03 14:49:40 +02:00
spiel0meister
d1fcec63cc early return; fix indentation 2025-06-03 14:46:44 +02:00
Leandro Libanio
0f5e30783c Update check_expr.cpp
Removing iostream
2025-06-03 08:55:38 -03:00
Jeroen van Rijn
8f2a1cafd3 Merge pull request #5266 from Kelimion/fix-5265
Fix #5265
2025-06-03 11:36:24 +02:00
Jeroen van Rijn
82dfb43663 Fix #5265 2025-06-03 11:18:11 +02:00
LeandroLibanio28H
e6b086e78d Removing unreacheable block (since e86fde3) 2025-06-02 20:48:25 -03:00
LeandroLibanio28H
7b612a3a15 Checking if entity is exported before checking if it's a procedure group 2025-06-02 20:14:19 -03:00
spiel0meister
648fa9e54a check if expr is null 2025-06-02 23:24:46 +02:00