Christoffer Lerno
4d84811629
Fixed test.
2024-10-31 21:41:50 +01:00
Christoffer Lerno
cd4fd02ee3
Sometimes generating introspection info would not be in the global scope causing a crash #1586 .
2024-10-31 21:27:46 +01:00
Christoffer Lerno
b7a23e558a
Fixes with error handling recursive @tag #1583 .
2024-10-30 20:57:17 +01:00
Christoffer Lerno
4be08ee0bd
string::new_struct_to_str and io::struct_to_format to dump struct data. io::print will now print structs.
2024-10-26 21:00:07 +02:00
Christoffer Lerno
cc6a24cf80
Null-check function pointer invocation #1573 .
2024-10-26 18:41:47 +02:00
Christoffer Lerno
b187d5a3fc
Named vector component access would not fold at compile time. #1574
2024-10-26 13:22:35 +02:00
Walther Chen
fd1898b70a
copy out keys also in HashMap.copy_keys ( #1569 )
...
* copy out keys also in HashMap.copy_keys
* test for copying keys out
2024-10-26 01:57:00 +02:00
Walther Chen
8ce63106b9
Update .editorconfig to reflect current style ( #1571 )
...
* Update .editorconfig to reflect current style
* .editorconfig use tabs for python
* update msvc_build_libraries.py from two-space to tab indent
* update test/src/tester.py from 4-space to tab indent
2024-10-25 17:44:32 +02:00
Christoffer Lerno
c0c571ffe0
Incorrect error message when $eval is provided an invalid string. #1570
2024-10-25 10:31:45 +02:00
Christoffer Lerno
d344cc6020
(uptr)&((Foo*)null).a incorrectly inserts a null check. #1544 .
...
Fix regression handling typedefs from generic modules.
2024-10-22 12:15:39 +02:00
Christoffer Lerno
9100638400
&self argument not implicitly null checked. #1556 .
2024-10-21 00:45:40 +02:00
Christoffer Lerno
d2085654a7
if (try foo) was handled incorrectly inside a defer.
2024-10-20 18:30:03 +02:00
Christoffer Lerno
78d5939d9d
Show error when declarations do not start with fn in interfaces. #1565 . Some added functionality to lists and time.
2024-10-18 17:10:00 +02:00
Christoffer Lerno
c013006671
Improve infer conversions on constants, e.g. ZString a = foo ? "a" : "b"; #1561
2024-10-17 01:20:52 +02:00
Christoffer Lerno
705856d51a
- Disallow casting a void* to any or an interface, unless it is null.
...
- Defer resolution of declarations when looked up in `def` aliased #1559 .
2024-10-16 12:50:47 +02:00
Christoffer Lerno
31cd839063
Switch to <* *> docs. Fix issue with dynamically loaded C3 libs with other C3 code.
2024-10-14 02:14:34 +02:00
Christoffer Lerno
0da7f1b4de
Wrong error message for interface methods with body #1536 .
2024-10-12 02:51:07 +02:00
Christoffer Lerno
8ce171877e
Also weaken libc and generic templates.
2024-10-12 02:13:35 +02:00
Christoffer Lerno
a38c7f6e49
Fix tests.
2024-10-12 01:19:15 +02:00
Christoffer Lerno
0cf93a8c32
Fix test.
2024-10-11 22:13:53 +02:00
Christoffer Lerno
cba25710fe
Refactor and unify linker visibility and fix issues with weak stdlib.
2024-10-11 21:45:44 +02:00
Koni Marti
2739c86881
Add csv unit tests
...
Add unit tests for std::encoding::csv.
Signed-off-by: Koni Marti <koni.marti@gmail.com >
2024-10-11 16:11:45 +02:00
Christoffer Lerno
efeb9e627e
Interfaces not correctly copied with generics #1545 .
2024-10-11 13:26:22 +02:00
Christoffer Lerno
8e24f15d58
Cannot use void as a generic parameter #1546 . Interfaces now support .ptr and .type directly without casting to any.
2024-10-11 12:10:35 +02:00
Christoffer Lerno
a91ddd40dd
Infer now works across ternary. Crash returning struct or vector from function using ternary expression #1537 .
2024-10-10 14:44:40 +02:00
Christoffer Lerno
967f14148f
Bug when defers and $if were combined in a macro, which would cause miscompilation.
2024-10-10 13:42:12 +02:00
Christoffer Lerno
7a6544b17c
Constant bytes <=> char[] conversion should work #1514
2024-10-09 19:38:06 +02:00
Christoffer Lerno
c1266e9d06
Compiler error when any/interface initialized using {} #1533 .
2024-10-09 13:12:40 +02:00
Christoffer Lerno
9f10996ac7
Bug when a continue is copied in a defer.
2024-10-08 22:13:30 +02:00
Denis Palashevskii
217151be8d
fix int formatting in std::collections::object
2024-10-05 14:03:27 +02:00
Christoffer Lerno
cfc1d0d8f8
Incorrect subscript resolution #1519
2024-10-04 20:50:48 +02:00
Christoffer Lerno
6fabecac1a
Better error for int Foo(int a) declarations #1516
2024-10-04 18:15:06 +02:00
Christoffer Lerno
f95769541d
Better error for int a[4] = .... #1518
2024-10-04 17:52:32 +02:00
Christoffer Lerno
fa4ca7944f
- Add read/write to stream with big endian ints.
...
- Move accidently hidden "wrap_bytes".
2024-10-03 20:42:25 +02:00
Christoffer Lerno
02e9bfaf31
Separate const slice. Fix #1489 . Fix const slice appending. Remove unintended print of char[] as String. Support const conversion of array -> slice.
2024-10-03 15:04:33 +02:00
Fernando López Guevara
131a783e89
feat(hash): added test for sha256
2024-10-02 16:55:17 +02:00
chri-k
2233f24c8f
Add variants of DString.insert_at to match .append ( #1510 )
2024-10-02 10:22:59 +02:00
Christoffer Lerno
607a625641
Updated bigint.
2024-10-02 01:13:34 +02:00
Christoffer Lerno
9b49d19224
DString reverse and an initial BigInt implementation (untested),
2024-10-01 22:51:48 +02:00
Christoffer Lerno
0ea423d022
Foreach over distinct iterable would ignore operator(len).
2024-10-01 13:00:54 +02:00
Christoffer Lerno
5918d5120f
Foreach over distinct pointer failed to be caught as error #1506 .
2024-09-30 21:32:33 +02:00
DanyDollaro
0d73f2fffa
Added mutex tests ( #1501 )
...
* Added mutex tests. Add errorcheck in safe mode for Posix threads. Make non-recursive locks fail when used recursively on Windows. Fix thread pool tests. Simple locking count.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2024-09-30 20:57:16 +02:00
Christoffer Lerno
c8018c5543
Added generic PBKDF2 implementation.
2024-09-30 00:07:49 +02:00
Christoffer Lerno
a00fce516e
Added test and releasenotes for #1498 .
2024-09-29 11:23:40 +02:00
Christoffer Lerno
cc130e04dd
Added MD5 and crypto::safe_compare.
2024-09-28 22:16:25 +02:00
Christoffer Lerno
eeba5f020a
Bad error on parameterized type without parameter #1495 .
2024-09-28 19:44:57 +02:00
Christoffer Lerno
ded8bce8e6
Change no recursive import to use attribute.
2024-09-28 13:48:43 +02:00
Alex Ling
fe9e434020
Fix incorrect to_gmt_offset result
2024-09-28 13:23:48 +02:00
Rachad ADEKAMBI
2146a76795
fix typo#1492 ( #1493 )
...
* fix typo#1492
* Fix missing update in sema_decls
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2024-09-28 00:22:15 +02:00
Christoffer Lerno
a99e4b602a
Error when slicing a struct with an inline array #1488 .
2024-09-27 13:10:48 +02:00