19473 Commits

Author SHA1 Message Date
Felipe Pena
eab148eaa5
cgen: fix map with an Enum as key type, with size < 4 bytes on tcc (fix #23714) (#23738) 2025-02-16 17:04:20 +02:00
Delyan Angelov
2015aa3c2e
parser: remove commented code 2025-02-16 09:20:41 +02:00
Delyan Angelov
8e380bc5ea
parser: add support for -d trace_parse_file_path_and_mod, to help diagnosing module lookup problems 2025-02-16 09:02:27 +02:00
Delyan Angelov
46447f1262
tools: move cmd/tools/vdoc/doc to cmd/tools/vdoc/document, so that it can be imported from other programs through -path, without conflicting with the top level doc/ folder in the main repo (#23733) 2025-02-15 23:12:57 +02:00
Felipe Pena
00a08c4fbe
checker, cgen: fix sumtype smartcasted var as inherited var (fix #23716) (#23731) 2025-02-15 22:59:45 +02:00
Felipe Pena
f4aa139f8d
cgen: fix codegen for nested if on return (fix #23723) (#23729) 2025-02-15 22:54:17 +02:00
Felipe Pena
ae899e67fe
checker: fix call from unknown enum (fix #23728) (#23730) 2025-02-15 20:12:28 +02:00
kbkpbot
f7841e125b
checker: check and error for invalid utf8 string literals (#23721) 2025-02-15 19:32:38 +02:00
Anonymous User
b4182301ae
veb.csrf: do not print anything by default, add an verbose: true option, to restore the old behavior if needed (#23725) 2025-02-15 16:15:32 +02:00
Delyan Angelov
b438f9229d
Dockerfile.alpine: use the updated ENV syntax to avoid deprecation warning with the official Docker package, add rsync too, so the container can be used for running/testing oldv 2025-02-15 16:10:45 +02:00
Delyan Angelov
49fb7ca501
make: show instructions about installing a C compiler, when the bootstrap compilation with cc fails (#23718) 2025-02-14 08:13:39 +02:00
Eliyaan (Nopana)
81a2e7a772
tools: fix warnings in v reduce (#23709) 2025-02-13 21:32:01 +02:00
Delyan Angelov
2f700c04b7
builtin,cgen: fix issues found with the stricter sanitizers in clang-18 on Ubuntu 24.04 (#23710) 2025-02-13 21:27:39 +02:00
Delyan Angelov
e9c23144a3
pref: add Preferences.vroot_file/1 (done here, without using it, to ease the bootstrapping of the cheaders extraction, that will follow next) 2025-02-13 12:21:44 +02:00
Delyan Angelov
025e70314c
cgen: use global_g.out << g.out instead of global_g.out.write(g.out) or { panic(err) } 2025-02-13 11:49:32 +02:00
Felipe Pena
92f436db12
checker: fix match branch checking of nonreturn call on last expr (fix #23698) (#23699) 2025-02-12 15:45:42 +02:00
Felipe Pena
02ca30acf0
cgen: fix codegen for returning an initialised fixed array (fix #23693) (#23700) 2025-02-12 15:41:42 +02:00
Delyan Angelov
e3d8cdc357
time: improve the robustness of time_test.c.v (check if the diff is within ±1 second of the current timezone difference) 2025-02-12 15:17:51 +02:00
Delyan Angelov
d1524fee76
tools: improve v reduce output; bump version, warn on failed string_reproduces/3, but continue to run (#23697) 2025-02-12 14:56:18 +02:00
Delyan Angelov
8e29ff7214
time: reduce chances of failures on the CI, by time_test.c.v; make the failure diagnostic easier 2025-02-12 14:55:10 +02:00
Delyan Angelov
c58563ce5a
tools: improve v reduce output; bump version, warn on failed string_reproduces/3, but continue to run 2025-02-12 14:52:58 +02:00
Delyan Angelov
4baa6cd70e
tests: add more tests for importing @keyword as function names, and for V enums with c++ keyword field names (#23696) 2025-02-12 12:03:13 +02:00
Eliyaan (Nopana)
6ed56eef64
tools: improve the v reduce parser for functions, and add more loops to reduce more (#23694) 2025-02-12 10:40:51 +02:00
Delyan Angelov
694cac9443
ci,cgen: fix windows tests 2025-02-12 03:00:02 +02:00
Delyan Angelov
305c56dbf7
cgen: fix #preinclude, add test case for #postinclude too 2025-02-12 01:48:04 +02:00
Delyan Angelov
d82757abd9
checker,cgen: add support for a #postinclude directive 2025-02-12 01:18:16 +02:00
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