Christoffer Lerno
21d8a8b6da
Fix #809 missing checks on generic types, accepting both types where constants should be and vice versa.
2023-07-01 23:58:00 +02:00
Christoffer Lerno
45820d45e5
Allow using inferred type on method first parameter.
2023-07-01 22:47:54 +02:00
Pierre Curto
2ac213a3ce
lib/std/io/stream: add ReadBuffer and WriteBuffer streams
...
ReadBuffer and WriterBuffer buffer stream reads and writes to a stream.
Useful in situations where the underlying stream is sensitive to the number
of read or write calls.
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-01 17:38:09 +02:00
Christoffer Lerno
70ea6ce04b
Fix #806 , and also makes sure that things like FOO.x.a is a compile time value.
2023-07-01 16:29:17 +02:00
Christoffer Lerno
9102fc6032
Comments and cleanup.
2023-06-30 18:02:34 +02:00
Pierre Curto
378ea1deea
Update std::io::Stream ( #805 )
...
* add missing newlines in output messages when creating libraries
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/io: add Stream.supports_flush; fix AvailableStreamFn
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-06-30 17:37:08 +02:00
Christoffer Lerno
f74e294dc2
Push stack codegen to function for cleaner binaries. Some refactoring in allocators.
2023-06-30 01:01:58 +02:00
Christoffer Lerno
57c8b5fc75
Fix on rethrow + macros.
2023-06-27 20:41:17 +02:00
Pierre Curto
550b1f23ec
add missing newlines in output messages when creating libraries
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-06-27 14:06:00 +02:00
Christoffer Lerno
f651a59294
Fix on rethrow + macros.
2023-06-27 13:19:28 +02:00
Christoffer Lerno
fee80682b1
Update to error message when expecting a type.
2023-06-27 10:19:09 +02:00
Christoffer Lerno
b88916214f
Fix of allocator gen.
2023-06-26 21:34:36 +02:00
Christoffer Lerno
685be0981f
Fix priorityqueue.
2023-06-26 17:43:03 +02:00
Christoffer Lerno
fc054dad81
Added some to_string.
2023-06-26 16:21:07 +02:00
Christoffer Lerno
83f8bbb91b
Update range to have exclusive and inclusive range.
2023-06-26 10:18:09 +02:00
Christoffer Lerno
0ec64c3be8
Remove broken free check on temp allocator.
2023-06-25 22:07:44 +02:00
Christoffer Lerno
f878191e6f
Fix missing defer live tracing bug #801
2023-06-25 22:04:27 +02:00
Christoffer Lerno
8c73a450a1
Reduce memory consumtion. Add "range"
2023-06-25 21:39:53 +02:00
Pierre Curto
1dccd6af79
lib/std: display any caught error in tests
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-06-24 21:53:03 +02:00
Christoffer Lerno
dcfbca076f
Fix to zero length strings and better error when using assert with a non-constant error value.
2023-06-24 20:32:30 +02:00
Christoffer Lerno
b68b1e01b3
Updated grammar.
2023-06-24 18:24:04 +02:00
Christoffer Lerno
be04473af4
Name change, some updates using "from end" indexing.
2023-06-24 18:21:16 +02:00
Christoffer Lerno
fedffc2f35
Name change, some updates using "from end" indexing.
2023-06-24 15:20:40 +02:00
Christoffer Lerno
a187c55dfe
Improved pthread availability.
2023-06-24 14:23:42 +02:00
Pierre Curto
55a1f794cf
lib/std/encoding: add base64 support
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-06-24 14:23:18 +02:00
Christoffer Lerno
68f6cb1286
Updated organization file functions, env naming.
2023-06-24 10:29:17 +02:00
Pierre Curto
0ab0f727ad
lib/std: fix ByteWriter.read_from method ( #793 )
...
* lib/std: fix ByteWriter.read_from method
When reading from a stream which does not have an available method,
ByteWriter would not make any progress if its buffer was empty.
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* test/unit/stdlib/io: use separate module for TestReader
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-06-23 10:44:36 +02:00
Christoffer Lerno
c46017f0dc
Make MSVC happy about definite assignment.
2023-06-23 00:26:32 +02:00
Christoffer Lerno
1bd729a4bb
Remove accidental code include.
2023-06-23 00:17:13 +02:00
Christoffer Lerno
0eee9daf1d
Macros generating lambdas now actually is a thing.
2023-06-22 23:42:40 +02:00
Christoffer Lerno
d90fa5e292
Make errno implicitly convertible to int. Add getaddrinfo on all platforms. Fix addrinfo struct and sizes.
2023-06-22 02:06:37 +02:00
Christoffer Lerno
503a4de277
Cleanup of libc
2023-06-21 16:27:53 +02:00
Christoffer Lerno
ae9fca52ca
Update version
2023-06-21 16:27:53 +02:00
Christoffer Lerno
eddae3b7f7
Close linker context.
2023-06-21 16:27:53 +02:00
Christoffer Lerno
d5b01d3a8f
Native ls
2023-06-21 16:27:53 +02:00
Christoffer Lerno
ab93389031
- Updated posix/win32 stdlib namespacing
...
- Process stdlib
- Fix to void expression blocks
2023-06-21 16:27:53 +02:00
Christoffer Lerno
5c9eb264e8
Delete object files after linking.
2023-06-21 16:27:53 +02:00
Christoffer Lerno
4d552ae44d
Update $include syntax and behaviour. Remove top level $if completely.
2023-06-21 16:27:53 +02:00
Christoffer Lerno
3dd1741484
Fix of contract error location for @require #788
2023-06-20 21:35:48 +02:00
Christoffer Lerno
f9548cb213
Fix nested hash resolution for access identifiers. Fixes #789
2023-06-20 17:05:13 +02:00
Christoffer Lerno
c3da240bc0
Grammar fix.
2023-06-19 23:34:46 +02:00
Pierre Curto
f439539c6e
lib::std::core::bitorder: add read and write
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-06-19 23:34:30 +02:00
Christoffer Lerno
57424d8b6b
Fixes #786 , constant initialization with constants sometimes causing an error lowering to LLVM. Fixes bug passing void as a vararg argument to an any vararg.
2023-06-19 10:38:37 +02:00
Christoffer Lerno
3bdeec3bc2
Incorrect defer/return value ordering in some cases.
2023-06-18 23:25:33 +02:00
Christoffer Lerno
2d46bdf8e3
$$trap and $$unreachable is automatically no_return.
2023-06-15 21:09:05 +02:00
Christoffer Lerno
5f87cb4c4f
Fix of #780 .
2023-06-13 18:30:57 +02:00
Christoffer Lerno
76d75ac375
Fix passing temporary objects by reference for methods.
2023-06-13 12:22:35 +02:00
Christoffer Lerno
75a6ae7111
Enable LLVM 15
2023-06-12 09:42:23 +02:00
Christoffer Lerno
cf83651c79
The new @if directive.
2023-06-11 18:56:37 +02:00
Christoffer Lerno
4c1edfb941
Dev ( #777 )
...
* The new @if directive.
2023-06-10 23:16:28 +02:00