Christoffer Lerno
65c48419d0
Minor refactorings. Added "Thank you" section to readme. Some fixes to hostinfo.
2024-09-12 13:47:49 +02:00
alex_s168
d376ee6671
ability to disable llvm at compile time ( #1433 )
...
ability to disable llvm at compile time
2024-09-12 13:36:00 +02:00
Christoffer Lerno
9f4da339c3
Support int[*] { 1, 2, 3 } expressions.
2024-09-12 00:11:09 +02:00
wilsonk
1b54a99f6a
Add initial FreeBSD support ( #1430 )
...
Add initial FreeBSD support
2024-09-11 22:38:53 +02:00
Christoffer Lerno
b22bd459dd
Fix regression for splat.
2024-09-10 00:21:01 +02:00
Christoffer Lerno
1e570bf506
Rename vec_erase_ptr_at to vec_erase_at.
2024-09-06 00:41:07 +02:00
Lars Nilsson
fe7392a656
Adding check of HTTP response code so that Windows will remove up the opened file if the download was not successful
2024-09-01 21:44:09 +02:00
Christoffer Lerno
78ce03bd62
Prefer \ to concat windows paths.
2024-08-25 20:14:36 +02:00
Christoffer Lerno
8fde7cd6f5
--path is now properly respected.
2024-08-25 18:15:33 +02:00
Christoffer Lerno
a870881fff
Allow "project.json5" to be used.
2024-08-25 00:19:08 +02:00
Christian Buttner
59ed118e66
Address/memory/thread sanitizer.
2024-08-23 16:06:22 +02:00
Christoffer Lerno
b46463563e
Add path test windows and escape in double quote.
2024-08-21 10:37:50 +02:00
Christoffer Lerno
cb7116f08b
New linker options handling
2024-08-19 01:28:57 +02:00
Christian Buttner
85c682f7e6
Escape arguments to platform linker/compiler. ( #1358 )
...
* Escape arguments to platform linker/compiler.
2024-08-15 15:01:53 +02:00
Christoffer Lerno
3ccb4b9ec3
$exec may now provide a stdin parameter. Deprecated path.append, path.tappend, getcwd, tgetcwd, path.absolute, ls. Deprecated env::get_config_dir, replaced by env::new_get_config_dir. Added path.has_extension, path.new_append, path.temp_append, new_cwd, temp_cwd, path.new_absolute, new_ls, temp_ls. Added dstring.replace Updated win escapes for exec.
2024-08-15 00:31:47 +02:00
kostyavechkanov
800ad9e898
Feature/add-target ( #1 ) ( #1350 )
...
Feature/add target (#1 ) project add-target command
2024-08-13 13:34:53 +02:00
Christoffer Lerno
808a6b82f3
Add simple UTF16 detection.
2024-08-10 02:50:42 +02:00
Christoffer Lerno
d997445284
The compiler now skips UTF8 BOM.
2024-08-09 22:39:24 +02:00
Christoffer Lerno
2748cf99b3
- Fix issue where a compile time parameter is followed by "...".
...
- Fix issue with some conversions to untyped list.
- Experimental change: add `+++` `&&&` `|||` as replacement for `$concat`, `$and` and `$or`.
2024-08-04 23:16:25 +02:00
Christoffer Lerno
74b9971494
Add wincrt setting to libraries.
2024-08-02 20:15:40 +02:00
Christoffer Lerno
f8f116109a
Use back-off strategy when allocating virtual memory.
2024-08-02 15:45:16 +02:00
Christoffer Lerno
8498cb6258
Add @const attribute for macros, for better error messages with constant macros #1293
2024-08-02 15:01:02 +02:00
Christoffer Lerno
d6490c9bab
Make it possible to set max limit for memory pages.
2024-07-31 18:03:52 +02:00
Christoffer Lerno
3f62775f4b
Support c-file compilation in libraries.
2024-07-07 02:04:37 +02:00
Christoffer Lerno
f521a0dd77
FOREACH_BEGIN / VECEACH replaced by FOREACH / FOREACH_IDX
2024-07-01 13:31:41 +02:00
Christoffer Lerno
079cbb8f68
Updated module mangling, restrict module names.
2024-06-27 13:37:37 +02:00
Christoffer Lerno
e293c435af
0.6.0: init_new/init_temp removed. LinkedList API rewritten. List "pop" and "remove" function now return Optionals. RingBuffer API rewritten. Allocator interface changed. Deprecated Allocator, DString and mem functions removed. "identity" functions are now constants for Matrix and Complex numbers. @default implementations for interfaces removed. any* => any, same for interfaces. Emit local/private globals as "private" in LLVM, following C "static". Updated enum syntax. Add support [rgba] properties in vectors. Improved checks of aliased "void". Subarray -> slice. Fix of llvm codegen enum check. Improved alignment handling. Add --output-dir #1155 . Removed List/Object append. GenericList renamed AnyList. Remove unused "unwrap". Fixes to cond. Optimize output in dead branches. Better checking of operator methods. Disallow any from implementing dynamic methods. Check for operator mismatch. Remove unnecessary bitfield. Remove numbering in --list* commands Old style enum declaration for params/type, but now the type is optional. Add note on #1086 . Allow making distinct types out of "void", "typeid", "anyfault" and faults. Remove system linker build options. "Try" expressions must be simple expressions. Add optimized build to Mac tests. Register int. assert(false) only allowed in unused branches or in tests. Compile time failed asserts is a compile time error. Remove current_block_is_target. Bug when assigning an optional from an optional. Remove unused emit_zstring. Simplify phi code. Remove unnecessary unreachable blocks and remove unnecessary current_block NULL assignments. Proper handling of '.' and Win32 '//server' paths. Add "no discard" to expression blocks with a return value. Detect "unsigned >= 0" as errors. Fix issue with distinct void as a member #1147 . Improve callstack debug information #1184 . Fix issue with absolute output-dir paths. Lambdas were not type checked thoroughly #1185 . Fix compilation warning #1187 . Request jump table using @jump for switches. Path normalization - fix possible null terminator out of bounds. Improved error messages on inlined macros.
...
Upgrade of mingw in CI. Fix problems using reflection on interface types #1203 . Improved debug information on defer. $foreach doesn't create an implicit syntactic scope.
Error if `@if` depends on `@if`. Updated Linux stacktrace. Fix of default argument stacktrace. Allow linking libraries directly by file path. Improve inlining warning messages. Added `index_of_char_from`. Compiler crash using enum nameof from different module #1205 . Removed unused fields in find_msvc. Use vswhere to find msvc. Update tests for LLVM 19
2024-06-12 10:14:26 +02:00
Christoffer Lerno
e7d726cc2c
Fixup of scratch buffer code.
2024-04-09 14:27:52 +02:00
Christoffer Lerno
04738586b9
Fix bug in scratch_buffer_printf.
2024-04-09 13:26:08 +02: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
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
Pierre-Nicolas Clauss
e380075852
fix: standard library search paths
...
Path construction for locating the standard library expects ending
slashes.
2023-10-19 13:04:43 +02:00
Pierre-Nicolas Clauss
7df5bc0017
Add more paths to search for the standard library
...
Module `std` is searched first in a `c3` subdirectory.
Search directories are, in order and relative to the compiler executable
location:
- `lib/c3` relative to the parent directory
- `lib` relative to the parent directory
- `/lib/c3`
- `/lib`
- `/c3`
- `/`
- `c3` relative to the parent directory
- the parent directory
- `lib/c3` relative to the grand-parent directory
- `lib` relative to the grand-parent directory
2023-10-17 13:55:51 +02:00
Christoffer Lerno
db3e9c7ec7
Add delete testing for windows and update "clean"
2023-10-11 15:49:05 +02:00
Christoffer Lerno
d16ad0b4c7
Update "clean".
2023-10-05 19:06:55 +02:00
Christoffer Lerno
a07ba63917
Compiling does not leave exe when successful, and also works with generic modules. #1027 . For now, silence errors due to the macos linker changes. #1028 . Try update clean on Windows #456 .
2023-10-05 16:31:11 +02:00
Christoffer Lerno
709fe1c2c0
Some general refactoring in the builder / project code.
2023-09-23 03:22:11 +02:00
Christoffer Lerno
27445e6c1d
Semi-fix of $embed on empty. Inline caches for dynamic dispatch.
2023-08-22 15:24:21 +02:00
Christoffer Lerno
957ce320ae
Cleanup and size reduction of Ast/Expr.
2023-08-18 01:57:56 +02:00
Christoffer Lerno
6d870fbef0
Fix for arithmetic promotion of aliases. Some work towards $exec scripting.
2023-08-10 17:14:29 +02:00
Christoffer Lerno
01a89e2145
Fix bug where library source files were sometimes ignored.
2023-08-09 21:34:58 +02:00
Christoffer Lerno
7b0408f79d
Adding feature flags.
2023-07-26 23:28:11 +02:00
Christoffer Lerno
209d994336
Finalize subprograms after writing them. Correct debug info for C varargs. Add uwtable metadata. Removed visibility from functions.
2023-07-17 20:21:10 +02:00
Christoffer Lerno
aa216fa510
Dev ( #859 )
...
* Fix bug where analysing subexpr relied on them not being analysed. Fix issue where converting a const initializer bool to integer failed. Fix of issue where the case check assumed other cases were const values.
* Fix bug where analysing subexpr relied on them not being analysed. Fix issue where converting a const initializer bool to integer failed. Fix of issue where the case check assumed other cases were const values. Remove PTHREAD for windows.
* Fix bug where analysing subexpr relied on them not being analysed. Fix issue where converting a const initializer bool to integer failed. Fix of issue where the case check assumed other cases were const values. Remove PTHREAD for windows.
2023-07-17 02:00:27 +02:00
Christoffer Lerno
8a4e6f7dd3
Fix bug where @local declarations would get registered as @private for generic modules. #856 . Update to consistent tab spacing.
2023-07-15 19:27:24 +02:00
Christoffer Lerno
8b605d9183
$embed.
2023-07-09 01:18:01 +02:00
Christoffer Lerno
21d8a8b6da
Fix #809 missing checks on generic types, accepting both types where constants should be and vice versa.
2023-07-01 23:58:00 +02:00
Christoffer Lerno
8c73a450a1
Reduce memory consumtion. Add "range"
2023-06-25 21:39:53 +02:00
Christoffer Lerno
5c9eb264e8
Delete object files after linking.
2023-06-21 16:27:53 +02:00
Christoffer Lerno
4c1edfb941
Dev ( #777 )
...
* The new @if directive.
2023-06-10 23:16:28 +02:00