Commit Graph

6810 Commits

Author SHA1 Message Date
gingerBill
0eaf3ee7cd Merge pull request #5678 from alexriedl/wrong-allocator-guard
fix for temp_file name prefix being deallocated before being used
2025-09-26 15:24:11 +01:00
gingerBill
1222d40d39 Merge pull request #5691 from rationalcoder/master
Fix out-of-band allocations in dynamic arenas
2025-09-26 14:21:52 +01:00
gingerBill
51f79724ed Merge pull request #5686 from thetarnav/zero-small-array-resize
Zero small array resize
2025-09-26 14:16:54 +01:00
Yuriy Grynevych
36098cec0f [core:sys/info] doc: Remove duplicated line 2025-09-25 15:14:42 +03:00
Wrath
443b6e1641 Unify filepath.join behavior on between unix/windows 2025-09-23 23:03:20 -04:00
gingerBill
4d2854f561 Merge pull request #5632 from kalsprite/x386
windows i386 support
2025-09-18 22:01:14 +01:00
rationalcoder
710533975e Fix out-of-band allocations in dynamic arenas 2025-09-16 16:31:10 -05:00
Damian Tarnawski
e163c20a02 Correct set_example in small_array 2025-09-15 15:29:17 +02:00
Damian Tarnawski
40c8f45a81 Correct small_array resize examples 2025-09-15 15:15:44 +02:00
Damian Tarnawski
b986c534a3 Replace mem.zero_slice with intrinsics.mem_zero in small_array.resize 2025-09-15 15:01:20 +02:00
Damian Tarnawski
7adc33d5a4 Add @require to core:mem import in small_array 2025-09-15 14:56:46 +02:00
Damian Tarnawski
3d66625de0 Zero memory in small_array.resize and add non_zero_resize 2025-09-15 14:40:58 +02:00
Damian Tarnawski
3e62c2c79a Add "contextless" to small_array get_safe and get_ptr_safe 2025-09-14 10:39:33 +02:00
gingerBill
935d9657a3 Merge pull request #5677 from slowhei/master
Fix Drawin addObserver methods and add support for new Objc_Block
2025-09-12 08:44:45 +01:00
Alex Riedl
b9a09cebee fix for temp_file name prefix being deallocated before being used 2025-09-11 10:55:29 -05:00
Tohei Ichikawa
a454633774 Fix addObserver methods and add support for new Objc_Block 2025-09-11 09:50:31 -04:00
gingerBill
72f8bafe6c Merge pull request #5672 from thetarnav/strings-builder-caller-location
Add missing caller location param to append in strings builder
2025-09-11 11:02:35 +01:00
gingerBill
8175c3eaa1 Merge pull request #5651 from FourteenBrush/patch-2
Win32: add `CancelIoEx` to kernel32.odin, among other overlapped IO functions.
2025-09-10 21:36:37 +01:00
Jeroen van Rijn
3c9538c708 Change the way math/big constants are initialized 2025-09-10 21:02:24 +02:00
Jacob Friedman
9492dccb4a Fix incorrect json encoding for control characters < 32 2025-09-10 16:50:12 +02:00
Brad Lewis
75449283c2 Allow missing trailing comma with proc groups with odin parser 2025-09-10 08:44:06 -04:00
Damian Tarnawski
413b44d05c Add missing caller location param to append in strings builder 2025-09-10 13:23:56 +02:00
Jeroen van Rijn
cd3069b16b Small updates to JPEG loader
- Remove some unnecessary nesting
- Add frame type (SOF0, et al) to metadata if `.return_metadata` is used
2025-09-09 18:34:19 +02:00
Jeroen van Rijn
572b26a846 Expand grayscale JPEGs to RGB(A)
And handle grayscale jpeg example file in test suite.
2025-09-09 17:13:21 +02:00
Jeroen van Rijn
7b3ca701e0 Implement .alpha_add_if_missing for JPEG 2025-09-09 14:51:16 +02:00
FourteenBrush
eb7218eff0 Merge branch 'odin-lang:master' into patch-2 2025-09-09 14:41:28 +02:00
FourteenBrush
fb1dd3052d Add RtlNtStatusToDosError ERROR_MR_MID_NOT_FOUND error 2025-09-09 14:11:38 +02:00
FourteenBrush
64e9652776 Add RtlNtStatusToDosError
Maps kernel NTSTATUS to win32 system error
2025-09-09 14:04:36 +02:00
Jeroen van Rijn
dd9fceaae1 Make progressive JPEGs return a proper error
Add progressive JPEG file to test suite and test that loading it returns the expected `Unsupported_Frame_Type` error.

