Commit Graph

7152 Commits

Author SHA1 Message Date
gingerBill
227e7920a8 Add unescape_string and unescape_entity 2026-01-18 10:45:58 +00:00
gingerBill
f4aa64e934 Add html.escape_string 2026-01-16 17:47:40 +00:00
gingerBill
d46c547264 Merge pull request #6124 from laytan/nbio
Add `core:nbio`
2026-01-16 13:25:03 +00:00
gingerBill
71c4da8e34 Fix typo in strings.equal_fold 2026-01-16 09:19:01 +00:00
gingerBill
b3f4807b2d Add #must_tail to odin/parser 2026-01-15 17:32:32 +00:00
Laytan Laats
57d02cb148 pool: remove assert that is too strict 2026-01-14 20:02:08 +01:00
Laytan Laats
5fcf210c91 uring: move package from nbio/uring to sys/linux/uring 2026-01-14 19:03:15 +01:00
gingerBill
7f509c01f1 Merge pull request #6125 from Wassimulator/patch-2
Add init and fini callback procs to thread pools
2026-01-14 14:17:01 +00:00
Wassim Alhajomar
28c9e319d3 use ^Thread instead of index in init and fini 2026-01-14 15:00:50 +01:00
gingerBill
4dcbc67ead Remove old dead directory core:sys/win32 2026-01-14 12:48:19 +00:00
Nathan Wong
bd9d682d15 Ensure creating a low priority thread does not assert with SCHED_OTHER policy 2026-01-13 16:38:22 -08:00
Laytan
792e6c75ee Merge branch 'master' into nbio 2026-01-13 21:29:41 +01:00
Jacob Evelyn
11afefeedc Add NSWindow layout information method bindings to darwin/Foundation (#6040)
This commit adds bindings for `NSWindow`'s
["Getting Layout Information"](https://developer.apple.com/documentation/appkit/nswindow?language=objc#Getting-Layout-Information)
methods to the `core:sys/darwin/Foundation` package.

Co-authored-by: Jacob Evelyn <j@cob.land>
2026-01-13 21:13:59 +01:00
Jacob Evelyn
a4f958b738 Fix darwin/Foundation/NSScreen type property bindings (#6038)
This commit updates the `darwin/Foundation` package's `NSScreen` bindings
to treat Objective-C "type properties" as class methods rather than
instance methods.

As a result, we can now access these properties like this:

```odin
import NS "core:sys/darwin/Foundation"

main :: proc() {
  NS.Screen.mainScreen()
}
```

instead of this:

```odin
import NS "core:sys/darwin/Foundation"

main :: proc() {
  (^NS.Screen)(nil).mainScreen()
}
```

This commit also adds a binding for `NSScreen`'s `screensHaveSeparateSpaces`
type property, which was previously missing from the `darwin/Foundation`
package.

Co-authored-by: Jacob Evelyn <j@cob.land>
2026-01-13 21:13:18 +01:00
Xotchkass
edb70a8d75 optimized slice filling in xoshiro/pcg_random_generator_proc (#6001) 2026-01-13 21:11:01 +01:00
Znarf
0c3f3f536b Implement more Linux syscalls. (#6083) 2026-01-13 21:02:08 +01:00
Laytan Laats
4af4b2f575 pool: use elem in else of the when statement (vet issue) 2026-01-13 19:47:09 +01:00
Laytan Laats
c637679917 nbio: don't rely on the private _impl being the first field 2026-01-13 19:46:46 +01:00
Laytan Laats
8f5702e69e nbio: reorder Operation fields to be more logical 2026-01-13 19:38:27 +01:00
Laytan Laats
4ae02aaacf pool: explicit memory ordering and improved destroy 2026-01-13 19:38:10 +01:00
Paul Page
7e7cd75527 remove unneeded manual definitions 2026-01-12 16:52:57 -06:00
Paul Page
ebaf877981 Update Orca bindings 2026-01-12 16:31:40 -06:00
Wassim Alhajomar
ef84b24b68 cleanup 2026-01-12 12:39:57 +01:00
Laytan Laats
24ee35af28 nbio: add package 2026-01-11 20:21:25 +01:00
Laytan Laats
b2af4f335d posix: fix openat mode not being c_vararg 2026-01-11 20:21:25 +01:00
Laytan Laats
26d47f23f7 linux: implement eventfd syscall 2026-01-11 20:21:25 +01:00
Laytan Laats
872fe3ff73 kqueue: fix bsds, add user filter, add struct tests 2026-01-11 20:21:25 +01:00
Laytan Laats
bc70402093 os: add non blocking open flag 2026-01-11 20:21:25 +01:00
Laytan Laats
fa97aa4dc9 thread: fix aligned loading of unaligned addresses 2026-01-11 20:21:25 +01:00
Laytan Laats
b9946aa67e chan: fix example and deadlock on closed channel 2026-01-11 20:21:25 +01:00
Laytan Laats
6c663b7a71 slice: fix examples 2026-01-11 20:21:25 +01:00
Laytan Laats
f6b8e08628 simd: fix typos 2026-01-11 20:21:25 +01:00
Laytan Laats
08c4503875 xar: fix example 2026-01-11 20:21:25 +01:00
Laytan Laats
ec040c1fcb rbtree: fix pointer usages 2026-01-11 20:21:25 +01:00
Laytan Laats
c10771305d net: implement OpenBSD and NetBSD support & add stubs for other targets & cleanup 2026-01-11 20:21:21 +01:00
gingerBill
fc19df7b1e Merge pull request #6114 from dayllenger/master
Fix TGA header detection
2026-01-09 11:58:00 +00:00
konodin
48fe0e2394 Fix EINVAL binding to IPv6 on FreeBSD 2026-01-08 22:35:40 +01:00
Viktor
d4a21b7573 Fix TGA header detection 2026-01-08 12:01:43 +00:00
gingerBill
393fec2f66 Move WSAEVENT to types.odin 2026-01-05 11:48:19 +00:00
gingerBill
5fae3527c1 Implement LPWSAOVERLAPPED_COMPLETION_ROUTINE correctly 2026-01-05 11:44:52 +00:00
gingerBill
e45db9a69c Merge pull request #6089 from Neirokan/ipv4_to_ipv6_fix
core/net: fix `map_to_ip6` offset
2026-01-02 11:57:09 +00:00
gingerBill
57c7ae1bd9 Minor fixes to formatting and types 2026-01-02 11:35:44 +00:00
gingerBill
e154489f01 More formatting improvements 2026-01-02 11:32:39 +00:00
gingerBill
274e7e7e58 Improve the formatting of user32.odin 2026-01-02 11:25:53 +00:00
gingerBill
006681ec22 Improve formatting; fix types; add struct field tags 2026-01-02 11:18:48 +00:00
gingerBill
b86627ba37 Improve formatting and #raw_union logic in core:sys/windows 2026-01-02 10:39:46 +00:00
gingerBill
bfe75d5c2c Add boolean support for raw_union_tag 2026-01-02 10:19:23 +00:00
gingerBill
c49a645d34 Add raw_union_tag support to MINIDUMP_CALLBACK_INPUT 2026-01-02 10:14:39 +00:00
gingerBill
49687069ef Minor formatting improvements 2026-01-02 10:14:24 +00:00
gingerBill
25daf52000 Add support to raw_union_tag for integers 2026-01-02 10:13:31 +00:00