18960 Commits

Author SHA1 Message Date
Felipe Pena
00148d11fc
checker: add a notice for global variable redeclarations (#23162) 2024-12-17 16:34:44 +02:00
kbkpbot
a1de8dbd10
vlib: add new rand.cuid2 module (#23181) 2024-12-17 16:32:24 +02:00
larpon
87e017e618
vcomplete: sync all flags from pref.v to auto_complete_flags (#23189) 2024-12-17 14:43:35 +02:00
yuyi
9a6e335601
cgen: fix assign optional aliases of fixed array (fix #23185) (#23188) 2024-12-17 14:39:27 +02:00
Felipe Pena
719fa4dc13
cgen, checker: fix option unwrapping and call from option struct field (#23182) 2024-12-17 12:38:44 +02:00
Alexander Medvednikov
597d4e2239 cbuilder: store split up C files in vtmp 2024-12-17 13:07:00 +03:00
Alexander Medvednikov
a8484387cb cbuilder: remove flto with parallel-cc, it slowed down linking 10x 2024-12-17 12:58:07 +03:00
Felipe Pena
eb74422773
cgen: cleanup g.write_fn_ptr_decl (#23186) 2024-12-17 11:33:09 +02:00
Delyan Angelov
d5e50c2f20
ci: fix option_fn_voidptr_test.v after a200c45 weekly.2024.51 2024-12-17 09:06:53 +02:00
JalonSolov
70edd21c80
ci: remove extra EOL from linux_ci.yml (#23187) 2024-12-17 03:26:05 +03:00
Alexander Medvednikov
b3d2a3faaf ci: linux_ci.vsh; cgen: parallel-cc fixes 2024-12-17 02:31:25 +03:00
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