Christoffer Lerno
ca87ff066b
Fix hello world.
2025-03-05 19:28:12 +01:00
Christoffer Lerno
c0b80eccad
Change @return! syntax to require ":" after faults. Update all contracts to consistently use ":" before the description.
2025-03-05 17:11:45 +01:00
Christoffer Lerno
cf0405930e
Fix case where occasionally atomic_load would miscompile.
2025-03-05 01:58:07 +01:00
Christoffer Lerno
28b1e4d182
Fix issue when doing boolean atomic operations.
2025-03-04 16:58:27 +01:00
Christoffer Lerno
9c65098a91
Fix missing "$switch" update.
2025-03-04 16:39:20 +01:00
Christoffer Lerno
2439405e70
- $foreach "()" replaced by trailing ":" $foreach ($x, $y : $foo) -> $foreach $x, $y : $foo:
...
- `$for` "()" replaced by trailing ":" `$for (var $x = 0; $x < FOO; $x++)` -> `$for var $x = 0; $x < FOO; $x++:`
- `$switch` "()" replaced by trailing ":" `$switch ($Type)` -> `$switch $Type:`
- Empty `$switch` requires trailing ":" `$switch` -> `$switch:`
2025-03-04 16:13:47 +01:00
Jonas
46b52ec9ce
Fix Atomic.max ( #2011 )
...
* Fix atomic max and comments in std::atomic
* Updates to `Atomic` to handle distinct types and booleans.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-03-04 15:39:03 +01:00
Nikita Pivkin
c6c78e7709
fix broken link to macOS installation section
...
Signed-off-by: Nikita Pivkin <nikita.pivkin@smartforce.io >
2025-03-04 14:03:14 +01:00
Zack Puhl
177df6321a
add test file for wide string constants
...
add full UTF-8 to wide-str language capabilities
move wstr language constant expressions to builtins and adjust test cases
2025-03-04 13:46:59 +01:00
Christoffer Lerno
d2a461d270
Updated release notes.
2025-03-04 10:31:47 +01:00
Nikita Pivkin
7a848416f7
docs: update 'Building via Docker' section
...
Signed-off-by: Nikita Pivkin <nikita.pivkin@smartforce.io >
2025-03-04 10:30:32 +01:00
Erik Bäckman
83bc24f58c
Fix libc::stat on FreeBSD (x86_64)
2025-03-04 10:20:13 +01:00
Christoffer Lerno
0ef99c23a8
Allow swizzling assign, eg. abc.xz += { 5, 10 };
2025-03-04 02:18:24 +01:00
Christoffer Lerno
0a905d8458
Change all hash functions to have a common hash function.
2025-03-03 20:07:02 +01:00
Christoffer Lerno
261bfb97c6
Rename length_sq to sq_magnitude
2025-03-03 18:47:55 +01:00
Christoffer Lerno
cc94199131
Remove Vec2 and other aliases from std::math.
2025-03-03 18:13:39 +01:00
Christoffer Lerno
0925010c07
Removal of any-switches
2025-03-03 15:02:25 +01:00
Christoffer Lerno
13f824e349
Add ONHEAP for List and HashMap
2025-03-03 12:20:18 +01:00
Christoffer Lerno
3d6f28919c
Aliases were incorrectly considered compile time constants.
2025-03-03 11:35:18 +01:00
Christoffer Lerno
910fc6e364
Post and pre-decrement operators switched places for vector elements. #2010 .
2025-03-03 01:21:01 +01:00
Christoffer Lerno
c40198b016
- new_* functions in general moved to version without new_ prefix.
...
- `string::new_from_*` changed to `string::from_*`.
- `String.to_utf16_copy` and related changed to `String.to_utf16`.
- `String.to_utf16_tcopy` and related changed to `String.to_temp_utf16`
- `mem::temp_new` changed to `mem::tnew`.
- `mem::temp_alloc` and related changed to `mem::talloc`.
- `mem::temp_new_array` changed to `mem::temp_array`.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
b35aafd3d5
Update for NoSanitize on globals.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
222bfb158b
Remove deprecated functions.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
61c67c8f23
Fix address sanitizer to work on MachO targets (e.g. MacOS).
2025-03-03 00:32:20 +01:00
Christoffer Lerno
2b90500c22
Remove container sanitizer unless using the LIBC allocator.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
74a6e9f0c0
Add struct swizzle test.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
fbac2d6df3
Formatting updates.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
8f0de40b3d
Update nix.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
8bb99c6f81
Fixes to examples and MSVC compilation.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
cc5f9c6aab
Update CI for 0.7
2025-03-03 00:32:20 +01:00
Christoffer Lerno
fb6b048bd0
Remove operator(@construct). Fix sample.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
2a895ec7be
First 0.7 update, removing all deprecated features.
2025-03-03 00:32:20 +01:00
Christoffer Lerno
cff6697818
Fix CI for Windows
2025-03-02 01:25:16 +01:00
Christoffer Lerno
453cd295e2
Bundle README
2025-03-02 00:01:56 +01:00
Christoffer Lerno
55c88408be
Remove some deprecated use.
2025-03-01 23:58:28 +01:00
Christoffer Lerno
f52c2a6f96
Update information about latest version.
2025-03-01 23:24:17 +01:00
Christoffer Lerno
c430ff5d09
Retry release.
2025-03-01 21:03:21 +01:00
Christoffer Lerno
dd8e280835
Release 0.6.8
v0.6.8
2025-03-01 18:47:08 +01:00
Christoffer Lerno
34c2d8ce77
Fix regression with scripts.
2025-03-01 17:24:38 +01:00
Christoffer Lerno
28b9ff8016
Fixed some additional errors due to the BuildParseContext refactoring.
2025-03-01 12:48:22 +01:00
Christoffer Lerno
76f226f536
Fixed error and poor error message when using an invalid target name.
2025-03-01 12:30:36 +01:00
Christoffer Lerno
1b0ac13d76
Deprecation of operator(@construct)
2025-02-28 10:39:08 +01:00
Christoffer Lerno
f134b8b67a
Swizzling an inline vector in a struct would cause a crash.
2025-02-27 21:49:20 +01:00
Christoffer Lerno
33b05bcfeb
More deprecations in lib6, and updates to lib7
2025-02-27 11:10:41 +01:00
Christoffer Lerno
6d3c1f5d2f
Fix final? issues with -o.
2025-02-26 02:51:42 +01:00
Christoffer Lerno
96943ca66f
Check exe and lib output so -o works with directories. Removed construct forms from Maybe.
2025-02-26 02:35:28 +01:00
Christoffer Lerno
374d73af12
Cleanup.
2025-02-26 01:49:19 +01:00
Adversing
81397f0726
Add --print-env option to c3c ( #1880 )
...
* Add `--build-env` for build environment information.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-02-26 01:48:03 +01:00
Aleksandr Vedeneev
0c33b78a2f
Test runner args #1967 ( #1988 )
...
* harmonized testrun arguments with c3c --test-* naming
added --test-quiet option
added --test-noleak to disable tracking allocator mem leak detection
added --test-nocapture - tests can print out everything as they run
* Move changes to lib7
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-02-26 00:49:21 +01:00
Christoffer Lerno
ee5b9e5826
@if declarations were missing from -P output #1973 .
2025-02-25 17:00:47 +01:00