Commit Graph

1179 Commits

Author SHA1 Message Date
Alex Riedl 277c6cac71 Fix some webgl bindings 2025-08-09 10:47:07 -05:00
gingerBill e049dde582 Fix tests for UTF-16 strings 2025-08-02 13:01:58 +01:00
gingerBill c631a8eff5 os2 internals -> (c)string16 2025-08-02 12:47:03 +01:00
gingerBill bb4bc316a4 for in string16; Support string16 across core 2025-08-02 12:20:35 +01:00
Colin Davidson c1b3d035e4 remove spawn from os, comment sys/posix/spawn 2025-07-29 12:12:15 -07:00
Colin Davidson 0a102bd757 shuffle to Kern_Return 2025-07-29 11:52:58 -07:00
Colin Davidson fe2b48dec4 enum pass 2025-07-29 11:48:58 -07:00
Colin Davidson b88f9194d0 Merge remote-tracking branch 'live/master' into macharena 2025-07-28 14:24:46 -07:00
gingerBill 98c2425fe0 Merge pull request #5467 from harold-b/hb.ios-subtarget-rename-iphone
Rename `iOS` subtarget to `iPhone`, add `ODIN_PLATFORM_SUBTARGET_IOS`
2025-07-20 13:22:47 +01:00
connnnal f6993a8205 Add IUnknown UUID 2025-07-17 05:00:20 +01:00
Harold Brenes bab4ce11fc Rename iOS subtarget to iPhone for consistency.
Add `ODIN_PLATFORM_SUBTARGET_IOS` builtin constant which evaluated to
`true` when the platform is `Darwin` and the subtarget it either `iPhone` or `iPhoneSimulator`
2025-07-14 21:55:28 -04:00
Harold Brenes 219b0fe535 Replace system:System.framework imports with system:System
This makes the linker work for both macOS and iOS targets
2025-07-13 15:45:21 -04:00
Jeroen van Rijn e89abd006f Fix #5452 2025-07-11 15:29:27 +02:00
Colin Davidson 2dae1d8a41 fix tabbing 2025-07-07 14:36:31 -07:00
Colin Davidson 389439ccb9 Merge branch 'master' into macharena 2025-07-07 14:34:05 -07:00
Jamie Dennis ee9b4f767b Fix incorrect type for FONTENUMPROCW 2025-07-01 15:31:22 +12:00
Sunagatov Denis e21cde0cf7 sys/linux: Unify IPC_Flags and IPC_Mode bitsets
In #5399 it was noticed, that IPC_Mode isn't being used within SystemV
IPC procedures, even though it was designed this way, which lead to a
weird API where in order to call SystemV IPC procedures multiple
transmutes and a bitwise-OR are needed.

This unifies IPC_Mode and IPC_Flags bitsets, making it possible to call
the SystemV IPC procedures without extra casts, and rearranges the flags
in a way that hopefully makes it easier to see when they are not
colliding and should not be mixed. The explanation, explaining this
arrangement of the enum was added.

The IPC_Perm structure is modified, so that the flags can be re-used
between the calls. It's probably not as good as keeping them separate,
but should work... hopefully.

Kept the "old" style of documentation for consistency.

