Christoffer Lerno
9aab962ebc
Interface resolution when part of generics #1348 .
2024-08-12 10:25:53 +02:00
Christoffer Lerno
baf6e71a80
Fix interface lazy resolution errors. Fix i128 change in LLVM.
2024-08-12 01:25:30 +02:00
Christoffer Lerno
412fa4b12f
Use PIE/PIC on Linux
2024-08-11 23:00:38 +02:00
Christoffer Lerno
3cae557b88
Int128 alignment fixed on x64 Linux.
2024-08-11 22:48:21 +02:00
Christoffer Lerno
f7c39ae4a9
Recursively follow interfaces when looking up method.
2024-08-11 21:16:02 +02:00
Christoffer Lerno
6d93ce9d33
Update to libc::setjmp on Win32, to do no stack unwinding.
2024-08-11 18:22:14 +02:00
Sergwest
031cbae0d6
added the necessary library to build on void linux in the README.md
2024-08-11 17:07:48 +02:00
Christoffer Lerno
5fbee47c2b
Update version information,
2024-08-11 17:03:21 +02:00
Christoffer Lerno
2cd25a489a
Fix of global state init.
2024-08-11 16:55:40 +02:00
Christoffer Lerno
e67586b8b0
Fixes to library loading and test sources.
2024-08-11 16:46:53 +02:00
Christoffer Lerno
7d643942b4
Fix issues when checking methods and interfaces hasn't been resolved yet.
2024-08-11 16:16:16 +02:00
Christoffer Lerno
2257a7f4ec
Comment out decl size.
2024-08-11 15:14:52 +02:00
Christoffer Lerno
f8ca173fd8
Refactoring a bit.
2024-08-11 15:05:36 +02:00
Christoffer Lerno
b08e6743be
When resolving inherited interfaces, the interface type wasn't always resolved.
2024-08-11 10:19:20 +02:00
Christoffer Lerno
a97e4fe42d
Add temp allocator scribble. Make bufferstream safer.
2024-08-11 01:17:25 +02:00
Christoffer Lerno
2706495668
Add temp allocator scribble. Make bufferstream safer.
2024-08-11 01:17:03 +02:00
Christoffer Lerno
224c3f4123
Printable values passed to the Formatter as pointers, will print as if passed by value. Pointers are rendered with "0x" prefix when passed to '%s'.
2024-08-11 00:27:06 +02:00
Christoffer Lerno
f2911be116
Assertion when has_tagof is accidentally called on fn type #1343
2024-08-10 21:59:41 +02:00
Christoffer Lerno
05c5eaed48
Add deprecation notice for $and, $or, $concat, $append.
2024-08-10 21:25:13 +02:00
Christoffer Lerno
8541e9535e
Fix print when a tag is not found.
2024-08-10 21:15:19 +02:00
Christoffer Lerno
811cb2b95c
Add string methods to json, and fix issue in dstring when the formatter uses temp. Remove unnecessary use of temp allocator in to_format for json.
2024-08-10 19:13:58 +02:00
Christoffer Lerno
05421223be
Add --silence-deprecation
2024-08-10 09:54:59 +02:00
Christoffer Lerno
808a6b82f3
Add simple UTF16 detection.
2024-08-10 02:50:42 +02:00
Christian Buttner
30af7f1ca6
Add c-include-dirs project/manifest setting. ( #1338 )
...
Set the include directories to be used when compiling C sources.
2024-08-10 01:51:59 +02:00
Christoffer Lerno
274e5280cb
Rename muldiv and update tests for LLVM 20
2024-08-09 23:56:26 +02:00
Samuel Goad
f85c4cd79f
Update string_iterator.c3 to include extra convenience methods ( #1327 )
...
Update string_iterator.c3 to include extra convenience methods
Added peek: returns the next character without incrementing current
Added has_next: checks if the iterator has another element
Added get: gets the current element (the same one that was returned with the previous call to next).
2024-08-09 23:10:46 +02:00
Lexi
696d39b922
Move safe_mul_div macro and make it generic on integer types ( #1334 )
...
Move safe_mul_div macro and make it generic on integer types
2024-08-09 22:54:26 +02:00
Christoffer Lerno
d997445284
The compiler now skips UTF8 BOM.
2024-08-09 22:39:24 +02:00
Christoffer Lerno
f3e5268083
% analysis was incorrect for int vectors.
2024-08-09 15:23:40 +02:00
Christoffer Lerno
44db4a21fc
Add @tag and .tagof .has_tagof. Allow bitstructs to have attributes.
2024-08-09 15:03:44 +02:00
Christoffer Lerno
c8a113384c
Better precision with Clock on Win32
2024-08-08 23:03:04 +02:00
Lexi Allen
07e7bc0a94
Fix win32 native_clock() by converting native performance counter value to nanoseconds using previously gotten frequency value
2024-08-08 21:14:58 +02:00
Prithviraj Renjella Rajendra Prasad
7c8acbe485
Implemented arg passing to clean-run and run commands ( #1328 )
...
* added clean-run and run commands to list of commands that pass args
* Updated compiler usage message to reflect that commands run and clean-run accept args
2024-08-08 16:24:00 +02:00
Christoffer Lerno
65c2126202
Removing tb codegen info, because it's sure to have code-rotted by now.
2024-08-08 12:55:40 +02:00
Christoffer Lerno
0ef0f62b69
Only destroy temp allocators on env::LIBC.
2024-08-08 12:48:01 +02:00
Christoffer Lerno
921422a189
Fix Vec2.angle
2024-08-08 01:48:39 +02:00
Christoffer Lerno
56b771a7ad
Support destroying temp allocators, and destroy temp allocators on exit.
2024-08-07 16:24:26 +02:00
Christoffer Lerno
d2988e6a88
With single module, name the .o file after what -o provides. #1306
2024-08-07 01:35:09 +02:00
Velikiy Kirill
16510d2400
Update tcp.c3 to finally (i guess) fix Windows Sockets ( #1324 )
...
Update tcp.c3
2024-08-06 21:20:59 +02:00
Christoffer Lerno
6f790598ef
Update manifest.json template. #1321
2024-08-06 17:42:23 +02:00
Christoffer Lerno
63f0c7b2fe
'wincrt' in manifest.json should now be respected #1322
2024-08-06 17:37:43 +02:00
Christoffer Lerno
800f7970a7
Fixes to the socket functions. Improved output when pointer is out of range. Better error when casting to a distinct fails.
2024-08-06 17:08:03 +02:00
Velikiy Kirill
b7381fc075
Adding win32_WSACleanup()
2024-08-06 15:59:36 +02:00
Christoffer Lerno
b1785606cc
LLVM codegen for constants in enums could fail.
2024-08-06 00:28:03 +02:00
Christoffer Lerno
387d7d5508
Fix defer on 19/20
2024-08-05 23:15:55 +02:00
Christoffer Lerno
6adacf8892
Fix module name regression.
2024-08-05 23:04:29 +02:00
Christoffer Lerno
f7d6f93f1b
Refactoring -> ensure built in aliases have a valid unit.
2024-08-05 22:48:18 +02:00
Dodzey
9daa173ab7
Add methodsof to type info ( #1303 )
...
Add `methodsof` to type info for struct, union and bitstruct
2024-08-05 21:58:13 +02:00
Lexi
e748f72447
Project view command ( #1314 )
...
Add parsing for the project command and view subcommand. Add basic implementation of c3c project view. Move get_valid_integer into common build.
Co-authored-by: Christoffer Lerno <christoffer.lerno@gmail.com >
2024-08-05 21:45:15 +02:00
Christoffer Lerno
14358417c8
Refactoring -> ensure built in aliases have a valid unit.
2024-08-05 21:44:02 +02:00