Christoffer Lerno
10fc94aaa7
Add RISCV asm print.
2025-07-07 23:52:43 +02:00
Christoffer Lerno
0835bada39
Add --list-asm to view all supported asm instructions.
2025-07-07 23:49:39 +02:00
Christoffer Lerno
277af1a2b6
Fix rdtsc instruction.
2025-07-07 19:02:13 +02:00
Christoffer Lerno
5b835bec3e
Fix to codegen when using a bitstruct constant defined using a cast with an operator #2248 .
2025-07-07 17:09:32 +02:00
Christoffer Lerno
dc23cef59a
LLVM 20 compatibility for test.
2025-07-07 03:01:09 +02:00
Christoffer Lerno
098079d317
Fix analysis error compiling. Fix $define for updated shift.
2025-07-07 02:50:17 +02:00
Christoffer Lerno
1ab57ecf20
Improve contract for readline. #2280
2025-07-07 02:42:48 +02:00
Christoffer Lerno
808ab56545
- Bit shift operation fails with inline uint enum despite matching underlying type #2279 .
2025-07-07 02:30:54 +02:00
Christoffer Lerno
19acdc7a19
Do not do certain implicit conversions on enums in binary expression.
2025-07-06 21:44:06 +02:00
Christoffer Lerno
e15fdc709f
Improve error message when doing a rethrow in a function that doesn't return an optional.
...
Array indices are now using int64 internally.
2025-07-06 20:20:42 +02:00
Disheng Su
457244e3de
Fix json parser ( #2272 )
...
* Fix json parser number
* Fix json parser leading zero
* Fix json parser with duplicated keys
* Fix json parser with trailing characters
* Fix json parser: set recursive depth to 128
* Fix json parser: skip comment to false
* Fix json parser: reject number trailing with null
* Make max depth configurable. Simplify with defer catch. Accept `2.`
* Make max depth configurable. Simplify with defer catch. Accept `2.`
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-06 03:07:46 +02:00
Ero Mrinin
d5559ecafd
Tuple update ( #2235 )
...
* 'next_float' macro patch
More optimized implementation.
* tuple-type update
* U suffix in 'next_float'
* Do not add triplet, quadruplet, keep Tuple but deprecate. Add unpack
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-06 02:08:59 +02:00
Kiana
802fbfcf1e
Add ansi.c3 for AnsiColor support ( #2261 )
...
* Add ansi.c3 for AnsiColor support
* Added tests
updated functions to macros
added formatting codes
* Fixed indentation
* Update names. Add plain rgb version. Add runtime colors.
* Update indentation, add 21-29
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-06 01:37:54 +02:00
Christoffer Lerno
a20e74c401
Fixes to thread local pointer handling.
2025-07-06 00:22:21 +02:00
Christoffer Lerno
7cdb1ce9eb
Catch accidental foo == BAR; where foo = BAR; was most likely intended. #2274
2025-07-05 20:40:55 +02:00
Christoffer Lerno
0d170a70b6
Make to_float more tolerant to spaces.
2025-07-05 19:42:44 +02:00
Christoffer Lerno
b19cd0b87d
Casting a fault to a pointer would trigger an assert.
2025-07-05 01:38:44 +02:00
Christoffer Lerno
50efc95c83
Update sponsors
2025-07-05 00:57:23 +02:00
Christoffer Lerno
fa50268b4e
Update max memory.
2025-07-04 17:46:02 +02:00
Christoffer Lerno
ae1d51d089
--max-mem now works correctly again.
2025-07-04 17:06:52 +02:00
Christoffer Lerno
1b8355ff07
Update error message on invalid operator.
2025-07-04 14:33:06 +02:00
Christoffer Lerno
f32afb70b8
Add contract to create thread.
2025-07-04 11:02:23 +02:00
Christoffer Lerno
60d96ca7b7
Initialize pool correctly in print_backtrace.
2025-07-04 02:43:49 +02:00
Christoffer Lerno
014f734260
Remove unused code.
2025-07-04 02:26:01 +02:00
Christoffer Lerno
de4963ef95
Add --echo-prefix to edit the prefix with $echo statements. Supports {FILE} and {LINE}
2025-07-04 01:09:02 +02:00
ryuukk
e7d3e60ebd
Disable libxml2 dependency on linux ( #2268 )
...
* Disable libxml2 depdendency
* All the linuxes
2025-07-04 00:14:10 +02:00
Christoffer Lerno
a46f73ad24
Const slice indexing was not bounds checked.
2025-07-03 23:53:01 +02:00
Christoffer Lerno
759bc1d909
Const slice lengths were not always detected as constant.
2025-07-03 23:32:02 +02:00
Christoffer Lerno
c79c9dac8d
Inline r / complex for complex numbers fixed.
2025-07-03 23:04:16 +02:00
Christoffer Lerno
635d4babc4
Fix tests.
2025-07-03 22:37:23 +02:00
Christoffer Lerno
9b3b4ae8be
$for ct-state not properly popped.
2025-07-03 22:20:14 +02:00
Christoffer Lerno
b3e7f074e9
Forgot the fix...
2025-07-03 15:46:35 +02:00
Christoffer Lerno
ee1ed73fc5
Non-const macros may not return untyped lists.
2025-07-03 15:45:14 +02:00
Christoffer Lerno
10e11fb742
Better detect offending cast.
2025-07-03 15:14:24 +02:00
Christoffer Lerno
8b47317ec7
Fix issue with labelled break inside of a $switch.
2025-07-03 13:11:12 +02:00
Christoffer Lerno
04626b72cd
Check up the hierarchy when considering if an interface cast is valid #2267 .
2025-07-03 12:36:35 +02:00
Christoffer Lerno
2151cd0929
Missing bounds check on upper bound with const ranges foo[1:3].
2025-07-02 13:12:49 +02:00
Christoffer Lerno
93ded9c1e0
Switch case with const non-int / enum would be treated as ints and crash. #2263
2025-07-02 12:26:26 +02:00
Christoffer Lerno
20964b43ce
Fix of const enum resolution order #2264
2025-07-02 12:01:52 +02:00
Christoffer Lerno
af192354fd
Comparing a null ZString with a non-null ZString would crash.
2025-07-02 01:22:34 +02:00
Christoffer Lerno
ad48637cbb
Correctly reject interface methods type and ptr.
2025-07-01 20:08:46 +02:00
Christoffer Lerno
89507bd335
Improved error messages on missing qualifier on enum value. #2260
2025-07-01 17:08:12 +02:00
Christoffer Lerno
21533ffee4
Update sponsors.
2025-07-01 16:15:38 +02:00
Christoffer Lerno
4502a9286c
Fix typeid on compile time types.
2025-07-01 00:27:17 +02:00
Christoffer Lerno
ba11511c69
Update release notes.
2025-07-01 00:03:28 +02:00
Christoffer Lerno
965ef19a5b
Allow $typeof to return a compile time type.
2025-07-01 00:02:12 +02:00
Christoffer Lerno
8f86b331c1
Fix --use-old-enums
2025-06-30 23:10:32 +02:00
Christoffer Lerno
59a1590955
Hex string formatter check incorrectly rejected slices.
2025-06-30 21:41:52 +02:00
Christoffer Lerno
fad87b294b
mkdir/rmdir would not work properly with substring paths on non-windows platforms.
2025-06-30 21:41:52 +02:00
Christoffer Lerno
13bb2b6690
Const Enums From / to ordinal using casts is back. Add "--use-old-enums", deprecating lookup.
2025-06-30 21:41:52 +02:00