18949 Commits

Author SHA1 Message Date
yuyi
6ac1d08c75
checker: fix generec fn returning generic closure (#23047) 2024-12-02 20:55:39 +03:00
Delyan Angelov
b383cce382
tools: describe more precisely what commands are used by oldv, so it can fail early, with a meaningful error message, if they are not present. weekly.2024.49 2024-12-02 10:59:52 +02:00
yuyi
b79b4bfc81
cgen: cleanup gen_jsons() a bit (#23044) 2024-12-02 07:29:31 +02:00
Swastik Baranwal
c45b8d492a
cgen: fix struct update embed expr for fixed arrays (fix #22999) (#23040) 2024-12-02 07:27:32 +02:00
Hitalo Souza
f29fb5a9f5
x.json2.decoder2: fix wrong sumtype and struct decoder in array (#23041) 2024-12-02 07:21:37 +02:00
Felipe Pena
3036a5afc6
cgen: fix callexpr or-expr codegen on const decl (fix #23029) (#23043) 2024-12-02 07:17:59 +02:00
Elsie
f3d0c53671
orm: fix list generation and escape loose backtick (#23039) 2024-12-02 00:26:16 +02:00
Delyan Angelov
37e2fdbafb
net.mbedtls: support compiling with -d mbedtls_client_read_timeout_ms=7000, -d mbedtls_server_read_timeout_ms=60000, and -d trace_mbedtls_timeouts 2024-12-01 20:10:14 +02:00
Felipe Pena
e2d3881516
checker, cgen: fix array.delete_many() codegen (fix #23024) (#23025) 2024-12-01 19:21:10 +02:00
Delyan Angelov
56a381fd1e
tools: use -Wno-error=incompatible-pointer-types in oldv, which is more permissive than just -Wno-error=incompatible-function-pointer-types, and works with gcc too, not just clang 2024-12-01 18:41:46 +02:00
Delyan Angelov
13fd599619
tools: improve oldv compatibility for using new stricter C compilers like clang-18, to compile older V versions from 2020 and 2019 2024-12-01 18:28:08 +02:00
Hitalo Souza
d8021bd459
x.json2.decoder2: support nesteded maps (#23027) 2024-12-01 14:08:37 +02:00
Felipe Pena
e421cb2bc2
cgen: fix autostr for interface with circular type (fix #23022) (#23026) 2024-12-01 11:21:26 +02:00
Alexander Medvednikov
40dc775974 markused: do not make it the default for now 2024-12-01 02:12:22 +03:00
Felipe Pena
a85071878e
v: fix all -skip-unused issues so that it can be enabled by default (#23002) 2024-12-01 02:11:09 +03:00
Delyan Angelov
6f4c59e002
os: add pub (mut f File) write_le[T](x T) !, pub (mut f File) write_be[T](x T) ! + read equivalents, add tests 2024-11-30 23:35:03 +02:00
Felipe Pena
602b097db5
markused: fixing missing info tracking on walker for {...foo}, struct embeds, map[k]Struct and others (#23008) 2024-11-30 08:42:46 +02:00
Felipe Pena
a66c4c9340
json: fix decode codegen for []&type (fix #23007) (#23010) 2024-11-30 08:40:14 +02:00
Delyan Angelov
f2c281eadf
markused: only add .vtest_ functions, *when* compiling _test.v files (#23003) 2024-11-29 02:46:09 +02:00
Delyan Angelov
c7ee45fc64
strings.textscanner, examples: add TextScanner .skip_whitespace/0, .peek_u8/0, .peek_n_u8/0, add examples/mini_calculator_recursive_descent.v (#23001) 2024-11-28 21:17:24 +02:00
Delyan Angelov
acad4c2810
checker: fix $res() used in defer {} blocks with more statements, add a test (#22998) 2024-11-28 13:58:19 +02:00
Delyan Angelov
153b7f00df
time: add module helpers unix_milli/1, unix_micro/1, unix_nano/1 and tests for them (#22997) 2024-11-28 12:47:05 +02:00
yuyi
4a7f8cc139
cgen: fix sumtype with embedded struct of option field (fix #22984) (#22996) 2024-11-28 10:51:00 +02:00
Felipe Pena
5e78eef08a
cgen: fix array fixed on update expr and alias type to multi dimension of fixed array (fix #22971) (#22972) 2024-11-28 10:38:43 +02:00
Felipe Pena
2325b1b4bc
v: fix -skip-unused with comptime (#22994) 2024-11-28 10:37:47 +02:00
Felipe Pena
ae4a9047c1
v: missing -skip-unused fixes (#22978) 2024-11-28 01:03:03 +02:00
Felipe Pena
066384ce8c
checker: allow array sort with callexpr (#22989) 2024-11-27 22:03:14 +03:00
Felipe Pena
273adcc35c
cgen: patch missing gettid() on glibc < 2.30 (#22987) 2024-11-27 16:42:30 +02:00
Delyan Angelov
8703dc1684
v.util, v.builder, v.cgen: add thread timing stats too, on -show-timings -stats (#22990) 2024-11-27 16:40:31 +02:00
Delyan Angelov
2c3ad8ddf6 tools: make oldv aware of when to pass -no-parallel when bootstrapping V from v.c (fix #22990, part 2) 2024-11-27 16:36:24 +02:00
Delyan Angelov
b67b8bfcc8
runtime: force runtime.nr_jobs() to return 1, while V is bootstrapping itself, from vc/ source, that was compiled with -os cross (fix #22991) 2024-11-27 16:20:14 +02:00
Leo Developer
aeaf607259
log: tag log.fatal with @[noreturn] (#22986) 2024-11-27 16:29:13 +03:00
Delyan Angelov
844d89fd09
parser,checker,ast: support @[must_use] tag for fns/methods, and an experimental -check-result option (#22983) 2024-11-27 07:11:40 +02:00
Delyan Angelov
4897d7860e
checker: prevent a compiler panic, while running v -check file.v on files with parser errors (fix #22981) (#22982) 2024-11-27 03:00:21 +02:00
Delyan Angelov
8bc94dd41f
ci: extract the VTL&VSL jobs from v_apps_and_modules_compile_ci.yml to vsl_and_vtl_compile_ci.yml 2024-11-27 02:21:17 +02:00
Delyan Angelov
03540b7462
v: reduce usage of mathutil 2024-11-27 00:56:17 +02:00
Alexander Medvednikov
5f1d7898db markused: @[markused] fix 2024-11-26 19:37:34 +03:00
Alexander Medvednikov
7b8089b392 markused: fix veb actions 2024-11-26 12:55:16 +03:00
Swastik Baranwal
f2387ab16e
cgen: allow unwrapping of foo.bar as string, where foo.bar is ?string (fix #22960) (#22973) 2024-11-26 10:50:08 +02:00
Felipe Pena
0e0408f9b2
v: fix -skip-unused feature for some tests (#22976) 2024-11-26 09:25:48 +02:00
Delyan Angelov
e61475e0be
v.pkgconfig: add /data/data/com.termux/files/usr/lib/pkgconfig to the list of locations to search for .pc files weekly.2024.48 2024-11-25 22:26:08 +02:00
Alexander Medvednikov
c03b4f68fc markused: make work with json 2024-11-25 22:36:31 +03:00
Delyan Angelov
95e5ba44ae
docs: add a small sumtype match example in the Match section too 2024-11-25 21:11:21 +02:00
Felipe Pena
19318110d9
cgen: reduce code for returning and extra whitespaces on return (#22967) 2024-11-25 18:25:26 +02:00
Delyan Angelov
b801083f13
Revert "os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966)"
This reverts commit 93009823f992176166bf5e5d90c9627adb46bdc0.
2024-11-25 15:10:15 +02:00
Elsie
93009823f9
os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966) 2024-11-25 12:17:33 +02:00
blackshirt
94905820e6
x.encoding.asn1: cleanup code, improve performance (#22968) 2024-11-25 11:08:54 +02:00
Felipe Pena
904bccb564
cgen: fix codegen for option on concatexpr (fix #22951) (#22964) 2024-11-25 02:18:15 +02:00
Felipe Pena
335357239a
cgen: fix codegen for result/option propagation out of fn context (fix #22961) (#22963) 2024-11-25 01:15:04 +02:00
Swastik Baranwal
5cd84d4565
cgen: allow unwrapping of x as string expr, when x is a ?string value (#22953) 2024-11-25 01:02:04 +02:00