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
Oloruntobi1
8aa3461bf6
[DOCS] updated readme with issue 1086 link
2024-08-05 19:55:04 +02:00
Christoffer Lerno
04c37a98b5
Formatting.
2024-08-05 19:53:39 +02:00
rexim
4850f1e94b
Ignore EINTR return from waitpid
...
Apparently it is a thing that can happen and for example musl just
ignores such situations and tries to wait again.
dd1e63c363/src/process/system.c (L39)
2024-08-05 19:53:05 +02:00
Christoffer Lerno
60945ffe58
Fix of tests.
2024-08-05 19:52:34 +02:00
Christoffer Lerno
746016996c
Variable in if-try / if-catch cannot be a reused variable name.
2024-08-05 18:43:04 +02:00
Christoffer Lerno
67a2734777
Issue where a if (catch e = ...) in a defer would be incorrectly copied. Causing codegen error.
2024-08-05 15:20:50 +02:00
Christoffer Lerno
b208fc7cf5
Add unreachable.
2024-08-04 23:40:28 +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
b49b60ab5f
Fix compiler timings.
2024-08-04 11:21:23 +02:00
Christoffer Lerno
620c67b04e
Bug in List add_array when reserving memory.
2024-08-04 01:34:45 +02:00
Alexey Kutepov
a5b5f315d1
Implement passing arguments to program via compile-run ( #1296 )
2024-08-03 19:47:52 +02:00
Christoffer Lerno
43ea05aad2
Remove $expand.
2024-08-03 12:47:19 +02:00
Halen84
0ec1c80221
Fix typo in parse_global.c
...
In parse_def_ident()
2024-08-03 03:50:55 +02:00
Christoffer Lerno
d91c289bf6
Distinct inline can now be called if it is aliasing a function pointer.
2024-08-03 03:08:38 +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
Yhya Ibrahim
7a72f44f64
Add --run-once option to delete the output file after running it ( #1295 )
...
Add `run-once` option to delete the output file after running it
2024-08-02 12:47:36 +02:00
Christoffer Lerno
a90e3c440b
Distinct inline would not implement protocol if the inlined implemented it. This closes #1292
2024-08-02 11:37:38 +02:00
Christoffer Lerno
1aab8b87ec
Add experimental @noalias attribute.
2024-08-01 22:57:26 +02:00
Christoffer Lerno
ebf071ac51
Fix incorrect override of optimization levels when using projects.
2024-08-01 21:40:51 +02:00
Christoffer Lerno
3d0fc33441
&& doesn't work correctly with lambdas #1279 .
2024-08-01 21:16:23 +02:00
Christoffer Lerno
c50df85976
Fix docs to match the update in supporting LLVM 17+ only.
2024-08-01 20:04:54 +02:00
Christoffer Lerno
db9fc20acf
Wrapper RTTI now follows LLVM RTTI.
2024-08-01 19:58:52 +02:00
Christoffer Lerno
10058cf271
- Distinct func type would not accept direct function address assign. #1287
2024-08-01 16:26:50 +02:00
Christoffer Lerno
310dadef45
No type_lowering in the frontend.
2024-08-01 13:26:47 +02:00
Christoffer Lerno
3159f036a2
Update lowering for function pointers.
2024-08-01 11:37:40 +02:00
Christoffer Lerno
c3e426c82a
Assertion with duplicate function pointer signatures #1286
2024-08-01 01:52:26 +02:00
Christoffer Lerno
b83d388523
Incorrect justify formatting of integers.
2024-08-01 01:20:42 +02:00
Christoffer Lerno
d8820259d2
Enable LLVM 19
2024-08-01 00:21:14 +02:00
Christoffer Lerno
354d78e893
Temporarily disable LLVM for Linux
2024-08-01 00:12:01 +02:00
Christoffer Lerno
7f00f35f4b
$expand macro, to expand a string into code. opt project setting now properly documented.
2024-08-01 00:07:16 +02:00
Yhya Ibrahim
8c33b073c2
Fix a warning/error where C compilers can not predict that a variable is initialized
2024-07-31 18:05:26 +02:00
Christoffer Lerno
d6490c9bab
Make it possible to set max limit for memory pages.
2024-07-31 18:03:52 +02:00
PalsFreniers
b0e104bfd0
Adding Termios library as std::libc::termios (posix libc functions) ( #1272 )
...
Adding libc's termios to lib/std/libc
2024-07-31 14:45:04 +02:00
Chuck Benedict
563e677b08
Add Riscv Example ( #1268 )
...
Add Riscv example. Risc-V CI. Install baremetal toolchain. Prevent imported crt file from messing up linker search.
2024-07-31 14:43:47 +02:00
Ikko Eltociear Ashimine
7664d0568e
Update bytewriter.c3
...
minor fix
2024-07-31 01:37:12 +02:00