18949 Commits

Author SHA1 Message Date
Felipe Pena
7612650566
v: inline some fns (#22965) 2024-11-25 00:36:05 +02:00
Felipe Pena
18d514f429
cgen: cleanup label comments in the generated C code (#22962) 2024-11-25 00:29:59 +02:00
Felipe Pena
e86b526947
checker: fix mut var option unwrap with != none, support if mut x != none { too (fix #22936) (#22943) 2024-11-24 14:58:07 +02:00
Hedgegod
cbfe1b8862
gg: use a larger fontstash text atlas by default (2048x2048, and customizable), instead of 512x512 (fix #21610) (#22959) 2024-11-24 14:35:34 +02:00
Felipe Pena
c1df71abcc
checker, cgen: fix if define comptime checking (fix #22906) (#22946) 2024-11-24 13:32:28 +02:00
Elsie
1345eac570
vet: make v vet produce a nicer note, including the offending files, instead of file.v (#22957) 2024-11-24 12:21:16 +02:00
Felipe Pena
e4d24e8987
cgen: fix enum value string interpolation, like its declared enum underlying type (fix #22938) (#22945) 2024-11-23 21:39:41 +02:00
Felipe Pena
f8fb57d1aa
checker: fix or-expr check on invalid method call (fix #22949) (#22950) 2024-11-23 21:35:44 +02:00
blackshirt
2f53e2d219
x.encoding.asn1: improve performance (#22948) 2024-11-23 19:00:46 +02:00
Vithorio Polten
f89cffad53
net.http: send Host headers with port (when the port is != 80 or 443) (fix #22941) (#22942) 2024-11-23 18:51:28 +02:00
Felipe Pena
393e4ea8b2
docs: update section about Enum using reserved keywords (#22944) 2024-11-23 14:17:45 +02:00
Delyan Angelov
660f73395e
docs: change "See also" link in the println section to point to the String interpolation section 2024-11-23 14:03:13 +02:00
Delyan Angelov
1449689f2b v.builder: fix ./v -check -stats examples/hello_world.v 2024-11-23 07:46:54 +02:00
yuyi
7d5e513c69
cgen: fix dump fixed array on array append (fix #22935) (#22940) 2024-11-22 13:06:52 +02:00
Hitalo Souza
05377f3c03
examples: add a cpu_features/ folder, with several examples, using SSE and MMX assembly instructions (#22645) 2024-11-22 01:20:51 +02:00
Delyan Angelov
27b728b600
checker,cgen: move the msvc compiler does not support inline assembly to cgen (so it will only get triggered, when ASM blocks are still present, in what is passed to cgen) 2024-11-21 22:24:02 +02:00
Delyan Angelov
81129d197b
math.big: use @[manualfree] to workaround -autofree compilation issues with gitly, and other projects using crypto.rand and math.big 2024-11-21 22:06:49 +02:00
blackshirt
58fc4dead5
x.encoding.asn1: clean up the source code of the module after the recent compiler changes and bugfixes (#22932) 2024-11-21 13:05:00 +02:00
yuyi
17f962dbed
cgen: fix aliased fixed array option fn call (fix #22927) (#22934) 2024-11-21 12:52:05 +02:00
Isaiah
e384e74142
cgen: fix option unwrap for fields of interface type (fixes #22930) (#22931) 2024-11-21 12:44:56 +02:00
Martin Skou
c2d96c33b3
veb: fix large file transfer timeout (fix #22489) (#22924) 2024-11-21 08:53:19 +02:00
yuyi
9490115c9a
cgen: fix aliases of fixed array append to array (fix #22926) (#22929) 2024-11-21 08:51:45 +02:00
yuyi
19ea71b35a
cgen: fix aliases of fixed array infix expression (fix #22925) (#22928) 2024-11-21 08:50:01 +02:00
Ekopalypse
ca6727303d
os: use _wputenv instead of _putenv to stay in sync with _wgetenv (fix changing env variables with non ASCII content on windows) (#22920) 2024-11-21 01:33:02 +02:00
Delyan Angelov
b995e64be9
thirdparty: enable MBEDTLS_THREADING_C and MBEDTLS_THREADING_PTHREAD on FreeBSD too 2024-11-21 01:31:00 +02:00
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