Commit Graph

1306 Commits

Author SHA1 Message Date
gingerBill
355b8a8c83 Merge pull request #6245 from odin-lang/new_os
`core:os/os2` -> `core:os` integration
2026-02-11 17:53:16 +00:00
gingerBill
16a6c96971 Add VirtualAlloc2 and MapViewOfFile3 2026-02-11 13:01:35 +00:00
jakubtomsu
d492122bd4 import cleanup 2026-02-09 20:08:22 +01:00
Jeroen van Rijn
454ad1f4b8 Unwrap cpu affinity syscalls. 2026-02-09 19:01:43 +01:00
Jeroen van Rijn
13f26f4645 Merge pull request #6218 from Kelimion/fix-6204
Fix #6204
2026-02-02 13:22:38 +01:00
Jeroen van Rijn
98413ad154 Remove duplicate buffer 2026-02-02 13:16:13 +01:00
Jeroen van Rijn
3a7c4994ac Fix #6204
Use temporary stack buffers and some global scratch space to remove the need for any allocator.
2026-02-02 13:11:23 +01:00
gingerBill
813b622dcc Merge pull request #6214 from Josh8011/master
user32.odin add UnhookWinEvent
2026-02-02 11:37:43 +00:00
gingerBill
f45ca2d03e Use contextless 2026-02-02 10:06:44 +00:00
gingerBill
4d938862a2 Merge pull request #5816 from jakubtomsu/win32-rawinput-and-barriers
[core:sys/windows] Sync Barriers, macros for buffered rawinput
2026-02-02 10:05:41 +00:00
Joshua Zimbicki
332af91b23 user32.odin add UnhookWinEvent 2026-02-02 17:31:51 +11:00
gingerBill
5a21213fa5 Merge pull request #6093 from bplu4t2f/master
Add more win32 bindings
2026-01-30 10:47:08 +00:00
Leo Zurbriggen
22ef6ae8c6 add windows.ReadDirectoryChangesExW 2026-01-27 18:11:09 +01:00
gingerBill
9084d7e99b Fix #6173 2026-01-27 12:27:35 +00:00
bplu4t2f
808c14f60f Add more win32 bindings 2026-01-24 09:54:41 +01:00
Tohei Ichikawa
85e2e3244b Create new core:sys/darwin/CoreGraphics package (#6147)
* Add Darwin mouse cursor-related bindings

Create CoreGraphics package in the process

* Remove unneeded semicolons

* Define some CG types in CoreFoundation instead

This matches where Darwin's C header files defines these types
2026-01-23 17:45:24 +01:00
laytan
2caee687ed nbio(windows): use one IOCP for all event loops 2026-01-17 21:06:13 +01:00
gingerBill
d46c547264 Merge pull request #6124 from laytan/nbio
Add `core:nbio`
2026-01-16 13:25:03 +00:00
Laytan Laats
5fcf210c91 uring: move package from nbio/uring to sys/linux/uring 2026-01-14 19:03:15 +01:00
gingerBill
4dcbc67ead Remove old dead directory core:sys/win32 2026-01-14 12:48:19 +00: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
Znarf
0c3f3f536b Implement more Linux syscalls. (#6083) 2026-01-13 21:02:08 +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
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
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
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
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
111ed21e7e Change usage of i32 to c_int where appropriate 2026-01-02 10:02:23 +00:00
gingerBill
747ecc6911 Fix typo 2026-01-02 09:55:56 +00:00
gingerBill
37458a4beb Fix some return types in core:sys/windows 2026-01-02 09:53:50 +00:00
gingerBill
45aa89cf02 Replace uses of c.int with c_int for consistency 2026-01-02 09:47:45 +00:00
gingerBill
b9a170b117 Fix GetSystemMetricsForDpi signature 2026-01-02 09:46:50 +00:00
gingerBill
047ceb2c81 Merge pull request #6069 from karl-zylinski/webgl-binding-fixes
WebGL binding additions
2025-12-30 13:38:40 +00:00
Karl Zylinski
47f20c0ffb Added 'set_document_title' to be able to rename the tab 2025-12-29 20:57:25 +01:00
Karl Zylinski
fb52238e36 Fix bugs in odin.js:GetActiveUniformBlockName 2025-12-29 17:42:19 +01:00
Karl Zylinski
3f9aefda20 Added CheckFramebufferStatus to WebGL bindings 2025-12-29 17:34:01 +01:00
bplu4t2f
33352ed6cb Add user32 scroll bar related bindings, and FrameRect 2025-12-27 17:31:15 +01:00
Karl Zylinski
159eab133b More webgl bindings and fixes 2025-12-27 01:41:59 +01:00