Christoffer Lerno
c78bb45f2f
Fix sample.
2025-01-09 01:33:58 +01:00
Christoffer Lerno
11f9365eb0
Remove all TODOs and make them strings to not crash things for -P output.
2025-01-09 01:32:21 +01:00
Christoffer Lerno
cdc1656f3a
#foo style arguments were not type checked when given a type. #1790
2025-01-09 01:28:30 +01:00
Christoffer Lerno
8fb3ec73ff
Deprecate $varef.
2025-01-08 23:56:10 +01:00
Christoffer Lerno
214e806a33
Deprecate `fn void! main() type main functions.
2025-01-08 23:17:50 +01:00
Christoffer Lerno
8e0d6d11b9
Deprecated '&' macro arguments.
2025-01-08 22:13:49 +01:00
Christoffer Lerno
9412b58d80
Remove trailing comma in project creation.
2025-01-08 13:44:09 +01:00
Christoffer Lerno
dad97fc2d9
Improved #foo resolution inside of the compiler.
...
Deprecation of several `&` macros.
2025-01-08 12:55:20 +01:00
vssukharev
ff33cc4dad
Add Nix build and checks to CI/CD
2025-01-06 23:11:04 +01:00
Christoffer Lerno
51e0e5e66d
Change ordering to simplify adding methods to type in conditional modules.
2025-01-06 22:36:29 +01:00
Christoffer Lerno
5fa6ecf9ae
Enforce utf-8 on windows.
2025-01-06 20:02:57 +01:00
Christoffer Lerno
34c7f4e6b7
Deref subscripts as needed for macro ref method arguments. #1789
2025-01-06 13:54:02 +01:00
Christoffer Lerno
737559d3f8
Fix typo, minor changes.
2025-01-06 12:36:59 +01:00
Christoffer Lerno
f801372074
Optimize temp variables in LLVM.
2025-01-06 04:25:47 +01:00
Christoffer Lerno
ea2dce0ab4
Make "?:" lower in the frontend.
2025-01-06 03:01:13 +01:00
Christoffer Lerno
314c6f94f0
Remove the last "cast" operations.
2025-01-06 01:51:03 +01:00
Christoffer Lerno
8fd119e546
Refactor vector->array scalar->vector and slice->array casts to expressions.
2025-01-06 00:22:26 +01:00
Christoffer Lerno
8612476103
Refactor float<->float ptr->int and int->enum casts to expressions.
2025-01-05 23:16:48 +01:00
Louis Brauer
35812bd7ba
Add String.trim_left() / right() ( #1773 )
...
* Add String.trim_left() / right()
* Fix formatting
2025-01-05 21:53:18 +01:00
Christoffer Lerno
f1ef2e8138
Improve @param parse errors #1777
2025-01-05 18:14:30 +01:00
robin
c47cb512ab
Additional convenient functions and enums ( #1767 )
...
Added some missing API calls and enums when working with the Objective-C
Runtime.
2025-01-05 16:22:46 +01:00
KillerxDBr
fe7d4230d8
Fix 'clean' command on Windows MinGW
...
'c3c clean' command try to use 'rm' on Windows MinGW compiled executable, since it does not define "_MSC_VER", but define "_WIN32"
There are other uses of "_MSC_VER" in the same file, they probably can be changed to "_WIN32" too
2025-01-05 16:19:12 +01:00
Christoffer Lerno
b6e166f44d
Include @name when searching for possible matches to name in the error message. #1779
2025-01-05 16:12:13 +01:00
Christoffer Lerno
ab2d223e71
Macros with trailing bodys aren't allowed as the single statement after a while loop with no body #1772 .
2025-01-05 16:00:39 +01:00
Christoffer Lerno
c6c7baa3b4
Refactor casts, removing SLBOOL and PTRBOOL.
2025-01-05 15:45:39 +01:00
Christoffer Lerno
218f293cd4
Introducing int_to_ptr expr.
2025-01-05 15:26:20 +01:00
Christoffer Lerno
4d641d193c
Refactoring removing cast types.
2025-01-05 15:09:30 +01:00
Christoffer Lerno
67ff78f1ca
Fix not freeing a zero length String
2025-01-05 14:30:00 +01:00
vssukharev
4f0716ab13
Fix issue when building on NixOS, firstly occured under commit 819a85ee
2025-01-05 14:18:56 +01:00
Christoffer Lerno
07c59e6a6c
Fix +a = 1 erronously being accepted. Refactorings.
2025-01-05 02:24:11 +01:00
Christoffer Lerno
86a674b87e
Remove unused cast.
2025-01-04 23:25:55 +01:00
Christoffer Lerno
9957ab259c
Fix vector float -> bool conversion.
2025-01-04 23:16:34 +01:00
Christoffer Lerno
4c3944f626
Refactor vec comparisons.
2025-01-04 23:06:21 +01:00
Christoffer Lerno
6f9b466d7c
Optimize recast.
2025-01-04 21:58:04 +01:00
Thomas Adam
61badb6af7
libc: add isatty()
2025-01-04 15:41:51 +01:00
Christoffer Lerno
e31e57c7e7
Improved error message when accessing @private from other modules. Added convenience functions to Maybe.
2025-01-04 14:58:06 +01:00
Christoffer Lerno
469188044d
Assert on certain slice to slice casts. #1768 .
2025-01-04 13:31:47 +01:00
Christoffer Lerno
38063e5602
Refactor casts.
2025-01-04 13:04:08 +01:00
Bernd
ba5e2b7fa6
socket.c3: optimize poll() duration wrapping ( #1762 )
...
* socket.c3: optimize poll() duration wrapping
2025-01-04 00:32:17 +01:00
Christoffer Lerno
eed806962d
Allow compile time $foreach iteration over constant Strings and bytes.
2025-01-04 00:26:21 +01:00
Christoffer Lerno
a1ce5e15ce
Fix tests.
2025-01-04 00:09:24 +01:00
Christoffer Lerno
f0735c945a
Update name to "validation"
2025-01-03 23:48:25 +01:00
Christoffer Lerno
d84e131b73
Add 'warnings' setting.
2025-01-03 23:37:37 +01:00
Christoffer Lerno
ad1511e69c
Prohibit raw vaargs in regular functions with a function body.
2025-01-03 15:36:42 +01:00
Christoffer Lerno
db4dc114f2
$vasplat was allowed inside of a function when passed as an argument to a function.
2025-01-03 15:01:24 +01:00
Christoffer Lerno
a7f363ea43
Dynamic function lookup fails after changing type without dummy anycast due to poor tracing of typeid. #1761
2025-01-03 14:39:01 +01:00
Christoffer Lerno
0ccbba61ce
Improve error message.
2025-01-03 12:07:54 +01:00
Christoffer Lerno
d921a4e168
Fix case when construct is using vaarg.
2025-01-03 12:05:10 +01:00
Thomas Adam
819a85ee06
build: add /usr/lib to LLVM_LIB search paths
...
It seems that on Alpine Linux (Edge), the LLVM_LIBRARY_DIRS cmake
variable doesn't look in /usr/lib, which is where the relevant files are
on Alpine.
Only do this for !WIN32 systems.
2025-01-03 11:47:00 +01:00
Christoffer Lerno
a3d15fe16c
Fix issue with zero arg @operator(construct). Assert on add to uninitialized ct variable #1765
2025-01-03 11:45:46 +01:00