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
jason
dc954307d7
fix assumption about std handles in os2/file.odin
2024-06-28 07:55:33 -04:00
jason
a15cbc474d
change error strings to an enumerated array in rodata; print_error takes a file argument
2024-06-28 07:45:24 -04:00
gingerBill
37afd469c6
Merge pull request #3339 from axxeny/patch-1
...
fix comments in core:container/queue.
2024-06-28 12:00:34 +01:00
gingerBill
853173a11b
Merge pull request #3517 from timosperisen/patch-1
...
Update builder.odin
2024-06-28 12:00:23 +01:00
gingerBill
883f6c129a
Merge pull request #3643 from korvahkh/fix-omitempty-comma
...
encoding/json: Fix struct marshal() emitting comma after omitted field
2024-06-28 11:50:31 +01:00
gingerBill
1747fdc3f0
Fix signature
2024-06-28 11:07:54 +01:00
gingerBill
bef3ca98f0
Fix signature
2024-06-28 11:01:57 +01:00
gingerBill
e15c5c4692
Fix missing import
2024-06-28 10:32:16 +01:00
gingerBill
4824050c99
Merge pull request #3792 from Feoramund/core-uuid
...
Add `core:encoding/uuid`
2024-06-28 09:49:23 +01:00
jason
f24f72c280
convert all to use sys/linux over sys/unix; new implementations for pipe, process and env
2024-06-27 17:14:48 -04:00
jason
f22754fc90
sys/linux: fix some syscalls and types; add more to Sig_Action and Sig_Info; Pid int->i32
2024-06-27 16:29:47 -04:00
Jeroen van Rijn
a0a48bfe34
Fix alignment.
2024-06-27 21:56:26 +02:00
Laytan Laats
1c199f52d6
tlsf: destroy first pool & properly zero memory
2024-06-27 19:27:07 +02:00
Jeroen van Rijn
aa27cd4b0b
Allow core:odin to parse @(require) import
2024-06-27 16:14:16 +02:00
Jeroen van Rijn
e37afa3ada
Merge pull request #3814 from Kelimion/fix_fixed
...
Fix core:math/fixed.
2024-06-26 20:46:46 +02:00
Jeroen van Rijn
c33bf7673f
Fix core:math/fixed.
2024-06-26 20:12:55 +02:00
Feoramund
ba354e0524
Add documentation for write_decorated_table
2024-06-26 12:53:34 -04:00
Feoramund
f13d30ad23
Add write_decorated_table API
2024-06-26 12:50:43 -04:00
Karl Zylinski
4e2d12c540
Added fmt.ctprint
2024-06-25 22:32:20 +02:00
Jeroen van Rijn
5d1d98cef3
Merge pull request #3806 from NicknEma/windows_fixes
...
Update CommandLineToArgvW return type
2024-06-25 12:22:27 +02:00
NicknEma
845613c404
Update CommandLineToArgvW return type
...
It now returns a multi-pointer so it can be iterated without any casting.
2024-06-25 12:10:17 +02:00
gingerBill
c098739484
Remove @(warning) and #warning(...)
2024-06-25 09:36:59 +01:00
Jeroen van Rijn
d97fe41834
Mark deux
2024-06-24 22:45:12 +02:00
Jeroen van Rijn
d3d73590d3
Fix CSV comments.
2024-06-24 22:43:14 +02:00
Jeroen van Rijn
185e39e53d
Merge pull request #3791 from Feoramund/fix-text-table-alignment
...
Refactor `core:text/table`
2024-06-24 21:59:33 +02:00
Feoramund
8b05ec1765
Add string caching example documentation
2024-06-24 15:11:43 -04:00
Feoramund
fbd609fa37
Add complete example showcasing Unicode support
2024-06-24 15:04:45 -04:00
Feoramund
f325a08e57
Make core:text/table examples more complete
...
They should be completely copy-and-paste friendly now, without the
assumption of someone using `using table`.
2024-06-24 15:04:45 -04:00
Feoramund
7a43404ea1
Add Width_Proc documentation
2024-06-24 15:04:45 -04:00