Christoffer Lerno
a0309855d7
Added @link attribute.
2024-03-11 18:10:40 +01:00
Christoffer Lerno
546754e803
'output' directory for projects was incorrect in templates.
2024-03-08 15:34:04 +01:00
Christoffer Lerno
86461909d3
Remove initial './' in Win32 paths when running a binary.
2024-03-04 17:04:57 +01:00
Christoffer Lerno
feebd2a733
Bug in time.add_seconds #1162 .
2024-03-01 12:09:47 +01:00
Christoffer Lerno
75e7176675
Bitstruct cast to other bitstruct by way of underlying type would fail #1159 .
2024-02-26 23:51:14 +01:00
Christoffer Lerno
bae5d9c7f8
Improved checks of aliased "void".
2024-02-26 18:45:55 +01:00
Christoffer Lerno
4ba033fc84
Fix of int.min incorrect behaviour #1154 .
2024-02-26 18:13:40 +01:00
Christoffer Lerno
f0dd0e8f92
Fix of CT named arguments #1156 .
2024-02-26 17:47:50 +01:00
Christoffer Lerno
7ea3d230bb
0.5.5 features ( #1151 )
...
0.5.5 Disallow multiple `_` in a row in digits, e.g. `1__000`. #1138 . Fixed toposort example. Struct/union members now correctly rejects members without storage size #1147 . `math::pow` will now correctly promote integer arguments. `math::pow` will now correctly promote integer arguments. Added `new_aligned` and `alloc_aligned` functions to prevent accidental under-alignment when allocating simd. Pointer difference would fail where alignment != size (structs etc) #1150 . Add test that overalignment actually works for lists. Fixed array calculation for npot2 vectors. Use native aligned alloc on Windows and POSIX. Deprecates "offset". Simplification of the Allocator interface.
2024-02-22 17:13:51 +01:00
Christoffer Lerno
b7f4fd9074
Create FUNDING.yml
2024-02-20 09:27:21 +01:00
Christoffer Lerno
9a114b38d3
Updated retry and test.c3 examples.
2024-02-17 15:19:27 +01:00
Christoffer Lerno
bec1116f86
Fixes to scoped mem report.
2024-02-17 11:52:18 +01:00
Christoffer Lerno
d7cc37b951
Important fixes to project settings.
v0.5.4
2024-02-17 11:39:08 +01:00
Christoffer Lerno
4ce62cf221
Fix of allocator::new.
2024-02-16 21:55:30 +01:00
Christoffer Lerno
1f052da0b9
Clock.c3 fix.
2024-02-16 21:31:49 +01:00
Christoffer Lerno
812dc0c292
Update memory test code.
2024-02-16 14:19:42 +01:00
Christoffer Lerno
798fe0dce9
Updated lex file.
2024-02-16 12:01:13 +01:00
Christoffer Lerno
3f6fe55f9a
Grammar fix.
2024-02-15 23:18:11 +01:00
Christoffer Lerno
aee4aecfe7
Remove install_win_reqs.bat from releases.
2024-02-15 22:41:44 +01:00
Christoffer Lerno
748c737e8f
0.5.4: Hash variables accept designated initializers. @safemacro overrides the need for @ in macro names. Fixes to macro context evaluation. Updated allocator api. Removed install_win_reqs.bat. Deterministic @init for MacOS. Fixed temp memory issue with formatter. Support LLVM 19. Add support to compare bitstructs using == and !=. Support Windows .def files. Removed invalid grammar from grammar.y. Support compile time folding of &|^~ for bitstructs. output project setting now respected. Fix issue where constants were not properly constant folded. Add temp_push/pop. Aliased declarations caused errors when used in initializers. Fix export output. Fix of const ternary #1118 . Fix of $$MODULE in nested macros #1117 . Fix debug info on globals. out now correctly detects subscript[] use #1116 . Lateral implicit imports removed. Default to '.' if no libdir is specified. Improved error messages for --lib. Fix raylib snake example. Overzealous local escape check corrected #1127 . Improved yacc grammar #1128 . --linker argument #1067 . Fixes to the matrix operations #1130 . Added GenericList.
2024-02-15 21:39:33 +01:00
Christoffer Lerno
c673101bbb
Fix incorrect code in sample.
2024-02-14 09:16:36 +01:00
Poly2it
d66674655c
Update compilation instructions for Void Linux
2024-02-13 16:45:51 +01:00
Christian Clauss
da292e41bd
msvc_build_libraries.py: Remove unused import an f-strings with no placeholder
...
% `ruff ` # https://docs.astral.sh/ruff
```
Error: msvc_build_libraries.py:9:8: F401 `os` imported but unused
Error: msvc_build_libraries.py:10:8: F401 `sys` imported but unused
Error: msvc_build_libraries.py:19:8: F401 `re` imported but unused
Error: msvc_build_libraries.py:179:3: F541 f-string without any placeholders
Error: msvc_build_libraries.py:180:3: F541 f-string without any placeholders
Error: msvc_build_libraries.py:182:3: F541 f-string without any placeholders
Error: Process completed with exit code 1.
```
2024-01-18 11:24:03 +01:00
Christoffer Lerno
deb4cc7c4b
0.5.3: Single-module not respected. Fix issue with compiler defined types. Fix optimization levels for projects. Use GEP i8 on offsets. Optimize foreach on len 1 arrays. Move panic blocks last. Fix generic module wildcard imports. Deprecate init_temp / init_new. Fix issue with macro vaarg and untyped lists. Fix extern const globals.
2024-01-14 15:34:54 +01:00
Christoffer Lerno
e91f6e268e
0.5.2: Allow trailing comma in calls and parameter declarations #1092 . Fixes issue where single character filenames like 'a.c3' would be rejected. Improve error messages for incorrect user defined foreach. Fix bug with generics in generics. Fix to error with modified vector parameters. Crash with lhs vector inference. Fixes to priority queue.
2023-12-23 23:15:51 +01:00
Poly2it
2595ed5cc9
Add compilation instructions for Void Linux
2023-12-09 15:15:17 +01:00
Christoffer Lerno
1d61ace302
Do not link with debug libc on win32 when using cross compile libs. Add delete methods to dstring. Fixes to macOS aarch64 codegen. Use glibc backtrace when available. Add load_* methods to file. The cast (int[8])int_slice[:8] now works.
v0.5.1
2023-12-08 18:59:57 +01:00
Christoffer Lerno
a50c5f4f7c
Fixes to the grammar.
2023-11-26 20:06:38 +01:00
Christoffer Lerno
a46bf4fbe0
Improve "const" error message #1079 .
2023-11-22 19:12:04 +01:00
Christoffer Lerno
0d1eab5c15
Fix of incorrect error recovery leading to confusing errors #1080
2023-11-22 19:12:04 +01:00
Christoffer Lerno
3255183ee4
0.5 release.
release_0.5
2023-11-20 23:48:18 +01:00
Tiago Teixeira
66b65a042e
Add CMake option to link c3 dynamically to LLVM/LLD ( #1077 )
...
* Add Cmake option to link c3 dynamically to LLVM/LLD
To link dynamically, use
`cmake -DC3_LINK_DYNAMIC=ON <other-options> ../`
* formatting
2023-11-20 18:10:19 +01:00
Christoffer Lerno
b8db118e64
Use signals to create the stack trace.
2023-11-20 17:17:39 +01:00
Christoffer Lerno
7c15cf2788
Hacky update to stacktrace.
2023-11-20 14:10:12 +01:00
Christoffer Lerno
31538d5955
Fix to backtrace
2023-11-20 12:39:20 +01:00
Christoffer Lerno
337eac6d2f
Only fallback on native backtrace if there is no backtrace()
2023-11-20 11:36:38 +01:00
Pierre-Nicolas Clauss
e826f02da5
feat(lib/std): get backtrace for static binaries.
2023-11-20 09:46:25 +01:00
Christoffer Lerno
d5281b10dd
Cleanup use of macro inspection to use @typekind and @typeid macros.
2023-11-18 23:35:18 +01:00
Christoffer Lerno
87fdb5956e
Improved backtrace on platforms without glibc. Added $$frameaddress and $$returnaddress properly.
2023-11-18 20:13:11 +01:00
Christoffer Lerno
00019f9d76
Small update
2023-11-17 22:10:31 +01:00
Christoffer Lerno
f257befd86
Add compatibility matrix.
2023-11-17 22:08:59 +01:00
Christoffer Lerno
07c27f3292
Remove emulated stack trace.
2023-11-17 07:27:17 +01:00
Christoffer Lerno
ffb0021d04
Use backtrace on windows. Updated backtrace API
2023-11-17 00:36:42 +01:00
Christoffer Lerno
81c93e3488
Use backtrace on windows. Updated backtrace API
2023-11-16 21:39:27 +01:00
Christoffer Lerno
587d5578ab
Fix emit location.
2023-11-13 21:42:38 +01:00
Christoffer Lerno
9345e4270a
Update panic emit.
2023-11-13 19:49:25 +01:00
Christoffer Lerno
1dde6092e5
Version update, remove unused code.
2023-11-13 18:25:06 +01:00
Christoffer Lerno
5e8816e6df
Fixes to native backtrace.
2023-11-13 17:20:46 +01:00
Christoffer Lerno
dc0aa35522
Native Linux backtrace.
2023-11-12 15:20:24 +01:00
Christoffer Lerno
f39aa1a41e
Add location tracking for memory allocations.
2023-11-09 22:03:25 +01:00