Jeroen van Rijn
9ecc33570b
Improve fix.
2024-07-05 13:51:38 +02:00
Jeroen van Rijn
164a5e587e
Fix utf8_to_wstring given zero bytes.
2024-07-05 13:46:07 +02:00
Jeroen van Rijn
22fabba2f6
Fix #3873
2024-07-05 00:48:08 +02:00
Jeroen van Rijn
8bee73b08e
Remove implicit allocator usage in core:dynlib
2024-07-04 16:53:00 +02:00
gingerBill
45b2a6a19e
Fix reflect.as_pointer
2024-07-04 13:37:47 +01:00
DerTee
6b373cf49e
fix #3692 memory alignment bug in core:mem.dynamic_pool_alloc_bytes
2024-07-03 22:14:28 +02:00
gingerBill
8b49549fd3
Merge pull request #3859 from laytan/wasm-stbtt-object-linking-preopens
...
wasm: support `vendor:stb/truetype` and `vendor:fontstash`
2024-07-02 22:14:54 +01:00
Laytan Laats
5399093050
make preopens a slice and remove bad current_dir
2024-07-02 20:17:24 +02:00
Laytan Laats
10c68a8951
wasm: support vendor:stb/truetype and vendor:fontstash
2024-07-02 16:03:42 +02:00
Laytan Laats
4e18e1b191
wasi: make os.open work with absolute paths
2024-07-02 15:29:24 +02:00
flysand7
41282b5211
Add bindings for WOW64 API set
2024-07-02 21:56:04 +11:00
Jeroen van Rijn
0697fd0101
Merge pull request #3857 from flysand7/tlhelp-modentry
...
[sys/windows]: Fix the type declaration for MODULEENTRY32W
2024-07-02 12:42:18 +02:00
flysand7
62d107bea5
[sys/windows]: Fix the type declaration for MODULEENTRY32W
2024-07-02 21:34:54 +11:00
Feoramund
8cd7fd95a3
Don't factor trailing zeroes into mantissa division
...
This should fix issues where `N00 / (pow+2)` results in a different number
than `N / pow`.
2024-06-30 22:18:25 -04:00
gingerBill
13ace1dac9
Merge pull request #3839 from flysand7/tlhelp-fix
...
[sys/windows]: Fix the value for TH32CS_SNAPPROCESS constant
2024-06-30 20:15:33 +01:00
Feoramund
8b915aae5e
Update code for new -vet
2024-06-30 11:18:40 -04:00
Feoramund
f0cf1052d0
Fix FreeBSD recvfrom
...
`fromlen` must be a pointer, not a value.
2024-06-30 10:17:32 -04:00
h0mtanks
2b615b09f0
fixed whitespace
2024-06-30 13:47:11 +05:30
h0mtanks
d1603ebac4
added missing would_block enum member
2024-06-30 13:42:55 +05:30
flysand7
561b96b20d
[sys/windows]: Fix the value for TH32CS_SNAPPROCESS constant
2024-06-30 13:34:08 +11:00
gingerBill
afe24a0d4d
Merge pull request #3838 from flysand7/windows-tlhelp
...
[core/windows]: Bind tlhelp.h functions from kernel32.dll
2024-06-30 02:52:35 +01:00
flysand7
2737ccab3d
[core/windows]: Bind tlhelp.h functions from kernel32.dll
2024-06-30 12:35:42 +11:00
Laytan Laats
604551eb2d
wasi: make the demo run on wasi and run it in CI
2024-06-29 23:15:31 +02:00
Jeroen van Rijn
476d0087c8
Fix bug in div3 fast path.
2024-06-29 23:14:12 +02:00
gingerBill
e296d6fb90
Fix loads of indentation issues with mixing spaces and tabs
2024-06-29 19:50:51 +01:00
gingerBill
103eccf104
More style improvements
2024-06-29 19:23:58 +01:00
gingerBill
663661db53
Update core to -strict-style
2024-06-29 19:16:32 +01:00
gingerBill
5413a8b744
Even more style fixes
2024-06-29 19:11:36 +01:00
gingerBill
3f9a58808c
More style improvements
2024-06-29 19:07:34 +01:00
gingerBill
930c929294
Indentation fixes
2024-06-29 18:49:57 +01:00
gingerBill
7f05b4caf2
Fix generation for unicode entities
2024-06-29 18:43:09 +01:00
gingerBill
c88a1bef91
Add another -vet-cast check
2024-06-29 12:40:04 +01:00
gingerBill
706adb1232
Update for transmute -vet-cast
2024-06-29 12:16:43 +01:00
gingerBill
b9861a0cf6
cast to transmute
2024-06-29 12:14:21 +01:00
gingerBill
c18c0a3364
Adhere to -vet-cast
2024-06-29 12:07:21 +01:00
gingerBill
4b71c47fd5
Check for unneeded transmute with -vet-cast
2024-06-29 12:02:31 +01:00
gingerBill
4be0fc05bb
Merge pull request #3832 from Feoramund/vet-identical-cast
...
Add `-vet-identical-cast`
2024-06-29 11:37:35 +01:00
gingerBill
9113f389d8
Merge pull request #3831 from Feoramund/fix-darwin-test-runner-cancel
...
Let Darwin safely panic in a test
2024-06-29 11:01:01 +01:00
gingerBill
83b575aec2
Merge pull request #3833 from karl-zylinski/consistent-default-dynamic-array-capacity
...
Consistent dynamic array default capacity and avoid unnecessary dynamic array allocations
2024-06-29 10:38:22 +01:00
gingerBill
906afa4154
Allow for when x in y { (minor oversight in syntax)
2024-06-29 10:13:15 +01:00
Karl Zylinski
679f9b4e41
Made default capacity of dynamic arrays more consistent.
...
Before this if you do `arr: [dynamic]int` and then append to arr, then it will have capacity 8.
But if you did `arr := make([dynamic]int, context.temp_allocator)` then arr would have capacity 16.
Now both `arr: [dynamic]int` and `arr := make([dynamic]int, context.temp_allocator)` will resut in arr having zero 0. The only reason to use `make` without an explicit len or cap now is because you want to set it up for a non-default allocator. After the first call to `append` it will now in both cases have capacity 8.
I also updated the documentation on the strings builder, both to reflect this, and also to fix it incorrectly saying that len would be 'max(16,len)', which wasn't true even before these changes.
2024-06-29 08:57:21 +02:00
Feoramund
b3caae6db4
Keep -vet happy
2024-06-28 23:14:03 -04:00
Feoramund
0ea0fac2f9
Call pthread_cancel on Darwin, with advisory comment
2024-06-28 20:47:37 -04:00
Feoramund
13539d3be1
Catch SIGTRAP in the test runner
...
Fixes `panic` for Darwin.
2024-06-28 19:43:03 -04:00
Feoramund
929cc48703
Merge Darwin signals into other UNIX-likes
...
They're all the same.
2024-06-28 19:03:43 -04:00
Feoramund
574342af6f
Let -vet be used with -define:ODIN_TEST_NAMES
2024-06-28 15:58:22 -04:00
Jeroen van Rijn
007832488d
Merge pull request #3827 from Feoramund/require-runtime-linalg-import
...
Require `base:runtime` import in `core:math/linalg`
2024-06-28 17:44:10 +02:00
Feoramund
2af121752a
Require base:runtime import in core:math/linalg
2024-06-28 11:34:35 -04:00
gingerBill
0c8924ea85
Merge pull request #3822 from jasonKercher/os2-rebase
...
os2 linux round 2
2024-06-28 15:43:18 +01:00
jason
6a894195cb
revert os2/process
2024-06-28 09:45:22 -04:00