Jeroen van Rijn
4f00224dd2
Add cbor.unmarshal_from_bytes taking a []byte
2025-04-29 01:10:15 +02:00
Jeroen van Rijn
8c47d42394
Fix lru.remove
2025-04-29 00:14:46 +02:00
Jeroen van Rijn
26f1cb493e
Merge pull request #5087 from elyalon/typo
...
Fix typo in private function
2025-04-28 21:25:10 +02:00
Ely Alon
13566306d2
Fix typo in private function
2025-04-28 22:03:20 +03:00
Lucas Perlind
51d427f424
Remove vet explicit allocators from cli
2025-04-28 19:33:37 +10:00
Harold Brenes
89533f49e4
Fix more styling and minor issues
2025-04-27 23:05:17 -04:00
Harold Brenes
f3923ed666
Fix indentations
...
Fix Objective-C wrapper procs not forwarding return value
2025-04-27 22:55:53 -04:00
Harold Brenes
6c9c239a5e
Fix styling issues
2025-04-27 22:55:53 -04:00
Lucas Perlind
65b4c793f0
Add -vet-explicit-allocators
...
This vet flag will make it so that allocators must be explicitly used
in places where context.allocator and context.temp_allocator are a
procedure parameter.
The goal of this flag is to prevent using the context.allocator in
cases where a different allocator was meant to be used.
Some code bases default context.allocator to nil/panic allocator
to catch this at runtime. This effectively makes it a compile
time error instead.
2025-04-27 22:47:03 +10:00
Jeroen van Rijn
d463aba7d1
Warn if someone imports the same case-folded path twice
2025-04-27 14:32:26 +02:00
Colin Davidson
f1fdd1a8b9
Merge branch 'master' into macharena
2025-04-26 18:22:21 -07:00
Colin Davidson
78d8ed2d39
Merge branch 'master' into macharena
2025-04-26 15:04:02 -07:00
Jeroen van Rijn
7d4c3d23e6
Merge pull request #5079 from herohiralal/master
...
Pipe size on windows.
2025-04-26 23:05:16 +02:00
Rohan Jadav
80a6f8928a
fix: Pipe size on windows.
2025-04-27 01:58:37 +05:30
Laytan Laats
6c1a3c4f0c
box2d: fix World_CollideMover
2025-04-25 18:24:41 +02:00
gingerBill
f3cc734b39
Add copy_directory
2025-04-25 09:01:53 +01:00
gingerBill
b5c658a2cf
Merge pull request #5069 from laytan/box2d-3.1.0
...
box2d: update to 3.1.0
2025-04-25 08:26:43 +01:00
gingerBill
9f30380712
Merge pull request #5072 from Lperlind/asan
...
Add more asan support to the odin runtime and begin sanitizing allocators
2025-04-25 08:24:18 +01:00
gingerBill
b83809779b
Merge pull request #5075 from Barinzaya/global-var-alignment
...
Fix Global/Static Variable Alignment
2025-04-25 08:23:48 +01:00
Barinzaya
9284ebb5e8
Add missing cast to global/static var alignments.
2025-04-24 14:35:00 -04:00
Barinzaya
b41a776027
Correctly align global and static variables.
...
This can be important if matrices or SIMD vectors are being used in
global or static variables, as otherwise it may result in crashes due to
aligned instructions accessing misaligned variables.
2025-04-24 14:21:21 -04:00
Jeroen van Rijn
cfb478808e
Merge pull request #5074 from Barinzaya/time-tick-add
...
Add `tick_add` proc to `core:time`
2025-04-24 15:28:58 +02:00
Barinzaya
6400693197
Added tick_add proc to core:time.
2025-04-24 09:20:31 -04:00
Lucas Perlind
5e985bcd74
Remove dependency on runtime; Add to examples
2025-04-24 20:34:32 +10:00
Lucas Perlind
5c117bde6d
Add base:sanitizer package
2025-04-24 20:28:32 +10:00
Lucas Perlind
7502e7f2bc
make asan procs contextless
2025-04-24 19:56:40 +10:00
Lucas Perlind
4a0be1f3a8
make vet happy
2025-04-24 16:02:31 +10:00
Lucas Perlind
ab0b26e876
Add more asan support to the odin runtime and begin sanitizing
...
allocators
This adds various bindings to the asan runtime which can be used
to poison/unpoison memory handed out by various allocators. This
means we can catch use after free memory bugs when using operations
such as free_all during runtime.
Asan poisoning are added for the follow allocators in mem:
Arena (including temporary arenas)
Scratch
Stack
Small_Stack
Additionally a bug in the stack allocator was fixed to disallow freeing
in the middle of the stack (caught by the asan!).
I plan on adding support for all the allocators in core. This is just
a good starting point and were some of the easiest ones to implement
asan for.
2025-04-24 15:17:51 +10:00
laytan
38f56c0ede
box2d: update windows libs to 3.1.0 and call thread.yield in vendor/libc
2025-04-23 16:59:54 +02:00
Harold Brenes
974a197ce1
Allow the class's ivar to be used as a context provider receiver as well.
2025-04-23 02:06:01 -04:00
Harold Brenes
47abea1229
Add support for Objective-C method implementation with Odin calling convention.
...
Use @objc_context_provider to provide a context for a type.
2025-04-23 02:05:51 -04:00
Harold Brenes
730c844fc6
Fix bug in @encode implementation.
2025-04-23 02:05:43 -04:00
Harold Brenes
53adff38f0
Fixes to Ivar pseudo fields.
2025-04-23 02:05:33 -04:00
Harold Brenes
bca02f81cd
Include the ivar in the Objective-C class unconditionally of it being used or not.
...
Allow pseudo-fields for ivar access.
2025-04-22 19:18:53 -04:00
Laytan Laats
e086151fcd
box2d: update to 3.1.0
2025-04-22 22:38:15 +02:00
mtarik34b
c7f9d2b1b7
Correctly capitalize 'E' for the %E format specifier ( #5065 )
2025-04-22 02:35:02 +02:00
Jeroen van Rijn
47f889569f
Fix float64_range example
2025-04-21 18:37:57 +02:00
Harold Brenes
b3b4d501ca
Fix ivar in multi-module mode.
2025-04-21 02:43:16 -04:00
Harold Brenes
a3de9c8de4
Add initial support for Objective-C class implementation
2025-04-20 21:53:46 -04:00
Jeroen van Rijn
ab5ca087a7
Add comment
2025-04-19 23:44:02 +02:00
Jeroen van Rijn
062a3c2fae
Fix parsing of CDATA tags ( #5059 )
...
Fixes #5054
2025-04-19 20:25:44 +02:00
Jeroen van Rijn
bc86b50392
Replace default_tcp_options with constant ( #5056 )
...
Replace `default_tcp_options` with constant
2025-04-19 14:32:59 +02:00
Jeroen van Rijn
d10cb91e3f
Merge pull request #5053 from fendevel/fix/sdl3-display-binding
...
SDL3: Fix `count` output parameter of `GetFullscreenDisplayModes`
2025-04-18 19:45:45 +02:00
Jack Fenech
27ee425ac5
Fix count output parameter of GetFullscreenDisplayModes
2025-04-18 18:07:43 +01:00
gingerBill
4374685007
Merge pull request #5042 from fusion32/fix-once-do-without-data-contextless
...
make once_do_without_data_contextless actually contextless
2025-04-18 11:47:10 +01:00
Laytan
2dedb199b8
Merge pull request #5052 from harold-b/hb/fix-ns-dictionary-selectors
...
Fix 2 selectors in NSDictionary
2025-04-17 21:28:10 +02:00
Harold Brenes
040d8b1d48
Fix 2 selectors in NSDictionary
2025-04-17 15:22:10 -04:00
Jeroen van Rijn
07c59cb4db
Early out and propagate nil in create*
...
If allocation of a `^Thread` failed, `create*` now properly return `nil`,
so you can assert on that instead of calling `thread.destroy` on a null pointer, say.
2025-04-17 17:26:24 +02:00
Jeroen van Rijn
1c655b84e4
Fix #5049
...
Keep in mind that `thread.create` needs an allocator to be set, as it returns `^Thread`.
2025-04-17 16:53:07 +02:00
Jeroen van Rijn
8985d3beb3
Merge pull request #5050 from Kelimion/pq-err
...
Let `core:container/priority_queue` return `runtime.Allocator_Error`
2025-04-17 14:35:04 +02:00