19797 Commits

Author SHA1 Message Date
Delyan Angelov
a4101f4ed8
checker: allow for module no_main programs, that can redefine their own main function, or not define any of their own as well 2025-02-12 00:49:52 +02:00
Delyan Angelov
126f5c24e4
examples: add more control keys to tunnel.v 2025-02-12 00:28:47 +02:00
Delyan Angelov
fa4e61cee0
examples: add examples/hot_reload/tunnel.v 2025-02-11 22:43:54 +02:00
kbkpbot
793487fd6d
cgen,builder: fix windows 32bit dll function name mangle (fix #23689) (#23690) weekly.2025.07 2025-02-11 17:48:19 +02:00
Felipe Pena
01096bcafb
cgen: fix codegen for array fixed on if and match expr (fix #23577, fix #23589) (#23682) 2025-02-11 17:37:42 +02:00
Delyan Angelov
b5d6f406af
ci: run FreeBSD on a VM in github ci, instead of on the Cirrus service (which stopped working today) (#23692) 2025-02-11 17:35:04 +02:00
Delyan Angelov
2054d46722
tools: fix show_manual_release_cmd.vsh, use .strftime(%V) for calculating the proper default week number 2025-02-11 10:19:46 +02:00
Swastik Baranwal
a65d5ae10f
checker: disallow arr = voidptr(0) (fix #23675) (#23687) 2025-02-11 10:09:59 +02:00
Delyan Angelov
735046a3d4
v.builder: cleanup quoted path handling (followup to #23686) (#23688) 2025-02-11 10:08:25 +02:00
Larsimusrex
b94da8a6e3
v.builder: add os.quoted_path() to os.system calls using v.pref.out_name, for the compress flag (fix #23685) (#23686) 2025-02-10 21:53:09 +02:00
kbkpbot
f053f99406
net.http.file: use urllib decode uri, to handle urls to files that have unicode characters in their name (fix #23683) (#23684) 2025-02-10 21:36:56 +02:00
Delyan Angelov
dacc738c96
thirdparty: improve -cstrict -cc clang-18 -prod compatibility for programs that do import net.mbedtls 2025-02-10 21:18:57 +02:00
Delyan Angelov
e129ec5b7a
doc: add doc/c_and_v_type_interoperability.md (#23681) 2025-02-10 11:16:49 +02:00
Delyan Angelov
adbc869626
cgen: improve support for v -path bootstrap_alternative_backend/ run simple.v (#23679) 2025-02-09 21:23:14 +02:00
penguindark
089778e55e
encoding.csv: add support for multithreading to encoding.csv.RandomAccessReader (#23677) 2025-02-09 16:50:49 +02:00
blackshirt
f3493e126a
crypto.ecdsa: migrate generate_key and simplify it (part 3) (#23662) 2025-02-09 16:23:11 +02:00
Alexander Mandrikov
dd063faf65
orm,cgen: fix @[sql: serial] and @[serial] are not the same (fix #23346) (#23678) 2025-02-09 10:54:45 +02:00
Felipe Pena
4c14e8e8de
cgen: fix codegen for a const assigned a fixed array, initialized with unsafe exprs (fix #23674) (#23676) 2025-02-09 09:30:44 +02:00
Felipe Pena
0632822fd4
cgen: fix codegen for sumtype cast from option variants on map_set (fix #23654) (#23669) 2025-02-08 20:31:23 +02:00
Felipe Pena
c025cf4ebc
checker: cleanup check_types, cache repeated Type.is_any_kind_of_pointer() calls (#23671) 2025-02-08 20:30:35 +02:00
Felipe Pena
4f0e03540a
cgen: cleanup gen_fixed_array_equality_fn, rm repeated calls (#23672) 2025-02-08 20:27:36 +02:00
Mike Ward
8bbaab396f
doc: remove the paragraph about vfmt renaming go to spawn (already finished) (#23673) 2025-02-08 17:45:55 +02:00
Felipe Pena
7720b5f49a
checker: cleanup check_expected_call_arg - rm repeated calls to got.is_ptr() and expected.is_ptr() (#23670) 2025-02-08 17:43:51 +02:00
Adam Oates
6e3f6acffc
gg: fix incorrect Event.mouse_x and Event.mouse_y on gg.Context.event_fn and gg.Context.on_event on HiDPI displays (#23668) 2025-02-08 12:20:46 +02:00
Felipe Pena
a4541c2351
checker: fix sumtype variant option type mismatch (#23659) 2025-02-07 16:48:22 +02:00
Felipe Pena
c01855c588
cgen: fix $if typeof[T]().idx, $if typeof[T]().unaliased_typ checking (#23665) 2025-02-07 16:47:09 +02:00
Delyan Angelov
10f2fe196a
examples,gg: modify all remaining calls to fons.add_font_mem/3 to use an array.clone() 2025-02-07 14:39:36 +02:00
Delyan Angelov
16a6e45274
gg: fix ./v -gc none -autofree run examples/tetris/ (avoid return s1 + s2 + s3, clone the arrays, passed to the fontstash wrapper) 2025-02-07 14:29:43 +02:00
Delyan Angelov
331178b23b
ast,cgen,rand: reduce interpolations when a method is not found in Table.find_method/2; merge rand.constants back to rand.v (#23660) 2025-02-06 23:23:47 +02:00
Delyan Angelov
c9235b87f2
cgen: remove commented code blocks using if true { 2025-02-06 09:35:11 +02:00
Delyan Angelov
af3eda66da
docs: use a plain block scope {}, instead of if true { in the section that shows that shadowing of locals is not allowed 2025-02-06 09:33:19 +02:00
Delyan Angelov
2b479b5eb0
math: cleanup floor.v, remove the last goto in the math module 2025-02-06 09:29:21 +02:00
Delyan Angelov
d1ec41cd6a
math: cleanup gamma.v: remove if true { and gotos; move constants closer to the places that do use them 2025-02-06 09:22:45 +02:00
Felipe Pena
4c8c892b96
cgen: fix codegen for option sumtype with option variant (fix #23653) (#23656) 2025-02-05 17:43:06 +02:00
Delyan Angelov
424c453610
fix warning when compiling cmd/tools/vast/vast.v, add description of -s to ast.txt too 2025-02-05 15:59:55 +02:00
Delyan Angelov
94a97f6173
tools: implement an -s option for v ast, to skip all nodes with default values like [], {}, 0, false; with it v ast -pts examples/hello_world.v | wc -l is 36 lines 2025-02-05 15:53:56 +02:00
Felipe Pena
eecaa64e9d
cgen: fix codegen for option value on map_set (fix #23650) (#23652) weekly.2025.06 2025-02-04 15:23:15 +02:00
Delyan Angelov
627cb37cca
tools: describe a more direct way to use a v run shebang in cmd/tools/vrun 2025-02-04 15:04:30 +02:00
Delyan Angelov
7ea5b4a020
tools: add a small utility script cmd/tools/vrun, to make it easier to use .vsh scripts on systems, with /usr/bin/env still not supporting -S 2025-02-04 14:54:38 +02:00
blackshirt
d30598bbca
crypto.ecdsa: migrate ecdsa.PrivateKey.new() to use a high level API (#23640) 2025-02-04 11:13:56 +02:00
gechandesu
4f85b35bb9
builtin: add string.split_by_space() (#23651) 2025-02-04 11:12:42 +02:00
Delyan Angelov
99a587af95
tools: let v test . show the running _test.v files each minute (set by VTEST_REPORT_RUNNING_PERIOD_MS); diagnose stuck windows gcc CI jobs (#23649) 2025-02-04 10:33:51 +02:00
Felipe Pena
abcebfed68
cgen: fix codegen for for or-block (fix #23625) (#23644) 2025-02-03 23:53:54 +02:00
Delyan Angelov
319eb83525
log: add log.use_stdout(), use it to silence the transition note for the most commonly used V tools/examples (#23642) 2025-02-03 12:37:57 +02:00
Felipe Pena
23c3af8b4d
cgen: fix unwrap option ptr selector (fix #23631) (#23638) 2025-02-03 12:32:26 +02:00
Eliyaan (Nopana)
7e157caed7
tools: add v reduce program.v, in order to make smaller reproductions (rpdc.v files), before filing cgen bugs (#23636) 2025-02-03 12:28:47 +02:00
kbkpbot
d78bf1122d
os: add disk_usage/1 (#23634) 2025-02-02 19:32:21 +02:00
Delyan Angelov
d4298cae23
docs: describe the v test options VTEST_HIDE_OK and -progress in TESTS.md (#23635) 2025-02-02 19:30:18 +02:00
Delyan Angelov
0132814512
cgen: fix hash functions for map[Enum]Value, and enum Enum as u64 { (fix #23630) (#23632) 2025-02-02 15:23:51 +02:00
Felipe Pena
f291ed8541
builtin: make public the FnGC_WarnCB alias (#23633) 2025-02-02 13:45:28 +02:00