Commit Graph

14417 Commits

Author SHA1 Message Date
Jeroen van Rijn
47f889569f Fix float64_range example 2025-04-21 18:37:57 +02: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
Jeroen van Rijn
5a39013339 Let core:container/priority_queue return runtime.Allocator_Error
`init`, `reserve` and `push` now return `runtime.Allocator_Error`.
2025-04-17 14:20:03 +02:00
Laytan
09c8477bd3 Merge pull request #5041 from mtarik34b/remove-redundant-code-in-string-justify
Remove redundant `builder_init()` calls from `strings.left_justify()` and `strings.right_justify()`
2025-04-17 00:01:59 +02:00
Jeroen van Rijn
81274a7d67 Merge pull request #5045 from laytan/fix-not-resolving-to-alias-in-a-recursive-declaration
fix not resolving to alias in a recursive declaration
2025-04-16 23:07:01 +02:00
Laytan
8efeaef40b fix not resolving to alias in a recursive declaration 2025-04-16 22:55:25 +02:00
Jeroen van Rijn
3ba9b9b14e Merge pull request #5044 from Barinzaya/box2d-missing-allowfastrotation
Add missing field in box2d.BodyDef
2025-04-16 21:56:22 +02:00
Barinzaya
744587e082 Added missing allowFastRotation field to box2d.BodyDef. 2025-04-16 15:49:36 -04:00
fusion32
bd4afafc66 make once_do_without_data_contextless actually contextless 2025-04-16 12:44:00 -03:00
gingerBill
4ec03a2d9b Fix strconv.parse_float related procedures caused by a shifting problem 2025-04-16 13:45:50 +01:00
mtarik34b
f4212b60e7 Remove redundant calls to builder_init 2025-04-16 13:16:51 +02:00
gingerBill
3dcc22fa6d Change hashing rules for float-like types to make 0 == -0 2025-04-16 10:52:35 +01:00
Laytan
990cc56974 sdl3: fix not allowing nil for SetWindowMouseRect 2025-04-15 20:13:51 +02:00
Jeroen van Rijn
678fa897f5 signbit -> sign_bit in tests/core/math 2025-04-15 16:20:49 +02:00
Jeroen van Rijn
ddedddc16d Get rid of duplicate math.signbit in favor of math.sign_bit 2025-04-15 16:17:02 +02:00
gingerBill
6045955c88 More improvements doc writer name canonicalization 2025-04-15 12:35:20 +01:00
gingerBill
b2ca76a76a Improve name canonicalization rules for the doc writer 2025-04-15 12:07:58 +01:00
gingerBill
cfb8cc709c Merge branch 'master' of https://github.com/odin-lang/Odin 2025-04-15 11:51:05 +01:00
gingerBill
39363c4018 Improve name canonization rules for doc writer 2025-04-15 11:50:59 +01:00
Jeroen van Rijn
2d5b85f9f9 Merge pull request #5038 from mtarik34b/noteq-comparison-for-nan-must-be-true
Ensure `NaN != any_float_value` evaluates to true for constant NaN values
2025-04-15 12:29:17 +02:00
gingerBill
753c3fa0a7 Merge branch 'master' of https://github.com/odin-lang/Odin 2025-04-15 11:26:48 +01:00
gingerBill
2d4cb79baa Fix SysV ABI bug 2025-04-15 11:26:41 +01:00
mtarik34b
1d2adbb3c6 Remove reference to git issue 2025-04-15 05:26:36 +02:00
mtarik34b
313d7d84bc Ensure NaN != any_float_value evaluates to true for constant NaN values 2025-04-15 05:00:36 +02:00
Laytan
11da543f26 net: add ECONNRESET to the error handling of recv 2025-04-14 21:17:22 +02:00
Jeroen van Rijn
0fc141db5d core:mem/tlsf: Add early-out in OOM logic
This implementation doesn't allow for out-of-band allocations to be passed through, as it's not designed to
track those. Nor is it able to signal those allocations then need to be freed on the backing allocator,
as opposed to regular allocations handled for you when you `destroy` the TLSF instance.

So if we're asked for more than we're configured to grow by, we can fail with an OOM error early, without adding a new pool.
2025-04-14 20:40:05 +02:00
Jeroen van Rijn
3d13beb3ec Remove now-implemented TODO 2025-04-14 20:09:55 +02:00
Jeroen van Rijn
11af4cebb7 Merge pull request #5037 from Kelimion/tlsf
Allow `core:mem/tlsf` to automatically add new pools.
2025-04-14 20:00:39 +02:00
Jeroen van Rijn
beee27dec0 Allow core:mem/tlsf to automatically add new pools.
New features:
- If TLSF can't service an allocation made on it, and it's initialized with `new_pool_size` > 0, it will ask the backing allocator for additional memory.

- `estimate_pool_size` can tell you what size your initial (and `new_pool_size`) ought to be if you want to make `count` allocations of `size` and `alignment`, or in its other form, how much backing memory is needed for `count` allocations of `type` and its corresponding size and alignment.
2025-04-14 19:49:55 +02:00
Jeroen van Rijn
66d99c1be3 Merge pull request #5036 from Kelimion/tlsf
Refactor `core:mem/tlsf`, add `free_all` support.
2025-04-14 17:30:46 +02:00
Jeroen van Rijn
7088284ff4 Refactor core:mem/tlsf, add free_all support.
TODO: Allow the TLSF allocator to add additional pools when it would ordinarily OOM
      by calling its backing allocator.
2025-04-14 17:13:27 +02:00
Jeroen van Rijn
9516084e58 Merge pull request #5035 from Sojamann/sync_chan-maintainance
core:sync/chan: maintainance and package clarity
2025-04-13 23:13:07 +02:00
Robin Bergewski
1c6958d443 core:sync/chan: maintainance and package clarity
this deprecates all procedures around 'Raw_Queue' for it to
become package private.
2025-04-13 22:56:40 +02:00
Jeroen van Rijn
a98cbe2cc9 Merge pull request #5034 from Kelimion/yeet-tuple
Remove Type_Info_Tuple
2025-04-13 21:59:32 +02:00
Jeroen van Rijn
bb38775fb1 Remove Type_Info_Tuple 2025-04-13 21:51:57 +02:00
Laytan
ddcd7a368b Merge pull request #5033 from jasonKercher/fix-dirent-name
Fix linux.dirent_name
2025-04-13 18:14:02 +02:00
jason
4998d4ebd0 Fix linux.dirent_name
Was not searching the first possible byte for 0.
2025-04-13 12:05:39 -04:00
Jeroen van Rijn
c10cf312ff Merge pull request #5032 from Sojamann/sync_chan-doc
core:sync/chan: add package documentation
2025-04-13 17:09:18 +02:00
Robin Bergewski
4ec93ffe39 fix indent 2025-04-13 16:40:08 +02:00
Robin Bergewski
ec71a5afb1 fix missing imports 2025-04-13 16:33:25 +02:00