Commit Graph
5911 Commits
Author SHA1 Message Date
gingerBillandflysand7 5d38eb9d81 Remove relative types from json marshaller 2024-12-01 11:54:53 +11:00
Alex Overstreetandflysand7 357d6212d0 Use tabs instead of spaces 2024-12-01 11:54:53 +11:00
Alex Overstreetandflysand7 522f05445e Add STICKYKEYS, TOGGLEKEYS, and FILTERKEYS 2024-12-01 11:54:53 +11:00
Sebastian Pahnkeandflysand7 a0561860f9 Add NSApplication bindings for mainWindow and keyWindow 2024-12-01 11:54:53 +11:00
gingerBillandflysand7 e72736a5a8 Remove #relative types from the compiler 2024-12-01 11:54:53 +11:00
p2jasonandflysand7 62d30daa00 Increase size of JS keyboard event key/code buffer size 2024-12-01 11:54:53 +11:00
Laytan Laatsandflysand7 38c79b203a reflect: add enum_value_has_name proc
Easy way to check if the current value has a defined name/member in the
enum type.
2024-12-01 11:54:53 +11:00
Bazzagibbsandflysand7 25be3dfca0 Add core:slice.size to get the byte size of a slice's backing data 2024-12-01 11:54:53 +11:00
Jacob Pfeifferandflysand7 a8d603fd7d Correct zlib usage in doc 2024-12-01 11:54:53 +11:00
Doeke Wartenaandflysand7 cc1c97c6d0 Update scanner.odin
remove duplicated wording in comment
2024-12-01 11:54:53 +11:00
A1029384756andflysand7 943b09a8b1 added unlinking section to posix socket binding documentation 2024-12-01 11:54:53 +11:00
gingerBillandflysand7 11768c6217 Minor formatting change 2024-12-01 11:54:52 +11:00
Colin Davidsonandflysand7 514faa517e oops, missed a comma 2024-12-01 11:54:52 +11:00
Colin Davidsonandflysand7 3b4338b685 add new test, better fail-check, and non-transitioning tz fix 2024-12-01 11:54:52 +11:00
gingerBillandflysand7 d5b6c25686 Fix #4406 os2 to not close the std file handles but rather just free the memory for the ^File data. 2024-12-01 11:54:52 +11:00
NicknEmaandflysand7 1b7a32f76c Mark procs as "contextless" in winerror.odin
So that they can be called from places like the windproc and stuff.
2024-12-01 11:54:52 +11:00
Jeroen van Rijnandflysand7 1a13322cd7 Missing paren. 2024-12-01 11:54:52 +11:00
Jeroen van Rijnandflysand7 c5d3fdca44 mem.is_aligned is in bytes, not log2 bytes
Fix formula and clarify comment
2024-12-01 11:54:52 +11:00
p2jasonandflysand7 ee84aa4ead Removed event hook callback from add_*_event_listener functions 2024-12-01 11:54:52 +11:00
p2jasonandflysand7 f993fcb82c Removed event queue from add_*_event_listener JS functions and added event hook callback 2024-12-01 11:54:52 +11:00
p2jasonandflysand7 aa08f661ca Changed boolean parameters to bit set in the add_*_event_listener functions 2024-12-01 11:54:52 +11:00
p2jasonandflysand7 0eac9f15bc Added parameters to the add_*_event_listener JS functions for stopping event behavior 2024-12-01 11:54:52 +11:00
Laytan Laatsandflysand7 9adc7f2bcf fix tabs 2024-12-01 11:54:52 +11:00
Laytan Laatsandflysand7 e6d324c5c4 testing: separate the posix import into target files
This is needed for the docs generator to generate all the docs for the
posix package, if it is imported like it was on Windows it would
generate docs for the Windows version of the package which has much less
symbols exposed.
2024-12-01 11:54:52 +11:00
Laytan Laatsandflysand7 c08408ea08 fix thread_unix for Darwin after pthread corrections in posix package
afed3ce removed the sys/unix package and moved over to sys/posix, it has
new bindings for the pthread APIs but should have been equivalent (not).

8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the
correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for
FreeBSD in that commit).

What this meant is that the
`pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually
successful, but because the error wasn't checked it was assumed it was.
It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would
actually be setting `PTHREAD_CANCEL_DISABLE`.

The code in this PR restores the behaviour by now actually deliberately
setting `PTHREAD_CANCEL_DISABLE` and not setting
`PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does
actually seem to work for some reason.

(I also fixed an issue in fmt where `x` would use uppercase if it was a
pointer.)
2024-12-01 11:54:52 +11:00
Laytanandflysand7 78dc4d4907 fix test 2024-12-01 11:54:51 +11:00
Laytanandflysand7 9f1c894f1f port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it 2024-12-01 11:54:51 +11:00
Laytanandflysand7 f342215b4d clean up dynlib and path/filepath with sys/posix 2024-12-01 11:54:51 +11:00
Laytanandflysand7 2b5f0fc729 remove pthread from sys/unix and use sys/posix where used 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 49ddbd9b99 sys/posix: impl rest of linux, impl some of Windows 2024-12-01 11:54:51 +11:00
Karl Zylinskiandflysand7 879771fe32 Fix for using utf8string.at with last rune index returning wrong rune. 2024-12-01 11:54:51 +11:00
Alexis Caraballoandflysand7 d9326ae93d fix cbor.to_json always returning array of tuples for objects
to_json uses a small proc to check if all keys of an object are strings.
It was always returning false for any input.
2024-12-01 11:54:51 +11:00
Jeroen van Rijnandflysand7 1df246664f Fix image.which_bytes
Invert test in `which_bytes` to fix Softimage PIC detection. Fixes #4429.
2024-12-01 11:54:51 +11:00
Laytanandflysand7 5faefac106 math/rand: choice_bit_set return not_empty -> ok 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 d85f18e898 math/rand: add choice_bit_set 2024-12-01 11:54:51 +11:00
Patric Dexheimerandflysand7 12cfc9b8de Update process_windows.odin
Mistype
2024-12-01 11:54:51 +11:00
IllusionMan1212andflysand7 fafb2b1e75 core/io: correctly escape runes greater than 0xFFFF 2024-12-01 11:54:51 +11:00
gingerBillandflysand7 e6a4f3048f Fix possible leak in recursive filepath.glob 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 d185ab5991 sys/wasm/js: add set_element_style 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 3740497e42 encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 4207d4fded encoding/cbor: handle binary having more fields than the struct by discarding 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 0d4d3bd1de math/rand: support non-contiguous enums in choice_enum 2024-12-01 11:54:51 +11:00
Laytan Laatsandflysand7 0c470895b3 image: add panic when load is called without any registered loaders 2024-12-01 11:54:50 +11:00
Lucas Perlindandflysand7 fc3ea5b3d9 core/unicode/utf16: add rune_count proc
This returns the number of runes in a u16 slice
2024-12-01 11:54:50 +11:00
Misomosiandflysand7 b459cb6b2c Fix magnitude check in parse_f64_prefix 2024-12-01 11:54:50 +11:00
Colin Davidsonandflysand7 79975efb7e add better comment about freebsd hacks 2024-12-01 11:54:50 +11:00
f7fffc4b27 Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-12-01 11:54:50 +11:00
e4983831de Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-12-01 11:54:50 +11:00
Colin Davidsonandflysand7 f2711dca7f add julian day rule resolvers 2024-12-01 11:54:50 +11:00
Colin Davidsonandflysand7 83932280f8 swap datetime_to_str to aprintf 2024-12-01 11:54:50 +11:00