wilsonk
4c7d61ae82
Bsd family fixes ( #1435 )
...
Some small fixes for the BSD's
Try fcntl for NetBSD
Fixes for stdin, etc. and setjmp/longjmp
2024-09-13 14:49:51 +02:00
Alexey Kutepov
d53dd57b84
Introduce os::native_fputc() abstraction layer for File.write_byte() ( #1440 )
...
Introduce os::native_fputc() abstraction layer for File.write_byte()
2024-09-13 12:25:41 +02:00
wilsonk
1b54a99f6a
Add initial FreeBSD support ( #1430 )
...
Add initial FreeBSD support
2024-09-11 22:38:53 +02:00
ElaDeCode
2b0d2892af
move macro matrix_look_at to matrix module
2024-09-11 14:58:42 +02:00
Fernando López Guevara
27f2d201ed
fix: cast native thread
2024-09-11 10:12:33 +02:00
Christoffer Lerno
2092e2167e
Add io::read_new_fully for reading to the end of a stream. Add io::wrap_bytes for reading bytes with io functions.
2024-09-10 13:21:07 +02:00
Christoffer Lerno
d4fb5b747b
Update QOI type names.
2024-09-07 16:10:15 +02:00
Hema2
7581651011
Add QOI to the standard library ( #1409 )
...
Add QOI to the standard library
2024-09-07 15:55:26 +02:00
Christoffer Lerno
1cc1b83b6f
format functions are now functions and work better with splat.
2024-09-07 14:34:30 +02:00
Christoffer Lerno
840b3b3161
"optsize" did not work correctly in project.json.
2024-09-06 22:55:15 +02:00
Lars Nilsson
04c85eb9ce
Adding hashmap and map initialization functions with data ( #1402 )
...
Adding hashmap and map initialization functions with data to populate them with
2024-09-06 20:55:42 +02:00
Christoffer Lerno
ad0e97ab7b
Deprecated inline generic types, deprecated tuple / triple types.
2024-09-05 23:42:20 +02:00
Christoffer Lerno
ed5d338a39
Added new style named arguments.
2024-09-05 22:13:22 +02:00
Ikko Eltociear Ashimine
b8d77d2490
chore: update linux.c3
...
Recieve -> Receive
2024-09-02 11:07:34 +02:00
Christoffer Lerno
2600c3116c
Do not add the libc allocator if it isn't available.
2024-09-02 01:44:35 +02:00
Christoffer Lerno
d635cfb90f
printf will now show errors in the output when there are errors.
2024-08-31 19:36:18 +02:00
Christoffer Lerno
6cb6113c57
- Memory leak in Object when not using temp allocators.
...
- Tracking allocator would double the allocations in the report.
2024-08-31 03:35:39 +02:00
Christoffer Lerno
bc267e22bd
Add fmod implementation for nolibc.
2024-08-29 20:04:59 +02:00
Christoffer Lerno
26acce246d
Fixed int128 div/mod. Fix WASM memory init priority.
2024-08-27 04:31:14 +02:00
Christoffer Lerno
388578c209
Too restrictive compile time checks for @const. Fixes to wasm nolibc in the standard library.
2024-08-26 13:33:15 +02:00
Christoffer Lerno
4b2019cf20
Add "allocator-required" functions.
2024-08-25 21:53:54 +02:00
Christoffer Lerno
a870881fff
Allow "project.json5" to be used.
2024-08-25 00:19:08 +02:00
Christian Buttner
19d37ef641
Add types::is_signed, is_unsigned and inner_type. ( #1365 )
...
Add `types::is_signed`, `is_unsigned` and `inner_type`.
2024-08-23 19:01:05 +02:00
Christian Buttner
59ed118e66
Address/memory/thread sanitizer.
2024-08-23 16:06:22 +02:00
Christoffer Lerno
d32861193b
DynamicArenaAllocator would not correctly free.
2024-08-20 22:42:01 +02:00
Christoffer Lerno
a248511d7b
Added ElasticArray
2024-08-19 23:20:14 +02:00
Christoffer Lerno
79a1639f8a
Fix aligned alloc for Win32 targets.
2024-08-19 15:25:00 +02:00
Christoffer Lerno
476a6424ee
insert_at incorrectly prevented inserts at the end of a list.
2024-08-19 11:44:06 +02:00
Christoffer Lerno
2b0857baf9
Add connection reset error.
2024-08-18 20:01:54 +02:00
Christoffer Lerno
20b0bf43ad
Fix of dstring.
2024-08-18 09:50:54 +02:00
Christoffer Lerno
17d6f03bae
New hashmap type, Map
2024-08-18 00:37:24 +02:00
Owen Shepherd
4edaf603c9
fix: Guard against uninitialized hashmap in key removal
...
Removing non-present keys is a supported operation on HashMaps,
and most other operations are well-defined on uninitialized
HashMaps.
Currently, removing any key on an uninitialized HashMap will
result in an 'Array index out of bounds' error.
This change guards against such a case.
2024-08-17 02:35:04 +02:00
Christoffer Lerno
edfea639cf
- Introduce $vaarg[...] syntax and deprecate the old $vaarg(...).
...
- Similar change to `$vasplat`: `$vasplat` and `$vasplat[1..]`.
2024-08-16 09:28:28 +02:00
Christoffer Lerno
ad4950130c
Remove use of tappend in rmtree on windows.
2024-08-15 00:40:01 +02:00
Christoffer Lerno
3ccb4b9ec3
$exec may now provide a stdin parameter. Deprecated path.append, path.tappend, getcwd, tgetcwd, path.absolute, ls. Deprecated env::get_config_dir, replaced by env::new_get_config_dir. Added path.has_extension, path.new_append, path.temp_append, new_cwd, temp_cwd, path.new_absolute, new_ls, temp_ls. Added dstring.replace Updated win escapes for exec.
2024-08-15 00:31:47 +02:00
Christoffer Lerno
baf6e71a80
Fix interface lazy resolution errors. Fix i128 change in LLVM.
2024-08-12 01:25:30 +02:00
Christoffer Lerno
6d93ce9d33
Update to libc::setjmp on Win32, to do no stack unwinding.
2024-08-11 18:22:14 +02:00
Christoffer Lerno
2706495668
Add temp allocator scribble. Make bufferstream safer.
2024-08-11 01:17:03 +02:00
Christoffer Lerno
224c3f4123
Printable values passed to the Formatter as pointers, will print as if passed by value. Pointers are rendered with "0x" prefix when passed to '%s'.
2024-08-11 00:27:06 +02:00
Christoffer Lerno
05c5eaed48
Add deprecation notice for $and, $or, $concat, $append.
2024-08-10 21:25:13 +02:00
Christoffer Lerno
811cb2b95c
Add string methods to json, and fix issue in dstring when the formatter uses temp. Remove unnecessary use of temp allocator in to_format for json.
2024-08-10 19:13:58 +02:00
Christoffer Lerno
274e5280cb
Rename muldiv and update tests for LLVM 20
2024-08-09 23:56:26 +02:00
Samuel Goad
f85c4cd79f
Update string_iterator.c3 to include extra convenience methods ( #1327 )
...
Update string_iterator.c3 to include extra convenience methods
Added peek: returns the next character without incrementing current
Added has_next: checks if the iterator has another element
Added get: gets the current element (the same one that was returned with the previous call to next).
2024-08-09 23:10:46 +02:00
Lexi
696d39b922
Move safe_mul_div macro and make it generic on integer types ( #1334 )
...
Move safe_mul_div macro and make it generic on integer types
2024-08-09 22:54:26 +02:00
Christoffer Lerno
44db4a21fc
Add @tag and .tagof .has_tagof. Allow bitstructs to have attributes.
2024-08-09 15:03:44 +02:00
Christoffer Lerno
c8a113384c
Better precision with Clock on Win32
2024-08-08 23:03:04 +02:00
Lexi Allen
07e7bc0a94
Fix win32 native_clock() by converting native performance counter value to nanoseconds using previously gotten frequency value
2024-08-08 21:14:58 +02:00
Christoffer Lerno
0ef0f62b69
Only destroy temp allocators on env::LIBC.
2024-08-08 12:48:01 +02:00
Christoffer Lerno
921422a189
Fix Vec2.angle
2024-08-08 01:48:39 +02:00
Christoffer Lerno
56b771a7ad
Support destroying temp allocators, and destroy temp allocators on exit.
2024-08-07 16:24:26 +02:00