Commit Graph

7123 Commits

Author SHA1 Message Date
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
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
Jeroen van Rijn
b6ea6f7a12 Merge pull request #5882 from IllusionMan1212/custom-json-marshalling
encoding/json: custom json (un)marshalling
2026-01-01 16:07:01 +00:00
gingerBill
b446b91251 Add @(rodata) to global constants 2026-01-01 13:42:40 +00:00
gingerBill
70697fa00f When using fmt_write_padding, remove the need to restore fi.zero since it is not used. 2026-01-01 13:41:56 +00:00
gingerBill
94146e4fe7 fix printing dozenal numbers 0z from 0o 2026-01-01 13:40:43 +00:00
Neirokan
c6ca64cd4a fix map_to_ip6 offset 2026-01-01 10:52:18 +03:00
gingerBill
3c8b1ab414 Merge branch 'master' of https://github.com/odin-lang/Odin 2025-12-31 15:01:08 +00:00
gingerBill
6f396ac49b Rename xar.Xar to xar.Array 2025-12-31 15:01:03 +00:00
dozn
8fea2b783c [encoding/json] Allow Unmarshalling to rune
Fixes https://github.com/odin-lang/Odin/issues/6061
2025-12-30 18:10:07 -08:00
dozn
589dbbddd2 [encoding/json] Fix Escapes When Marshalling
Fixes https://github.com/odin-lang/Odin/issues/6060 and https://github.com/odin-lang/Odin/issues/6075
The boolean "true" was setting `html_safe` instead of `for_json`.
Chalk one up for the "use enums instead of booleans" crowd.
2025-12-30 17:02:06 -08:00
gingerBill
107104ab4b Merge pull request #6081 from dozn/json5-and-sjson-comments
Add JSON5/SJSON Comments When Marshalling
2025-12-30 13:42:19 +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
gingerBill
a70ff0b6fb Merge pull request #6056 from d-us-vb/patch-1
Update letter.odin
2025-12-30 13:37:57 +00:00
dozn
affaefc13a Moved first_iteration up a couple lines so it makes sense readability-wise. 2025-12-30 04:42:06 -08:00
dozn
ba68d75c6f Add JSON5/SJSON Comments When Marshalling
Allows user-facing JSON5/SJSON to have comments explaining field usage.
`json.Marshal_Options.pretty` must be enabled since we only use single-line comments (not to mention it wouldn't be terribly useful without `pretty` set anyways).
We don't escape anything, so `\n` will display as "\n", but you're still able to enter in a proper newline character and it'll be displayed on multiple lines.
2025-12-29 12:23:54 -08: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
Laytan
c46e658098 Merge pull request #6074 from DarathDev/master
Add missing 'caller_location' to several procedures in 'slice' package
2025-12-29 15:57:56 +01:00
Laytan
9f81d9a995 Merge pull request #6073 from bplu4t2f/master
Add user32 scroll bar related bindings, and FrameRect
2025-12-29 15:57:26 +01:00
Laytan
852ea91cdb Merge pull request #6078 from BigBoyBarney/json-arrays
Fix standard json parsing / unmarshalling issue for pure arrays
2025-12-29 15:53:51 +01:00
Sylphrena
6441fc09e0 Fix standard json parsing / unmarshalling issue for pure arrays 2025-12-29 15:35:34 +01:00
DarathDev
f1e29fadab Add missing 'caller_location' to several procedures in 'slice' package 2025-12-28 15:05:59 -07:00
bplu4t2f
33352ed6cb Add user32 scroll bar related bindings, and FrameRect 2025-12-27 17:31:15 +01:00
gingerBill
4e40b808c4 Split of the built-in custom formatters to improve code generation 2025-12-27 12:42:52 +00:00