Signed-off-by: Sunagatov Denis <thebumboni@gmail.com>
2025-06-24 20:30:50 +11:00
RaphGL e374ace10d added IS_SUPPORTED to core:sys/posix 2025-06-21 12:12:13 -01:00
Raph a7e89e1324 Merge branch 'master' into tiocgwinsz_time 2025-06-20 16:50:00 -01:00
RaphGL 0b5be6ad6a added TIOCGWINSZ to darwin, linux and freebsd 2025-06-20 16:45:05 -01:00
Feoramund b82753227d sys/posix: Correct reference to core:text/regex 2025-06-20 10:46:40 -04:00
Jeroen van Rijn 9c810e8340 Fix #5366 2025-06-19 22:46:51 +02:00
David Holland 0a45d4de0c Fix WAVEFORMATEX struct size (#5356)
* fix WAVEFORMATEX struct size
* fix size test for WAVEFORMATEX
* pack WAVEFORMATEXTENSIBLE
2025-06-18 12:25:09 +02:00
PePerRoNii a0e2931dc2 Added GetThreadDescription kernal32.odin 2025-06-17 15:36:48 +07:00
Jeroen van Rijn 246deda2c5 Remove unneeded ; for essence 2025-06-16 23:03:07 +02:00
Jeroen van Rijn eef07431ef Factor out buffered utf helper. 2025-06-16 20:12:27 +02:00
Laytan Laats 144daf6fff add macOS Tahoe to odin report and core:sys/info 2025-06-14 00:27:37 +02:00
gingerBill 4aec582a05 Add system:dl to foreign import for dlfcn.odin 2025-06-11 15:27:00 +01:00
Colin Davidson 04481e0fd2 Merge branch 'master' into macharena 2025-06-08 16:17:32 -07:00
Colin Davidson b1ed22d84f fix frequency grab 2025-06-08 16:16:34 -07:00
Feoramund 0747032e4a Use idiomatic rawptr(nil) 2025-06-08 17:48:06 -04:00
Jeroen van Rijn d2d187eaaa Work around untyped nil 2025-06-08 22:53:52 +02:00
Tohei Ichikawa 7662e7d843 Removed obsolete tz param from gettimeofday 2025-06-08 16:07:11 -04:00
Tohei Ichikawa 876f1c02b7 Added missing parameter to gettimeofday 2025-06-08 12:47:50 -04:00
Jeroen van Rijn f1ce9f98d8 Re-add htonl and htons for those porting from C. 2025-06-06 13:13:34 +02:00
Jeroen van Rijn 4b36306674 Deprecate old @(deprecated) things. 2025-06-06 10:42:34 +02:00
Jeroen van Rijn ae5c92ac38 Enable odin check examples/all for JS. 2025-06-04 11:08:25 +02:00
Ben Ryan cd417b0d1f Add windows bindings to support overlapped IO 2025-06-04 11:34:31 +10:00
gingerBill cd1f66e85c Merge pull request #5246 from RichardFevrier/master
Posix: Signal: add SIGWINCH support
2025-06-02 11:50:49 +01:00
Richard Février f27f9bcd33 Posix: Signal: add SIGWINCH support 2025-05-31 10:01:59 +02:00
Alexander Lunsford edba218a7c Simplified function call to loadCstringDirect 2025-05-30 20:02:08 -05:00
Alexander Lunsford 9d223e178b Fix odin.js loadCstring to use pointer address correctly. 2025-05-30 19:50:34 -05:00
Zach Clark 78d83288a0 Add missing SEL _cmd argument to objc class_addMethod IMPs
When trying to grab the window pointer off the notification in a
windowDidBecomeKey implementation, I kept getting segfaults calling
notification->object(). The second argument of these needs to be a SEL.

https://developer.apple.com/documentation/objectivec/class_addmethod(_:_:_:_:)?language=objc#Discussion

I imagine existing code is getting by by setting the window information
in the delegate's context userdata, which works fine when you only have
one window as you can avoid needing to call notification->object(),
until you want one delegate assigned to two windows, hard to work around.
2025-05-27 17:04:19 -07:00
Vincent Billet d98253564b MAKEFOURCC: changed BYTE to byte 2025-05-26 22:31:21 +02:00
Laytan Laats eac58fc640 sys/info: populate cpu.physical_cores and cpu.logical_cores on Darwin 2025-05-26 20:41:18 +02:00
Vincent Billet 9b7bb9290e HRESULT_FROM_WIN32 correction 2025-05-26 08:52:46 +02:00
Vincent Billet bb274ab512 Merge branch 'odin-lang:master' into badaxis/Windows-Audio&Winmm 2025-05-26 08:16:45 +02:00
Jeroen van Rijn 655fab7227 Add core/hyperthread count for Windows and Linux (#5216)
Add core/hyperthread count to `core:sys/info` for Windows and Linux.
TODO: Linux RISCV, Linux ARM, Darwin, and the BSDs.
2025-05-25 19:43:10 +02:00
Vincent Billet 1ed05c2498 Retracted some winmm changes 2025-05-22 12:15:16 +02:00
Vincent Billet 240d45201d Reverted CoCreateInstance formatting 2025-05-22 09:14:33 +02:00