This JPEG variant will hopefully be supported in the future, but we should at least return an error rather than use `unsupported()`.
2025-09-09 13:53:43 +02:00
gingerBill
e2c1f86946 Merge pull request #5663 from greenya/master
[core:time] time_js: tick_now(): Use f64 (was f32) as a return type of odin_env.tick_now()
2025-09-08 18:25:08 +01:00
Jeroen van Rijn
2f59e0175e Address some naming issues 2025-09-08 17:44:58 +02:00
Jeroen van Rijn
14bf730a2c Make _register contextless 2025-09-08 17:17:14 +02:00
IllusionMan1212
cb820eea4d jpeg: extract Exif data 2025-09-08 17:13:03 +02:00
IllusionMan1212
57a92b14cc jpeg: support images that encode zero-based component ids 2025-09-08 17:13:03 +02:00
Hisham Aburaqibah
694593c5f2 image/jpeg: more bounds checking and skip malformed APP0
Also increase the maximum huffman symbols to 176
2025-09-08 17:13:03 +02:00
Hisham Aburaqibah
8644f3beba image/jpeg: better pack APP0 structs 2025-09-08 17:13:03 +02:00
Hisham Aburaqibah
a6f18c3367 image/jpeg: implement jpeg decoding for baseline and extended sequential jpegs 2025-09-08 17:12:58 +02:00
Hisham Aburaqibah
d704c45c24 core/image: some jpegs have APP13 or COM markers after SOI 2025-09-08 17:12:04 +02:00
Yuriy Grynevych
2bbd0a45c0 [core:time] time_js: tick_now(): Use f64 (was f32) as a return type of odin_env.tick_now(). 2025-09-08 17:57:28 +03:00
Michael Lee
cfde843778 [core:image/png] use .Image_Dimensions_Too_Large 2025-09-08 09:08:07 -05:00
FourteenBrush
fe531c1888 Add build tags to posix/spawn.odin 2025-09-07 20:39:27 +02:00
FourteenBrush
9aabe75262 Add ERROR_NOT_FOUND
Returned by `CancelIoEx` when cancelled number or io completions was 0.
Was for some reason defined in `core:os`, but not in win32 pkg.
Ref: https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--1000-1299-
2025-09-05 00:34:44 +02:00
Jon Lipstate
57bc45ae30 revert to working build 2025-09-03 22:51:28 -07:00
Jon Lipstate
e0c4c53362 add tls when we have crt 2025-09-03 22:32:33 -07:00
FourteenBrush
f6bf88d184 Add CancelIoEx to kernel32.odin 2025-09-04 00:38:51 +02:00
gingerBill
3bbf3641a1 Merge pull request #5648 from thetarnav/handle-allocator-error-in-read-entire-file
Handle allocator error when appending in read_entire_file_from_file
2025-09-02 15:49:42 +01:00
Damian Tarnawski
cdca345d74 Handle optional allocator error when appending read bytes in read_entire_file_from_file 2025-09-02 13:42:25 +02:00
Damian Tarnawski
21fd7c200e Add require_results attr to procs returning an allocator 2025-09-02 13:03:15 +02:00
AmedeoAlf
8bb597b9de Specify %m and %M as verbs for integer formatting 2025-09-01 22:44:24 +02:00
FourteenBrush
10b7bba25d Add LPFN_GETACCEPTEXSOCKADDRS to ws2_32.odin 2025-08-31 23:52:00 +02:00