Christoffer Lerno
16aadae9bd
Remove allocator argument
2025-01-21 22:25:42 +01:00
Snikimonkd
b7ffa3b17c
[feat] add test tmp files to gitignore
2025-01-21 12:44:13 +01:00
Christoffer Lerno
772b20c26b
Fix find_msvc
2025-01-21 01:26:55 +01:00
Christoffer Lerno
c7eb0024c7
Error on switch case fallthough if there is more than one newline #1849 .
2025-01-21 00:38:24 +01:00
Christoffer Lerno
1a2dcd07ee
Add win-debug setting to be able to pick dwarf for output #1855 .
2025-01-21 00:13:11 +01:00
Christoffer Lerno
ab32231cd1
Added releasenotes.
2025-01-20 23:51:54 +01:00
Snikimonkd
a0192a0116
[FEAT] add golang like channel ( #1843 )
...
* [feat] add golang like channels
* Updated new_init/init. Some fixes for init.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-20 23:51:00 +01:00
Christoffer Lerno
13e3ecbde2
Tab and style
2025-01-20 23:31:49 +01:00
Christoffer Lerno
fefe6d1342
Filter $exec output from \r, which otherwise would cause a compiler assert #1867 .
2025-01-20 22:32:53 +01:00
Bram Windey
bbef5656a5
Fix 'strtul' to 'strtoul'
2025-01-20 21:45:15 +01:00
Christoffer Lerno
ad3cd88350
Fix dues to crash when converting a const vector to another vector #1864 .
2025-01-20 16:26:26 +01:00
Christoffer Lerno
5183370773
Update mingw llvm/lld
2025-01-20 14:53:59 +01:00
cd-n0
f74891d214
Fix linux-crt and linux-crtbegin not getting recognized as a project parameter ( #1865 )
...
* Fix `linux-crt` and `linux-crtbegin` not getting recognized as a project parameter
* Update releasenotes.md
2025-01-20 14:48:41 +01:00
Christoffer Lerno
d2885faa79
Further cleanup.
2025-01-20 04:09:47 +01:00
Christoffer Lerno
c59d47f652
Keep the old behaviour which made the script detect bugs (although indirectly!)
2025-01-20 03:43:12 +01:00
Christoffer Lerno
f863c4ae84
Fix incorrect arg type failing MSVC compilation. Missing ASSERT updated. Update python script. Fix bug printing error duplicate generic module.
2025-01-20 03:35:49 +01:00
Christoffer Lerno
bb2a2526e4
Refactoring access + some macro renaming.
2025-01-20 02:44:39 +01:00
Christoffer Lerno
f9b86226a8
Refactoring identifier and catch unwrap into two different nodes.
2025-01-19 13:23:21 +01:00
Christoffer Lerno
a4f5c97150
Fix typo
2025-01-18 23:53:32 +01:00
Christoffer Lerno
5de03abe0d
Concatenating an const empty slice with another array caused a null pointer access.
2025-01-18 23:50:31 +01:00
Christoffer Lerno
c3f5806aa3
Const strings and bytes were not properly converted to compile time bools.
...
Contracts @require/@ensure are no longer treated as conditionals, but must be explicitly bool.
2025-01-18 23:24:55 +01:00
Christoffer Lerno
5a36f0bc16
Fix issue with @const where the statement $foo = 1; was not considered constant.
2025-01-18 22:40:58 +01:00
Christoffer Lerno
c5dbbf9ff7
Compiler allows a generic module to be declared with different parameters #1856 .
2025-01-17 23:24:42 +01:00
Christoffer Lerno
304b604652
Added weakly linked __powidf2
2025-01-17 17:42:39 +01:00
BWindey
b787985bf7
Improve c3c --help/-hh and c3c project ( #1851 )
...
* Fix missing newline and incorrect indentation for 'c3c project' help on fetch
* Use a ternary trick :D
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-17 12:23:15 +01:00
Christoffer Lerno
d72ec09cee
Fix lack of location for reporting lambdas with missing return statement #1857 .
2025-01-17 11:55:56 +01:00
Christoffer Lerno
d4bd68c188
Fix bug in SHA1 for longer blocks #1854 .
2025-01-17 01:10:40 +01:00
Christoffer Lerno
f51bfa5a44
Update latest version.
2025-01-16 22:45:48 +01:00
Christoffer Lerno
3e4d1de70e
Fix issue requiring prefix on a generic interface declaration.
2025-01-16 22:09:53 +01:00
Christoffer Lerno
721aaa28aa
Added '%h' and '%H' for printing out binary data in hexadecimal using the formatter.
2025-01-16 01:06:57 +01:00
Christoffer Lerno
15503a9054
Release candidate 0.6.6
v0.6.6
2025-01-15 22:10:48 +01:00
Taylor W
660654f9e0
math_tests: pow test ( #1842 )
...
* math::nolibc: replaced code with word macros
* math_tests: pow test
Added test for pow and added more test points for the exp and log tests.
2025-01-15 13:35:18 +01:00
Christoffer Lerno
2f7d18bfb8
Quicksort and insertsort incorrectly allowing arrays and vectors by value. #1845 .
2025-01-15 13:31:29 +01:00
Christoffer Lerno
29a6a0db32
Fix unavailable LLVM int128 alignment.
2025-01-15 11:49:33 +01:00
Christoffer Lerno
7b2fe92241
Improve error message on incorrect inner struct/union name #1847 .
2025-01-15 10:54:50 +01:00
Christoffer Lerno
70da1f748a
Enum associated declarations accidentally allowed declaration in function style. #1841
2025-01-14 23:06:17 +01:00
Christoffer Lerno
3033295884
Fix bug with enums with jump tables #1840 also affecting ranged enums entries.
2025-01-14 22:47:12 +01:00
Christoffer Lerno
8c12f92aff
Make stringify to recursively enter #hash expressions #1834 .
2025-01-14 12:40:42 +01:00
Christoffer Lerno
76da7936e5
Fix issue with inferred vector output to JSON. #1839
2025-01-14 12:25:49 +01:00
Max
2a924ae3b0
fix the link order to support LLVM_20 change ( #1838 )
...
* fix the link order to support LLVM_20 change
* Update CI to use LLVM 20
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-14 11:23:40 +01:00
Christoffer Lerno
5ba9acad5d
Fix bug where &i[0] = null was not detected to be an error. #1833
2025-01-14 01:43:59 +01:00
Christoffer Lerno
4cb984e56d
Prevent temp arena scribbling from causing an asan warning. #1825
2025-01-13 16:58:55 +01:00
Christoffer Lerno
70606a2bbe
Report the correct type as not having a method when access fails #1828 .
2025-01-13 14:11:51 +01:00
Taylor W
259112e178
math: macros to set floating-point numbers with uint ( #1826 )
...
* math: Setting the bits of floating-point numbers
Added macros which set all 32 bits of a float, the lower 32 bits of
a double, and the upper 32 bits of a double. Some changes were made to
older code to use these macros.
* Replaced code with bitsetting macros in __tan.c3 and tan.c3
* math: tests for word macros and release notes
Tests were written for the word macros, which include getting and
setting a float with a uint and getting and setting the high or low word
of a double with a uint.
Release notes were updated to include the word setter macros.
2025-01-13 13:37:49 +01:00
Christoffer Lerno
a2cde1e072
Correctly handle known length slices with index checks... and now works with $defined too.
2025-01-13 13:20:59 +01:00
Christoffer Lerno
de04c52379
Correctly handle known length slices with index checks.
2025-01-13 02:30:35 +01:00
Christian Buttner
27970085e5
Fix formatter output length calculation.
2025-01-12 22:54:43 +01:00
Jefferson Amstutz
e0afc0f9ea
use WORKING_DIRECTORY to ensure stability of finding the git hash
2025-01-12 22:53:16 +01:00
konimarti
0e44e63fa8
net/url: implement url encoding (RFC 3986) ( #1795 )
...
* net/url: implement url encoding (RFC 3986)
Implement url percent-encoding and -decoding functions according to RFC
3986. Add unit tests.
Link: https://datatracker.ietf.org/doc/html/rfc3986
* net/url: ensure correct encoding of URL components
Add encoding and decoding methods to the Url struct components according
to RFC 3986.
An Url can be parsed from a String with `new_parse()` or `temp_parse()`.
The parsed fields are decoded. The only field that is not decoded is
`raw_query`. To access the decoded query values, use
`Url.query_values()`.
`Url.to_string()` will re-assemble the fields into a valid Url string
with proper percent-encoded values.
If the Url struct fields are filled in manually, use the actual
(un-encoded) values. To create a raw query string, initialize an
`UrlQueryValues` map, use `UrlQueryValues.add()` to add the query
parameters and, finally, call `UrlQueryValues.to_string()`.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-12 22:52:25 +01:00
Adversing
2623d7d525
Feat: Added exp, log and pow functions as requested in #1632 ( #1781 )
...
* Feat: Added exp, log and pow functions as requested in #1632
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-01-12 22:50:10 +01:00