o:tone
c3478e0002
fix unmarshal unhandled error ( #4515 )
...
* fix unmarshal unhandled error
2024-11-25 13:15:33 +01:00
gingerBill
12e7ff1e3c
Remove core:c/frontend
2024-11-24 12:32:10 +00:00
Colin Davidson
da3a7a25c7
oops
2024-11-20 14:07:23 -08:00
Colin Davidson
3bb73eacfc
fix parsing issue around utc/localtime split
2024-11-20 12:09:32 -08:00
jakubtomsu
86c84f2621
Fix a bug in hxa decoder found by the new check
2024-11-17 21:35:49 +01:00
Dudejoe870
4d22f1f544
Fix typo in Quaternion dot product
2024-11-17 10:42:59 -06:00
Laytan Laats
20f4f378b2
sys/posix: add MAP_ANONYMOUS
2024-11-17 13:52:08 +01:00
Laytan Laats
8f2766c4dc
add missing macos version
2024-11-16 15:42:13 +01:00
gingerBill
0781871efd
Merge pull request #4489 from laytan/os2-dir-leak-and-test
...
os2: fix leak in dir_windows, fix netbsd, and add a test for dir reading
2024-11-15 23:22:14 +00:00
Laytan Laats
282d956aa7
os2: skip dir test when unsupported
2024-11-15 21:56:55 +01:00
Laytan Laats
ce74325673
sys/posix: fix dirfd on netbsd
2024-11-15 21:22:23 +01:00
NicknEma
5486327e0b
Fix integer type
...
Change int to i32 so it is the correct size
2024-11-15 21:10:55 +01:00
Laytan Laats
de9d0134e4
os2: fix file type detection in dir_windows
2024-11-15 21:08:14 +01:00
Laytan Laats
b3c2f5cb12
os2: fix leak in dir_windows
2024-11-15 20:47:34 +01:00
gingerBill
26f6741674
Check for more errors in json.unmarshal
2024-11-14 16:45:36 +00:00
gingerBill
537ff3beb3
Merge pull request #4482 from A1029384756/master
...
core:sys/linux - implemented inotify
2024-11-14 16:23:08 +00:00
gingerBill
c440122d93
Remove relative types from json marshaller
2024-11-14 16:18:41 +00:00
gingerBill
cf819f45fd
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-11-14 16:17:30 +00:00
gingerBill
e38a08013e
Remove #relative types from the compiler
2024-11-14 16:17:24 +00:00
Alex Overstreet
5ea7fe14dd
Use tabs instead of spaces
2024-11-13 15:46:56 -06:00
Alex Overstreet
0af183485b
Add STICKYKEYS, TOGGLEKEYS, and FILTERKEYS
2024-11-13 15:41:16 -06:00
A1029384756
8f80e9765e
core:sys/linux - prefixing + moved IN_CLOSE/IN_MOVE to constants
2024-11-13 12:45:58 -05:00
A1029384756
1b313a4db0
core:sys/linux - flags, spacing, inotify_init
2024-11-13 08:52:33 -05:00
Sebastian Pahnke
395fa7fdb8
Add NSApplication bindings for mainWindow and keyWindow
2024-11-13 14:42:31 +01:00
A1029384756
37441bd730
core:sys/linux - fixed vet errors
2024-11-13 00:09:38 -05:00
A1029384756
bb20338987
core:sys/linux - implemented inotify
...
core:sys/linux - added constants and spacing
2024-11-13 00:05:58 -05:00
p2jason
2beb495140
Increase size of JS keyboard event key/code buffer size
2024-11-12 13:37:08 +13:00
Laytan Laats
9c374b4d02
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-11-11 18:56:59 +01:00
Bazzagibbs
cb0c1663b7
Add core:slice.size to get the byte size of a slice's backing data
2024-11-11 14:04:59 +11:00
Jacob Pfeiffer
4029ddb2b3
Correct zlib usage in doc
2024-11-08 10:32:26 -05:00
gingerBill
4890c3681c
Merge pull request #4467 from clankill3r/patch-1
...
Update scanner.odin
2024-11-08 13:38:29 +00:00
Doeke Wartena
b492b73ff2
Update scanner.odin
...
remove duplicated wording in comment
2024-11-07 20:15:22 +01:00
A1029384756
5be7ac4039
added unlinking section to posix socket binding documentation
2024-11-06 20:36:29 -05:00
gingerBill
1419d0d295
Minor formatting change
2024-11-05 12:45:30 +00:00
Colin Davidson
b2d1fbba9c
oops, missed a comma
2024-11-05 03:48:47 -08:00
Colin Davidson
c9158b3220
add new test, better fail-check, and non-transitioning tz fix
2024-11-05 03:44:07 -08:00
gingerBill
aa36ae01cf
Fix #4406 os2 to not close the std file handles but rather just free the memory for the ^File data.
2024-11-04 11:55:29 +00:00
NicknEma
cc29b41ccc
Mark procs as "contextless" in winerror.odin
...
So that they can be called from places like the windproc and stuff.
2024-11-04 10:24:27 +01:00
Jeroen van Rijn
c33d2ff96b
Missing paren.
2024-11-03 14:10:29 +01:00
Jeroen van Rijn
9199c6df34
mem.is_aligned is in bytes, not log2 bytes
...
Fix formula and clarify comment
2024-11-03 14:07:31 +01:00
Laytan
7cfaf0b181
Merge pull request #4415 from p2jason/master
...
Remove the event queue from odin.js and directly invoke callbacks so they are executed in context where prevent default is possible
2024-11-01 19:48:36 +01:00
Laytan Laats
8b5492dd4d
fix tabs
2024-11-01 18:10:20 +01:00
Laytan Laats
f798f0b446
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-11-01 16:27:45 +01:00
p2jason
94acfaf21e
Removed event hook callback from add_*_event_listener functions
2024-10-31 13:15:39 +00:00
p2jason
e825326d73
Removed event queue from add_*_event_listener JS functions and added event hook callback
2024-10-31 13:02:46 +00:00
Laytan Laats
cc3c9bd871
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-10-30 15:51:56 +01:00
gingerBill
ee76acd665
Merge pull request #4427 from laytan/posix-additions
...
Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
2024-10-30 11:43:47 +00:00
gingerBill
8312528a87
Merge pull request #4436 from karl-zylinski/utf8string-last-rune-bug
...
Fix for using `utf8string.at` with last rune index returning wrong rune
2024-10-30 11:42:47 +00:00
Karl Zylinski
36b958c120
Fix for using utf8string.at with last rune index returning wrong rune.
2024-10-30 11:10:36 +01:00
Laytan
47be77ead5
Merge pull request #4430 from Wyr0X/patch-1
...
fix cbor.to_json always returning array of tuples for objects
2024-10-29 11:46:51 +01:00