Pierre Curto
c060569599
add tests for Mutex ( #925 )
...
* std/lib: add tests for Mutex
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/collections: add missing import
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* std/collections: add RingBuffer
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-08-13 17:39:09 +02:00
Christoffer Lerno
d83f591184
Check for mutex initialization. Fix missing check on optional for certain macro situations.
2023-08-12 11:55:49 +02:00
Christoffer Lerno
b6f302d1c6
Fix issues with thread, add some simple test.
2023-08-12 02:16:46 +02:00
Pierre Curto
a846ab9cc0
std/lib/threads: fix typo
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-08-11 21:08:17 +02:00
Christoffer Lerno
f0d4c4d2ce
Ensure type is checked before analysis of compound literals. #919
2023-08-11 18:15:39 +02:00
Christoffer Lerno
3e765a3f3e
Hash maps now copy keys if keys are copyable.
2023-08-10 21:14:24 +02:00
Christoffer Lerno
356b6bb1b7
Fixed test.
2023-08-10 19:09:00 +02:00
Christoffer Lerno
951a9f2b43
Fix of ++ and -- on bitstructs.
2023-08-10 18:01:50 +02:00
Christoffer Lerno
6d870fbef0
Fix for arithmetic promotion of aliases. Some work towards $exec scripting.
2023-08-10 17:14:29 +02:00
Christoffer Lerno
01a89e2145
Fix bug where library source files were sometimes ignored.
2023-08-09 21:34:58 +02:00
Christoffer Lerno
6df6d2c084
Update type changes.
2023-08-09 02:06:50 +02:00
Christoffer Lerno
2ca67d1489
Fix void[] -> char[] cast.
2023-08-09 01:03:06 +02:00
OdnetninI (Eduardo José Gómez Hernández)
eec6ce2210
README: Updated instructions for AUR ( #915 )
...
* README: Updated instructions for AUR
* README: Missing space
2023-08-08 16:42:42 +02:00
Eduardo José Gómez Hernández
c44a0528df
Tests:std/lib/io/file: Added unit tests for read_any and write_any
2023-08-08 10:12:36 +02:00
Christoffer Lerno
5b5bc7fdbb
Fix void[] -> char[] cast.
2023-08-07 20:58:20 +02:00
Christoffer Lerno
68aadc958f
Added read_any/write_any.
2023-08-07 19:55:10 +02:00
Christoffer Lerno
91bb31856b
Introduce initial $exec.
2023-08-07 19:43:57 +02:00
Christoffer Lerno
a864822a89
Do not assert when encountering resolved non-identifier access child expressions. Addresses #913
2023-08-04 15:50:21 +02:00
Christoffer Lerno
a1a0958415
Prevent parameters to end with comma.
2023-08-03 14:37:23 +02:00
Christoffer Lerno
def97eea9d
Fixes member visibility for anonymous bitstruct. Bitstruct member attributes works. Anonymous bitstruct assignment fixed.
2023-08-03 01:00:30 +02:00
Pierre Curto
e4febe62ef
lib/std/io: make PathWalker return an optional
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-08-02 23:05:28 +02:00
Christoffer Lerno
fc0973f378
Fix issue casting an untyped list. Addresses #908 .
2023-08-02 23:03:50 +02:00
Pierre Curto
9b1c75d061
std/lib: simplify String.{,r}index_of and improve speed for the index… ( #907 )
...
* std/lib: simplify String.{,r}index_of and improve speed for the index_of one
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/collections: add EnumMap.get_ref
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-08-02 11:43:58 +02:00
Christoffer Lerno
09bb7d3525
Fix issue with type_info not being completely poisoned when encountering an error. Fixes #905
2023-08-01 12:26:49 +02:00
Pierre Curto
701d6a0746
std/lib/io: add Scanner ( #904 )
...
* std/lib/io: add Scanner
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/core: use existing methods in String.convert_ascii_to_{lower, upper}
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-08-01 10:47:21 +02:00
Christoffer Lerno
a0df1fd728
Add missing keys to project.
2023-07-31 21:15:05 +02:00
Christoffer Lerno
6a3e618ffd
Another overeager type resolution removed.
2023-07-31 14:19:41 +02:00
Christoffer Lerno
d63bc10d74
Fix issue with type properties.
2023-07-31 14:02:20 +02:00
Christoffer Lerno
4fd45700a2
Fix issue with type properties.
2023-07-31 13:55:53 +02:00
Christoffer Lerno
f0c0efca8d
Remove eager resolve.
2023-07-31 12:46:51 +02:00
Christoffer Lerno
72f5bac346
When a member is checked, still add it to the environment. Addresses #903 .
2023-07-31 12:35:41 +02:00
Christoffer Lerno
20699c1262
Fix missing ]
2023-07-31 11:00:25 +02:00
Christoffer Lerno
8a335fc64c
Updated stack trace. This addresses #898 .
2023-07-31 10:57:56 +02:00
Christoffer Lerno
8a9522a363
Updated release notes.
2023-07-31 10:43:15 +02:00
Christoffer Lerno
9315443866
Fix issue where lambdas were copied incorrectly from generics. This addresses #900 .
2023-07-30 21:12:02 +02:00
Christoffer Lerno
95cb2cc28e
Removal of def Boo = Bar<int>; Delay array checking for flexible array. Replace resolve_fn_ptr with resolve_type_structure. Resolve type structure before entering initializers.
2023-07-30 19:59:26 +02:00
Christoffer Lerno
151fc83815
Fix issue with attribute argument resolution.
2023-07-30 16:46:31 +02:00
Christoffer Lerno
b759abc954
Fix to DString reserve.
2023-07-29 22:42:55 +02:00
Pierre Curto
6808a38c9f
add std::io::stream::ByteBuffer; fix std::io::Path::walk ( #895 )
...
* lib/std/io/stream: add some inlines
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/io/stream add ByteBuffer
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/io/path: fix free of paths in walk
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/bits: remove unnecessary receiver type
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-29 21:21:45 +02:00
Christoffer Lerno
108b2244d8
Fix bug in aligned_realloc, fixes issue when a type is not resolved before the cast. #897
2023-07-28 22:21:23 +02:00
Christoffer Lerno
283a95dea2
Fix of issue where generic faults and enums would not get the "parent" id correctly fixed up. This addresses #896 .
2023-07-28 21:49:22 +02:00
Christoffer Lerno
1219e8ba37
Fix accidental tracing preventing test from working.
2023-07-28 11:14:38 +02:00
Christoffer Lerno
ada3ea08fc
Some initial parse output. Enforce handling of optionals. Fix issue where constants were folded despite the fact that they shouldn't be. Fix bug related to return foo() where foo() returns void!. ( #893 )
2023-07-27 22:58:41 +02:00
Pierre Curto
d0fa473d61
lib/std/io: assert in Formatter.out_str on "Invalid enum" if an enum value is out of range ( #892 )
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-27 21:18:31 +02:00
Christoffer Lerno
7b0408f79d
Adding feature flags.
2023-07-26 23:28:11 +02:00
Christoffer Lerno
c18526f10a
Fix of nested union/struct initialization. Fixes #886 .
2023-07-26 21:12:04 +02:00
Christoffer Lerno
499c82b089
Updated indentation to C3 standard.
2023-07-26 14:01:24 +02:00
Pierre Curto
a376d8e2bf
add ERRNO for macOS, improve net error messages ( #885 )
...
* lib/std/libc: add ERRNO values for macOS
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/net: improve error messages
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-26 13:41:35 +02:00
Pierre Curto
59b077223b
use IoError.UNSUPPORTED_OPERATION instead of asserts; improve Path.walk
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-26 13:05:12 +02:00
Christoffer Lerno
9c503cf6fd
Update to handle LLVM 18 part 2
2023-07-26 01:19:06 +02:00