Commit graph

19436 commits

Author SHA1 Message Date
kbkpbot
7549020d1f
runtime: add free_memory/0 implementation for FreeBSD too (fix #23581) (#23594) 2025-01-29 23:38:14 +02:00
JalonSolov
1d700bef99
doc: rework strings section to clarify (#23610) 2025-01-29 19:53:45 +02:00
Delyan Angelov
d0ce8a2210
parser: keep track of the number of all scanned tokens too, and show it with -stats 2025-01-29 15:59:34 +02:00
Felipe Pena
8d51820620
parser: fix anon fn return type option/result followed by comment parsing in vfmt mode (fix #23607) (#23608) 2025-01-29 13:36:45 +02:00
Delyan Angelov
d0329181b5
v.debug: fix expect failures in v test-all, when running locally on Ubuntu (#23605) 2025-01-29 10:21:32 +02:00
Delyan Angelov
6fa3a4ebee
tools: make v check-md . print the actual length of lines too, when reporting errors/warnings about them (#23606) 2025-01-29 10:19:01 +02:00
JalonSolov
1197615b1c
docs: improve string description (#23604) 2025-01-29 01:34:41 +02:00
Laurent Cheylus
85f388958e
builtin: fix tests for map (fix #23601) (#23602) 2025-01-28 23:56:25 +02:00
Felipe Pena
a05ef999ff
builtin: add &u8.free() (fix #23592) (#23598) 2025-01-28 23:54:33 +02:00
Felipe Pena
15e3f6258d
checker: disallow constant modification on unsafe {} (#23588) 2025-01-28 12:55:45 +03:00
Laurent Cheylus
81fd0db8af
encoding.ut8: remove deprecated tests for utf8.is_uchar_punct/1 and utf8.get_uchar/2 (fix #23599) (#23600) 2025-01-27 19:37:27 +02:00
Felipe Pena
4eeae1cd93
cgen: fix codegen for unwrapping option comptime var (fix #23590) (#23591) 2025-01-27 19:23:43 +02:00
Delyan Angelov
aa4c06c5a8
crypto: cleanup the internal constant declarations 2025-01-27 12:08:42 +02:00
Delyan Angelov
71784e2342
ci: update last known good commit hash for herolib to ca8799af39228a5678a7be81128c5b0c342c9efc 2025-01-27 11:47:17 +02:00
Felipe Pena
c2e436518b
checker: fix private symbol visibility checking (fix #23518) (#23543) 2025-01-27 11:42:27 +02:00
blackshirt
1eaa7c81fa
crypto.ecdsa: split out the C wrapper to a new .c.v file (#23595) 2025-01-27 08:03:19 +02:00
Delyan Angelov
3343fb7935
make.bat: add note about antivirus programs on windows and compilation slowdowns (#23586) 2025-01-26 19:28:32 +02:00
Delyan Angelov
801600c0c7
examples,io: add sha256sum_with_io_cp.v, make the size of the buffer used by io.cp parametrisable (#23585) 2025-01-26 15:44:15 +02:00
Mike Ward
1d9aa88ca5
gg: mark create_image_with_size as deprecated (image resizing is done by stbi.resize_uint8/3, with a different fn signature) (#23580) 2025-01-26 08:04:17 +02:00
Laurent Cheylus
5bfea9d3e8
tools: fix v doctor output on OpenBSD: get gcc version from egcc; do not run ldd to get the glibc version (fix #23576) (#23578) 2025-01-26 08:01:32 +02:00
Laurent Cheylus
67a8c81803
runtime: add free_memory/0 implementation for OpenBSD (fix #23579) (#23583) 2025-01-26 07:57:28 +02:00
Laurent Cheylus
c225e0415a
encoding.iconv: add flag for OpenBSD to find iconv include and library (fix #23573) (#23575) 2025-01-25 19:41:05 +02:00
Felipe Pena
5b272332fb
cgen: fix codegen for const fixed array initialization with another const as item (fix #23565) (#23572) 2025-01-25 19:40:09 +02:00
Delyan Angelov
d710d9ef85
builtin: change the default builder size used for string interpolations, from 256 bytes to 64 bytes 2025-01-25 16:50:24 +02:00
Delyan Angelov
1059a28946
builtin: cleanup prealloc.c.v a bit 2025-01-25 15:27:10 +02:00
Felipe Pena
5be2fcab7b
checker: make option_var.str() an error, when done without unwrapping it first (fix #23557, fix #23558) (#23563) 2025-01-25 07:23:05 +02:00
Swastik Baranwal
89089ab1d5
checker: disallow expr is Type if expr is Optional (fix #23486) (#23510) 2025-01-25 07:18:20 +02:00
Felipe Pena
fac8bb8694
cgen: fix codegen for array's .grow_cap and .grow_len methods for generic arrays (fix #23566) (#23568) 2025-01-25 06:58:58 +02:00
Delyan Angelov
991ec1f9d2
builtin: add -prealloc -d prealloc_memset -d prealloc_memset_value=65 -d prealloc_dump, to better analyze the memory patterns of running V programs 2025-01-24 16:54:49 +02:00
Mike Ward
b0d2eeea5d
doc: document that struct fields can now use keywords as their names (#23564) 2025-01-24 12:11:40 +02:00
Delyan Angelov
a44ff7813a
picoev: enable running veb services on Termux 2025-01-24 11:34:03 +02:00
Felipe Pena
772d21034c
cgen: fix codegen for assigning from infixexpr with generic operand (fix #23560) (#23561) 2025-01-24 08:49:01 +02:00
Felipe Pena
da5bb68b61
markused: fix option ptr printing (fix #23559) (#23562) 2025-01-23 20:37:13 +02:00
Felipe Pena
25f14d3bbb
cgen: fix auto str which expects ptr for ptr type (fix #23552) (#23553) 2025-01-23 17:00:50 +02:00
Felipe Pena
d9a2fb1630
cgen: fix return on last statement of return IfExpr (fix #23550) (#23551) 2025-01-23 12:13:19 +02:00
Felipe Pena
6b0c272213
cgen: fix codegen for a fixed array init with different node types (fix #23545) (#23547) 2025-01-22 16:58:52 +02:00
Felipe Pena
b036a6a492
cgen: fix codegen for assign from unsafe fn returning fixed array (fix #23546) (#23548) 2025-01-22 16:55:51 +02:00
Felipe Pena
45b79dfb97
vet: add an -I option to notice fns, with the potential to be inlined (#23534) 2025-01-22 15:58:02 +02:00
gechandesu
4e68a86025
breaking,log: set stderr as default log output, add .set_output_stream() to allow for opting in the old default of stdout (#23444) 2025-01-21 19:13:21 +02:00
Delyan Angelov
8654cb9885
readme: explain the tradeoffs between using Mbed-TLS and OpenSSL. Recommend using -d use_openssl on !windows systems 2025-01-21 14:49:14 +02:00
yuyi
bff90d0e9d
checker: minor cleanup in smartcast_if_conds() (#23542) 2025-01-21 13:46:16 +02:00
kbkpbot
2a69b7c525
os: add split_path/1: os.split_path('/usr/lib/test.so') -> ('/usr/lib','test','.so'); fix platform dependent behaviour of os.dir/1, os.base/1, os.file_name/1 (#23532) 2025-01-21 06:58:47 +02:00
Felipe Pena
305a272067
cgen: fix unwrapping option interface field (fix #23540) (#23541) 2025-01-21 06:50:42 +02:00
Felipe Pena
ea5f25e77b
markused: cleanup as_cast handling (#23538) 2025-01-21 06:34:30 +02:00
Delyan Angelov
eb1f52a6cd
parser,ast,cgen: support nested unions with field union {, to improve interoperability with C (similar to field struct {) (#23539) 2025-01-20 21:34:03 +02:00
Felipe Pena
907c089492
checker: cache repeated node.args.len, method.generic_names.len, node.concrete_types.len and node.op.str() (#23536) 2025-01-20 21:31:06 +02:00
Felipe Pena
4f3444ed67
markused: minor optmization checking names with dot (#23537) 2025-01-20 21:27:27 +02:00
kbkpbot
c713ece2c1
cgen,cheaders: move _vinit_caller()/_vcleanup_caller() fn declare forword (fix #23496) (#23507) 2025-01-20 17:37:32 +02:00
Felipe Pena
27f637a8dc
checker: simplify unwrap nested selector fix (#23526) 2025-01-20 17:28:19 +02:00
Felipe Pena
facee322fc
v.util, v.parser: inline some commonly used fns (#23535) 2025-01-20 17:09:08 +02:00