18949 Commits

Author SHA1 Message Date
Felipe Pena
a200c4540a
checker,cgen: fix missing validation for selector unwrapping + fix default return none for unwrapping (#23183) 2024-12-16 23:17:32 +02:00
Felipe Pena
75ff2e0c86
cgen: fix option fn with voidptr arg (fix #23170 for !=tcc too) (#23179) 2024-12-16 22:59:59 +02:00
Delyan Angelov
1fae506900
docs: add a section for static variables (#23184) 2024-12-16 19:48:43 +02:00
kbkpbot
03f3f7a9ff
net.urllib: fix parse of url relative address (fix #21061) (#23180) 2024-12-16 16:59:58 +02:00
Felipe Pena
b1502d4ff1
parser,checker,cgen,fmt: fix array fixed option initialization (none) (complete #23164) (#23176) 2024-12-16 16:54:46 +02:00
Delyan Angelov
75928d18e0
v.builder: cleanup output of -parallel-cc, allow for setting the optimisation options through CFLAGS_OPT, fix for one core systems (the FreeBSD vps) 2024-12-16 09:07:58 +02:00
yuyi
1ff9f04506
all: check error of generic symbol and cleanup generic symbol (fix #23072) (#23178) 2024-12-16 08:26:52 +02:00
Felipe Pena
b01f482da7
cgen: fix selector call with reserved c name (fix #23170) (#23175) 2024-12-15 23:25:57 +02:00
Felipe Pena
066f825dea
cgen: fix fixed array option cast with none (fix #23164) (#23168) 2024-12-15 22:44:56 +02:00
Felipe Pena
ca1e23abdd
cgen: fix auto eq for fixed array (fix #23149) (#23169) 2024-12-15 21:08:53 +02:00
Swastik Baranwal
90cef28dfa
checker: allow []Enum{len: 10, init: .thing} (fix #23077) (#23165) 2024-12-15 21:07:59 +02:00
Felipe Pena
ad269929c1
markused: fix short program printing option (fix #23163) (#23167) 2024-12-15 16:46:10 +02:00
Felipe Pena
fc8cd58782
json: fix memory leak on result messages (checked with json_option_raw_test.v, compiled with -fsanitize=address,pointer-compare,pointer-subtract) (#23172) 2024-12-15 16:43:43 +02:00
Delyan Angelov
c9542a2553
examples: cleanup examples/term.ui/event_viewer.v 2024-12-15 15:09:56 +02:00
Delyan Angelov
3d5f81b0e6
Revert "cgen: fix assert for alias to fixed array (fix #23149) (#23161)"
This reverts commit 9e71e324eb487fc70806131ceebd8a1070035763 , because of failing CI.
2024-12-15 10:05:49 +02:00
Felipe Pena
9e71e324eb
cgen: fix assert for alias to fixed array (fix #23149) (#23161) 2024-12-14 18:52:40 +02:00
Felipe Pena
881fabf0d0
cgen: fix codegen for array append on indexexpr (fix #23156) (#23160) 2024-12-14 18:40:10 +02:00
Felipe Pena
b39cad2f24
comptime: fix missing bool AttributeKind.kind (#23159) 2024-12-14 18:19:29 +02:00
Felipe Pena
78389c8a45
cgen: -parallel-cc cleanup (#23158) 2024-12-14 18:17:16 +02:00
Felipe Pena
4784685769
parser: allow type and other keywords as plain attr value (fix #23150) (#23154) 2024-12-14 13:05:52 +02:00
Felipe Pena
bf9bb5c0ec
fmt: fix shared receiver formatting (fix #23151) (#23153) 2024-12-14 13:02:46 +02:00
Felipe Pena
82a947bffa
markused: fix codegen for a .v program, that does just import json as _ (#23155) 2024-12-14 10:47:42 +02:00
Felipe Pena
d7850111a1
cgen: cleanup unneeded marker comments (#23152) 2024-12-14 09:05:45 +02:00
kbkpbot
c941c3d444
v.scanner: fix string interpolation for float e format (fix #22429) (#23147) 2024-12-13 21:59:34 +02:00
Delyan Angelov
f048bb373b
ci: fix for -cc tcc -no-retry-compilation, do not use more complex constants, but functions in vlib/math/vec/vec2_test.v 2024-12-13 19:50:55 +02:00
Felipe Pena
899c98505d
parallel-cc: make it work on gcc, clang and tcc, restore static on non-parallel builds + cleanups (#23148) 2024-12-13 19:14:07 +02:00
Delyan Angelov
73476c04d4
math.vec: add Vec2[T].angle_towards + tests for it 2024-12-13 18:57:27 +02:00
Delyan Angelov
25905df56e
math.vec: cleanup angle_between implementation, add more tests 2024-12-13 16:06:05 +02:00
Delyan Angelov
f581bb7d62
math.vec: fix Vec2.angle_between/1; add tests 2024-12-13 15:45:52 +02:00
Felipe Pena
610558d467
cgen: fix array fixed auto str on -cstrict (#23144) 2024-12-13 08:14:52 +02:00
Felipe Pena
0998bb772c
json: add primitive type validation (fix #23021) (#23142) 2024-12-13 08:10:51 +02:00
Felipe Pena
29f372ff5b
cgen: fix codegen for returning option reference from indexexpr (fix #23133) (#23139) 2024-12-13 08:03:35 +02:00
kbkpbot
d95dac4a01
math: fix math.log10() for -exclude @vlib/math/*.c.v (fix #23136) (#23140) 2024-12-12 23:43:04 +02:00
Delyan Angelov
2d09b165e4
ci: avoid false positives for the existing PRs, by comment out the task V self compilation with -usecache on macos for now (#23145) 2024-12-12 23:41:39 +02:00
Alexander Medvednikov
1d54ad2605 cgen: move const and global logic to a separate file 2024-12-12 15:07:03 +03:00
Alexander Medvednikov
17f56000aa all: parallel-cc fixes 2024-12-12 15:04:26 +03:00
YukiiVR
c4d8687f74
gg: add icon field to gg.Config, for easier access (fix #23135) (#23138) 2024-12-12 03:54:35 +02:00
Felipe Pena
b0ae5e930b
checker, cgen: cleanup comptime var marking on checker, optimizing the way it is checked on cgen (#23134) 2024-12-11 21:32:41 +02:00
Felipe Pena
77e45946f2
cgen: fix different option alias type as fn arg (fix #23086) (#23131) 2024-12-11 16:07:39 +02:00
Felipe Pena
2d314fc9b0
cgen: fix codegen for generic selector expr (fix #22974) (#23132) 2024-12-11 16:05:25 +02:00
Felipe Pena
09fff08611
checker: fix missing check on range expr when high var is same iteration value var (#23130) 2024-12-11 14:31:31 +02:00
Delyan Angelov
fdfb3896e9
math: use libc wrappers for math.log2/1, math.log10/1, math.log1p/1 and math.log_b/1; make assert math.log10(10) == 1.0 pass in the common case (#23129) 2024-12-11 12:06:33 +02:00
Felipe Pena
23bcd915ca
checker, cgen: fix for in for interface type (fix #23119) (#23127) 2024-12-11 06:13:44 +02:00
Felipe Pena
82c9d4ab5b
checker, cgen: fix codegen for returning different option alias type (fix #23087) (#23125) 2024-12-11 06:07:29 +02:00
Delyan Angelov
ef7fdd0f84
math.big: fix assert big.integer_from_int(1) == big.integer_from_bytes([u8(0), 0, 0, 0, 1]) (fix #23115) (#23124) 2024-12-10 18:18:30 +02:00
Felipe Pena
6db0a8b7ea
cgen: cleanup extra whitespaces and unneeded comments (#23122) 2024-12-10 18:13:30 +02:00
Felipe Pena
7d47219808
checker: fix immutable to mutable reference (fix #22653) (#22663) 2024-12-10 15:15:26 +02:00
Felipe Pena
437631e80f
cgen: fix sort fn definitions (fix #23120) (#23121) 2024-12-10 15:03:01 +02:00
yuyi
43e27d2443
cgen: fix array map to fixed array (fix #23116) (#23118) 2024-12-10 07:40:49 +02:00
MCausc78
031ed0fa63
Rename discord.v's org name to vcv88 (#23117) 2024-12-10 06:42:28 +02:00