18774 Commits

Author SHA1 Message Date
Delyan Angelov
75ae93d80b
ci,thirdparty: enable MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C only on Linux for now (fix windows CI) 2024-11-21 01:13:11 +02:00
Delyan Angelov
9f6150ee7b
net.mbedtls: bump mbedtls_ssl_conf_read_timeout value to 550ms (tested with v run examples/net_t.v) 2024-11-21 00:15:18 +02:00
Delyan Angelov
4b015c8bc0
net.mbedtls: define MBEDTLS_THREADING_PTHREAD, in mbedtls_config.h; call C.mbedtls_ssl_conf_read_timeout explicitly in the wrapper, with a shorter timeout value of 317ms (determined experimentally) 2024-11-20 23:42:19 +02:00
Delyan Angelov
fbc3fc6fcf
tools: cleanup the output for failing tests with v test . (#22921) 2024-11-20 14:20:33 +02:00
Felipe Pena
2fbb3df9fa
cgen: fix codegen for returning option aliased fixed array (fix #22910, fix #22911) (#22912) 2024-11-20 10:54:55 +02:00
Bruno-Vdr
26837d4862
docs: add module hierarchy section (#22919) weekly.2024.47 2024-11-20 09:00:23 +02:00
Jose Mendoza
ad24dbdff1
v.scanner: remove Scanner.is_started field (#22918) 2024-11-20 05:18:03 +02:00
Delyan Angelov
355945e915
ci: check that more apps/modules do compile with -skip-unused (#22904) 2024-11-20 05:11:19 +02:00
Felipe Pena
dc15f9d333
cgen: fix codegen for assigning aliased fixed array (fix #22907) (#22909) 2024-11-19 18:12:48 +02:00
yuyi
67d53aaac6
parser: fix block position's last line (#22913) 2024-11-19 16:52:16 +02:00
Delyan Angelov
db6ac0c613 ci: update discord.v commit hash, to its latest version, that compiles cleanly with latest V 2024-11-19 14:31:46 +02:00
Delyan Angelov
6c98233946
ci: fix for v build-tools 2024-11-19 12:08:27 +02:00
Delyan Angelov
09f8b56904
v.markused: cleanup, extract more fields from ast.Table to ast.UsedFeatures, to reduce its size 2024-11-19 12:01:29 +02:00
Turiiya
b0dc186a2c
parser: optimize method parameter detection in used check (#22915) 2024-11-19 10:56:21 +02:00
yuyi
25f8626c7a
parser: minor cleanup in ident() (#22916) 2024-11-19 10:45:17 +02:00
Turiiya
931a7e9ab7
vdoc: use directional overflow for search division (#22914) 2024-11-19 08:51:16 +02:00
Felipe Pena
3d302a6dad
v: add selector option unwrapping inside if tree.root != none { (#22895) 2024-11-19 08:41:50 +02:00
Delyan Angelov
ae0fdbd834
v.markused: process the init statements in for init; cond; inc { too (#22908) 2024-11-19 08:36:26 +02:00
Felipe Pena
faac1fd31c
cgen: fix codegen for alias type interface methods (fix #22901) (#22902) 2024-11-19 01:25:47 +02:00
Delyan Angelov
0942bb2fc8
v.markused: vfmt markused.v 2024-11-19 00:44:15 +02:00
Delyan Angelov
bb2521e957
v.markused: add tos5 to the whitelist, when C.cJSON_Parse is declared (i.e. after import json) 2024-11-19 00:43:34 +02:00
Delyan Angelov
4e62b53ab6
docs: change instructions for cloning the V repository to use --depth=1 (#22905) 2024-11-18 23:24:02 +02:00
Delyan Angelov
a9ae3765e7
strconv: remove commented code 2024-11-18 23:07:32 +02:00
Delyan Angelov
488c2ebfff
v.debug: elminate another import math that just used the min/max functions 2024-11-18 23:05:25 +02:00
Delyan Angelov
2ba1271a2e
json: mark json_print_pretty/1 with @[markused] (used by cgen) 2024-11-18 22:39:20 +02:00
Delyan Angelov
3544d3c144
builtin: make int_min/2 and int_max/2 public 2024-11-18 22:38:46 +02:00
Delyan Angelov
e72c9d0e87
builtin: add int_min/2 and int_max/2 + tests 2024-11-18 22:36:09 +02:00
yuyi
7a4b3abd07
fmt: fix formating non-unsafe blocks with break line (fix #22900) (#22903) 2024-11-18 21:57:36 +02:00
Delyan Angelov
e4e0604611
tests: improve the diagnostic information from init_global_test.v 2024-11-18 20:30:32 +02:00
Felipe Pena
aca5358061
cgen: fix codegen for returning a fixed array as a result (fix #22894) (#22896) 2024-11-18 19:37:59 +02:00
Delyan Angelov
61e38b9bf1
cgen: implement -d trace_gen_wanted -d trace_gen_wanted_value="message = _SLIT0", cleanup text_manipulation.v 2024-11-18 15:43:25 +02:00
Delyan Angelov
791d0d30ea
v: use -check-unused-fn-args to cleanup the compiler code itself 2024-11-18 12:10:03 +02:00
Turiiya
647901d6ab
cgen: generate json array line on uniform indent lvl (#22899) 2024-11-18 11:09:06 +02:00
Turiiya
5e9e09f16d
term: improve performance of repeated can_show_color_on_stdout and can_show_color_on_stderr calls, by caching their results (#22893) 2024-11-18 11:03:27 +02:00
Turiiya
8c4de2000b
cgen, json: make errors more informative (resolve empty panics) (related: #21184) (#22898) 2024-11-18 10:59:39 +02:00
Felipe Pena
73786b820c
cgen, checker: fix codegen for fixed array initialization with a fn call (fix #22887) (#22891) 2024-11-18 10:47:26 +02:00
Turiiya
3bf459c0d2
checker: fix json.encode_pretty with a struct init expression argument (#22897) 2024-11-18 10:42:34 +02:00
Felipe Pena
47c785886c
cgen: fix codegen for $if in an if expression, when compiled with -g (fix #22873) (#22888) 2024-11-18 10:37:12 +02:00
Felipe Pena
983511f21d
v.markused: fix -skip-unused error with aggregate method call (fix #22852 - building vsql) (#22883) 2024-11-18 10:34:54 +02:00
Delyan Angelov
5bba92a65a
vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +02:00
Bruno-Vdr
2390e58da0
docs: increase keyword number from 44 to 45 in documentation Appendix I: Keywords (#22890) 2024-11-17 19:52:16 +02:00
Bruno-Vdr
df220b6eb3
docs: add the implements keyword to the appendix of all V keywords (#22889) 2024-11-17 19:17:21 +02:00
Felipe Pena
f1333be65e
checker: fix alias to struct generic type (fix #22866) (#22872) 2024-11-17 13:35:04 +02:00
Felipe Pena
af875ede92
v: do a minor optimizations on cmd/v (#22880) 2024-11-17 13:17:19 +02:00
yuyi
d2cb41c887
builtin: cleanup by merging fixed array tests into one test file (#22884) 2024-11-17 12:58:36 +02:00
Felipe Pena
864845bccd
cgen: fix array fixed code generation for more than 1 dimension (fix #22866) (#22876) 2024-11-17 10:12:43 +02:00
Delyan Angelov
e234a2d37e tools: make compare_pr_to_master.v use /opt/homebrew/bin/gtime on macos, and a pure V fallback, not just for windows 2024-11-17 09:05:42 +02:00
Delyan Angelov
b4fd5d331f tools: fix compilation of hw with vnew -> vold, in compare_pr_to_master.v 2024-11-17 08:57:29 +02:00
Turiiya
ca236e967e
parser, checker, pref: allow getting notified about unused function params (#22879) 2024-11-17 08:52:03 +02:00
Felipe Pena
466c282d30
v.markused: cleanup the implementation of mark_used/3 (#22877) 2024-11-17 08:36:00 +02:00