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
|
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
|
87fdb5956e
|
Improved backtrace on platforms without glibc. Added $$frameaddress and $$returnaddress properly.
|
2023-11-18 20:13:11 +01:00 |
|
Christoffer Lerno
|
ffb0021d04
|
Use backtrace on windows. Updated backtrace API
|
2023-11-17 00:36:42 +01:00 |
|
Christoffer Lerno
|
e31f2a03ba
|
Add location tracking for memory allocations.
|
2023-11-09 11:20:29 +01:00 |
|
Christoffer Lerno
|
1e38ccdd2b
|
Fix missing free on GrowableBitSet. init_new/init_temp for GrowableBitSet, LinkedList, List, HashMap, DString, ByteBuffer. Interface to_string renamed to_new_string. Change in allocator usage, malloc is now heap. Added new_array, new_zero_array, new, new_clear, clone. Concat => concat_new. string::printf => string::new_format, string::tprintf => string::tformat. "to_*" are now "to_new_*" and "to_temp_*". "from_*" is "new_from*"
|
2023-11-09 01:59:49 +01:00 |
|
Christoffer Lerno
|
1aa038c92f
|
Interface based streams. Fix for initializing with a force unwrap inside. Allow $define to take a list. Allow $define to return error on argument type mismatch in call. Fixed broken bit operations on boolean vectors.
|
2023-10-31 01:06:59 +01:00 |
|
Christoffer Lerno
|
e4c1328ef2
|
Better checks for missing @dynamic. Addresses #1055.
|
2023-10-28 04:12:43 +02:00 |
|
Christoffer Lerno
|
9af37fe427
|
$and, $or, $is_const, $assignable, .is_eq, .is_ordered, $defined($vatype(2)) works looking if we can create a type, $defined(foo[0]) $defined(foo()). Remove $checks and @checked. Improvide casting checks to always work without destructive changes.
|
2023-10-24 22:06:04 +02:00 |
|
Christoffer Lerno
|
89d4c2cab7
|
Allocator uses protocols. Fix bug where it was not possible to pass a ref variable as a ref variable. Correct codegen for !anyptr.
|
2023-10-14 12:39:46 +02:00 |
|
Christoffer Lerno
|
b7a896805d
|
Fix bug in growable bitset. Always insert 0xAA in malloc on testing.
|
2023-10-09 14:23:41 +02:00 |
|
Christoffer Lerno
|
108b2244d8
|
Fix bug in aligned_realloc, fixes issue when a type is not resolved before the cast. #897
|
2023-07-28 22:21:23 +02:00 |
|
Christoffer Lerno
|
499c82b089
|
Updated indentation to C3 standard.
|
2023-07-26 14:01:24 +02:00 |
|
Christoffer Lerno
|
9543fbbf1c
|
Exhaustive switch on enums. This addresses #838
|
2023-07-09 01:18:01 +02:00 |
|
Christoffer Lerno
|
4f7b42cdc4
|
New generic syntax and ad hoc invocation.
|
2023-07-06 23:43:36 +02:00 |
|
Christoffer Lerno
|
848a5212ef
|
Fixes #811. Update some stdlib methods. Header printout correctly picks a name. #804
|
2023-07-03 13:17:43 +02:00 |
|
Christoffer Lerno
|
f74e294dc2
|
Push stack codegen to function for cleaner binaries. Some refactoring in allocators.
|
2023-06-30 01:01:58 +02:00 |
|
Christoffer Lerno
|
f651a59294
|
Fix on rethrow + macros.
|
2023-06-27 13:19:28 +02:00 |
|
Christoffer Lerno
|
b88916214f
|
Fix of allocator gen.
|
2023-06-26 21:34:36 +02:00 |
|
Christoffer Lerno
|
0ec64c3be8
|
Remove broken free check on temp allocator.
|
2023-06-25 22:07:44 +02:00 |
|
Christoffer Lerno
|
68f6cb1286
|
Updated organization file functions, env naming.
|
2023-06-24 10:29:17 +02:00 |
|
Christoffer Lerno
|
ddd0497922
|
Better lowering of distinct types. Noreturn function call expr recognized as a "jump" for escape analysis. Preferring "def" in libs. To upper / to lower for ascii. Initial dynlib support.
|
2023-05-21 21:41:01 +02:00 |
|
Christoffer Lerno
|
4d0f73a8f5
|
Consistent naming in allocators. Fix where cast from char array -> bitstruct would not work.
|
2023-05-10 10:30:37 +02:00 |
|
Christoffer Lerno
|
172d561f07
|
Change syntax of $if, $assert, $include, $echo. Introduces $error
|
2023-05-06 12:18:00 +02:00 |
|
Christoffer Lerno
|
809321e20c
|
Updated grammar. Removal of elif. Removal of ':' ';' in some ct statements. Empty faults is now an error. Remove "define" for types. Remove "private". Better errors on incorrect bitstruct syntax. Introduction of wildcard type rather than optional wildcard. Removal of scaled vector type. mkdir and rmdir. Disallow define @Foo() = { @inline }. Add handling for @optreturn and change it to @return!. Restrict interface style functions. Updated x64 ABI. stdlib updates to string. Removed deprecated functions. Update how variadics are implemented. Extended error messages. x86 ABI fixes. Shift check fixes. '!' and '?' are flipped. No trailing ',' allowed in functions. Fix to string parsing. Allow l suffix. Simplifying flatpath. any replaces variant, anyfault replaces anyerr. Allow getting the underlying type of anyfault. De-duplicate string constants. Fix of readme. Extended list. Fix of "(MyEnum)x + 1". Clock and DateTime types. Fixes to array concat.
|
2023-04-21 10:56:39 +02:00 |
|
Christoffer Lerno
|
93fa135d28
|
Deprecation of define Type = ...
|
2023-03-20 22:56:06 +01:00 |
|
Christoffer Lerno
|
5ee0d52ff1
|
Deprecate :; in $if etc.
|
2023-03-20 01:03:54 +01:00 |
|
Christoffer Lerno
|
fb761b0cc5
|
Added OnStack allocator. Added dirname, basename and extension to path functions.
|
2023-03-13 11:51:27 +01:00 |
|
Christoffer Lerno
|
89de0a70d2
|
"@ensure" now correctly only runs on non-optional results. Subtypes now merge to a single type. Beginning deprecation of "std::core::str". Refreshed String functions. Consistent use of ".using" parameter. Functions moved to string methods. Tests on more string methods. Fixes to split, rindex_of.
|
2023-03-08 00:13:48 +01:00 |
|
Christoffer Lerno
|
9eee250b10
|
Add DString init.
|
2023-03-06 09:12:52 +01:00 |
|
Christoffer Lerno
|
d1626ada6f
|
List no longer uses a temp allocator by default. Incorrect check in the temp allocator removed. Added DString.
|
2023-03-05 23:14:16 +01:00 |
|
Christoffer Lerno
|
bd8bff85d6
|
Add tracking allocator. Fix substruct issue.
|
2023-02-27 17:05:27 +01:00 |
|
Christoffer Lerno
|
dd4edfb747
|
Updated malloc/calloc/realloc/free deprecation of old helper functions. Add checks to prevent incorrect alignment on types when using malloc. Better errors from $assert. Added @deprecated. Fixed issue using named arguments after varargs.
|
2023-02-27 15:03:27 +01:00 |
|
Christoffer Lerno
|
2f255ac5c3
|
Sha1.
|
2023-02-24 10:49:01 +01:00 |
|
Christoffer Lerno
|
a7ce0f95e6
|
Refactor allocator locations.
|
2023-02-24 00:29:24 +01:00 |
|
Christoffer Lerno
|
818396b6f3
|
Updated module visibility import visibility. Fixes to @local
|
2023-02-15 09:47:51 +01:00 |
|
Christoffer Lerno
|
df77b692d6
|
Support "typedef"
|
2023-02-14 16:49:27 +01:00 |
|
Christoffer Lerno
|
5e457be605
|
Implement more @export / @private improvements. Make @private default… (#729)
|
2023-02-13 08:31:40 +01:00 |
|
Christoffer Lerno
|
445239b418
|
Add simple heap allocator and update lambda and #lazy checking.
|
2023-01-27 14:40:54 +01:00 |
|
Christoffer Lerno
|
f46697bc54
|
Updated casts (#684)
Cast code rework. Remove llvm_set_bool and friends.
|
2022-12-27 14:16:47 +01:00 |
|
Christoffer Lerno
|
f86ef8a743
|
Remove tscoped. Replace str_index_of with "starts_with". Updated copy_zstring/copy. Fixed utf conversion functions. Initial work on "Path". Lexer fix on \\. ABI fix using distinct types. (bool)"" now works correctly. Bug in $if with switches/loops as the first statement fixed. Version bump.
|
2022-10-20 10:55:14 +02:00 |
|
Christoffer Lerno
|
5e184f04e7
|
List now has correct alignment and takes memory allocator initializer. Bugfix of aligned allocations.
|
2022-10-12 22:35:36 +02:00 |
|
Christoffer Lerno
|
ab78663f3c
|
Add usz and isz.
|
2022-10-10 15:44:03 +02:00 |
|
Christoffer Lerno
|
fa064276bc
|
Disallow $offsetof / $alignof on types. Version bump.
|
2022-10-08 12:41:40 +02:00 |
|
Christoffer Lerno
|
cbb731b42b
|
Fix alignment on temp allocators.
|
2022-09-29 22:18:12 +02:00 |
|
Christoffer Lerno
|
ebd7611164
|
Allow compile time pointer manipulation. Ternary bug fixes.
|
2022-08-09 12:05:49 +02:00 |
|
Christoffer Lerno
|
878bbed929
|
Fix bug using $switch. Added mem::equals. Fix to dynamic arena allocator.
|
2022-08-05 19:00:32 +02:00 |
|
Christoffer Lerno
|
3461f08a53
|
Consume a byte to make the temp allocator correctly reset large allocs.
|
2022-08-04 02:46:15 +02:00 |
|
Christoffer Lerno
|
db5816edd6
|
Fix to temp allocator reset.
|
2022-08-04 02:34:51 +02:00 |
|
Christoffer Lerno
|
6d2ab0c985
|
Fix ordering of @builtin. malloc <-> alloc, malloc, calloc, realloc, free builtins.
|
2022-08-04 01:49:36 +02:00 |
|