Commit Graph

4236 Commits

Author SHA1 Message Date
Jeroen van Rijn
b4b53aeb71 png: Channel helper metadata. 2021-10-06 22:47:40 +02:00
Jeroen van Rijn
c4b4a841d6 png: Move metadata. 2021-10-06 22:43:33 +02:00
Jeroen van Rijn
263d63aa56 png: Add more OOM checks. 2021-10-06 22:09:32 +02:00
Jeroen van Rijn
8fcd1794a6 png: Add sane compile-time maximums for dimensions + chunk sizes. 2021-10-06 21:48:22 +02:00
Jeroen van Rijn
9b5ae95677 png + compress: Rearrange error unions. 2021-10-06 20:45:29 +02:00
Jeroen van Rijn
21c6d691d8 Add additional error checking to helpers. 2021-10-06 20:10:37 +02:00
Jeroen van Rijn
2e9eec156c Revert "Merge pull request #1209 from Kelimion/append_error"
This reverts commit c9468adcfd, reversing
changes made to 879a4d49ae.
2021-10-06 19:09:28 +02:00
Jeroen van Rijn
c9468adcfd Merge pull request #1209 from Kelimion/append_error
Make `append` builtins return an `Allocator_Error`.
2021-10-06 07:40:16 -07:00
Jeroen van Rijn
b345176bde Make append builtins return an Allocator_Error. 2021-10-06 16:33:52 +02:00
Josh Engler
15594706c9 Additional win32 bindings. 2021-10-05 19:09:20 -04:00
gingerBill
58e3f779f2 Remove nonsense from static_arena_init 2021-10-05 17:12:24 +01:00
gingerBill
455d64fbd4 Add error value to commit 2021-10-05 17:11:12 +01:00
gingerBill
16ca677c1f Correct mmap usage 2021-10-05 17:05:33 +01:00
gingerBill
1f1434b384 Add arena_util.odin 2021-10-05 16:42:42 +01:00
gingerBill
f83370235f Add static_arena_bootstrap_new 2021-10-05 16:39:14 +01:00
gingerBill
4961aff51b Minor cleanup 2021-10-05 16:37:15 +01:00
gingerBill
0ed3143006 Merge branch 'master' of https://github.com/odin-lang/Odin 2021-10-05 16:28:25 +01:00
gingerBill
bc2b8b597c Add virtual.Static_Arena 2021-10-05 16:28:14 +01:00
gingerBill
ccc4c641c4 Clean up Memory_Block logic 2021-10-05 16:25:30 +01:00
Jeroen van Rijn
1931e3147d Remove assert from mem.ptr_to_bytes. Fixes #1206 2021-10-05 14:18:48 +02:00
gingerBill
9d9ec192f1 Rename to growing_arena.odin 2021-10-04 17:57:59 +01:00
gingerBill
586a000152 Add Protect_Flags for virtual.protect 2021-10-04 17:42:15 +01:00
gingerBill
728f143e33 Add virtual_linux.odin 2021-10-04 17:30:06 +01:00
gingerBill
f2e78dcc0b Separate out the virtual memory allocation procedures
`reserve`, `commit`, `reserve_and_commit`, `decommit`, `release`, `protect`
2021-10-04 16:43:52 +01:00
gingerBill
e05a305764 Minor clean up 2021-10-03 12:43:11 +01:00
gingerBill
a437c95fed Remove mutex from Growing_Arena; Add Growing_Arena_Temp 2021-10-03 12:41:24 +01:00
gingerBill
8fe70978ff Add @(init) usage to core:mem/virtual 2021-10-03 12:40:51 +01:00
gingerBill
2d2e3ed6a1 Remove dead code 2021-10-02 14:04:52 +01:00
gingerBill
21a06df5e1 Add alias for MJSON as Bitsquid 2021-10-02 14:04:41 +01:00
gingerBill
b1ea291942 Fix typos 2021-10-02 01:13:28 +01:00
gingerBill
d32d1b7e07 Add reflect.set_union_value 2021-09-30 12:04:27 +01:00
gingerBill
6ca793f0e9 Remove deprecation from the build specific procedures 2021-09-30 11:45:56 +01:00
gingerBill
08ac2fd1b6 Rename virtual.Arena to virtual.Growing_Arena 2021-09-29 16:50:36 +01:00
gingerBill
b2a36f204e Add a mutex to arena_free_all 2021-09-29 16:46:14 +01:00
gingerBill
efdd5cf499 Add a mutex to virtual.Arena 2021-09-29 16:43:58 +01:00
gingerBill
805e48ae1e Add core:mem/virtual 2021-09-29 16:39:20 +01:00
gingerBill
c6ff88e85a Add io.write_f16 io.write_f32 io.write_f64 2021-09-29 16:39:02 +01:00
gingerBill
19ac822e4a Improve reflect.Type_Info_Complex support 2021-09-29 15:08:45 +01:00
gingerBill
9d797ea225 Add more support for complex types 2021-09-29 15:02:51 +01:00
gingerBill
aac290e366 Clean up json.marshal_to_writer 2021-09-29 14:50:53 +01:00
gingerBill
1d6e398f20 Add io.Error to fmt.fprintf_typeid 2021-09-29 14:49:58 +01:00
gingerBill
9fae575531 Keep -vet happy 2021-09-29 14:49:25 +01:00
gingerBill
e928793e79 Correct _builder_stream_vtable 2021-09-29 14:49:06 +01:00
gingerBill
e99061500d Minor clean up of n_read/n_written handling 2021-09-29 14:28:09 +01:00
gingerBill
8e2a0be804 Add an extra optional ^int parameter to most io read/write calls allowing for simplified or_return use with incrementing byte usage 2021-09-29 13:59:47 +01:00
gingerBill
94a27224b2 Deprecate strings.write_quoted_* in favour of io.write_quoted_*; make reflect.write_type a little more robust with io.Error handling 2021-09-29 13:42:58 +01:00
gingerBill
b2164b5da6 Make the io/conv.odin utilities be #optional_ok 2021-09-29 13:24:42 +01:00
gingerBill
057310472e Add io.write_i128 and io.writer_u128 2021-09-29 13:21:49 +01:00
gingerBill
c22f2866c7 Remove fmt dependency 2021-09-29 13:18:06 +01:00
gingerBill
9bc12e3f38 Improve json.marshal error handling for io.Writer; Add docs for the different JSON specifications 2021-09-29 13:06:03 +01:00