Commit graph

1891 commits

Author SHA1 Message Date
Felipe Pena
36ec2355b2
cgen: fix zero left padding (fix #24199) (#24201) 2025-04-13 11:46:48 +03:00
Mike
591e1964bb
builtin: fix wide tests for big_endian systems (#24145) 2025-04-07 12:42:23 +03:00
XiaoPangxie732
15c0e6f2bd
strings, builtin: remove strings.Builder.clear(), fix array.clear() not working in the JS backend (#23992) 2025-03-22 17:24:59 +02:00
Kim Shrier
ff43cd5a20
builtin: fix minor typo in join_lines description (#23984) 2025-03-20 13:32:34 +02:00
Delyan Angelov
b528395039
builtin,markused,pref,cgen: improve markused for small programs 2025-03-18 21:05:04 +02:00
Delyan Angelov
37c3f6578c
v.util.version: centralise the use of @VCURRENTHASH, to minimise the vlang/vc diffs for each commit 2025-03-14 10:07:28 +02:00
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
ChAoS_UnItY (Kyle Lin)
9f3f1291e8
checker: fix signed integer literal overflow error, when most significant bit occupies signed bit (fix #23782) (#23919) 2025-03-13 17:29:44 +02:00
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Delyan Angelov
408ec6bff4
builtin,os: fix warnings for ./v -os cross -o vc/v.c cmd/v && cc -o v_from_vc vc/v.c -lpthread 2025-03-06 20:56:49 +02:00
Delyan Angelov
c17c0e16c4
builtin: declare fn C._vinit/2 and fn C._vcleanup/0 (continuation from #23812) (#23820) 2025-02-28 05:23:48 +02:00
kbkpbot
675fe14cbb
strconv: fix strconv.atof64() inconsistency with the other .ato functions; make it return an error by default, when it detects an extra non number character after a number (#23815) 2025-02-27 08:31:59 +02:00
Delyan Angelov
b9d057118c
log: fix panic on mutex destroy, when exiting a program, while a thread is still logging 2025-02-24 18:28:27 +02:00
Delyan Angelov
55f482bb63
ci: update linux image runners from ubuntu-20.04 to ubuntu-24.04 (#23706) 2025-02-17 07:37:59 +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
adbc869626
cgen: improve support for v -path bootstrap_alternative_backend/ run simple.v (#23679) 2025-02-09 21:23:14 +02:00
gechandesu
4f85b35bb9
builtin: add string.split_by_space() (#23651) 2025-02-04 11:12:42 +02:00
kbkpbot
d78bf1122d
os: add disk_usage/1 (#23634) 2025-02-02 19:32:21 +02:00
Felipe Pena
f291ed8541
builtin: make public the FnGC_WarnCB alias (#23633) 2025-02-02 13:45:28 +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
c2e436518b
checker: fix private symbol visibility checking (fix #23518) (#23543) 2025-01-27 11:42:27 +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
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
Delyan Angelov
12d8f173a4
builtin: reduce a bit the generated #if defined checks for small programs (#23484) 2025-01-16 17:16:09 +02:00
Emma
6b92f8fada
all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
kbkpbot
6284c27ab6
builtin,checker: remove @[markused] from fn isnil(), set c.table.used_features.auto_str_ptr = true instead (#23464) 2025-01-15 09:16:33 +02:00
kbkpbot
ae8109545e
builtin: add a @[markused] tag to isnil(), because cgen generates calls to it in some cases (#23462) 2025-01-14 06:23:31 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
kbkpbot
f821c657a7
examples,builtin,cgen,live: fix windows hot reload with -cc tcc, improve the infrastructure, use a V global instead of a C one (fix #23214) (#23350) 2025-01-03 18:04:32 +02:00
Swastik Baranwal
99b93d9669
builtin: add runtime check for []Type{cap: negative} (#23307) 2024-12-30 09:46:17 +02:00
Delyan Angelov
b487986b72
builtin: add runtime checks for []u8{len: negative} (#23294) 2024-12-28 15:53:51 +02:00
Delyan Angelov
7eec8b1cd7
math,examples: make 2048 use sliding animation for the tile movement (#23268) 2024-12-26 06:39:59 +02:00
Felipe Pena
b0772193f8
vlib: enable more satnitized memleak detection runs without false positives on the CI (#23200) 2024-12-20 16:09:16 +02:00
Felipe Pena
b39cad2f24
comptime: fix missing bool AttributeKind.kind (#23159) 2024-12-14 18:19:29 +02:00
Felipe Pena
82c9d4ab5b
checker, cgen: fix codegen for returning different option alias type (fix #23087) (#23125) 2024-12-11 06:07:29 +02:00
yuyi
17f3c8f813
checker: check fn call argument mismatch (fix #23016) (#23061) 2024-12-04 11:52:07 +02:00
Felipe Pena
1eb3867f4e
v: add array.count as a method that accepts a predicate, similar to filter, but returning just the number of matches (#23054) 2024-12-03 20:22:14 +02:00
Felipe Pena
ae4a9047c1
v: missing -skip-unused fixes (#22978) 2024-11-28 01:03:03 +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
Alexander Medvednikov
c03b4f68fc markused: make work with json 2024-11-25 22:36:31 +03:00
Felipe Pena
7612650566
v: inline some fns (#22965) 2024-11-25 00:36:05 +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
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
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
76c21fbefe
v: minor optimizations on cmd/v (#22878) 2024-11-17 08:33:26 +02:00