Commit graph

1908 commits

Author SHA1 Message Date
Delyan Angelov
209c30f3a6
v.builder: fix building with -cc msvc and non ASCII characters in paths on windows 11 (#22410) 2024-10-05 02:20:15 +03:00
kbkpbot
dc6a9583d7
v.builder, builtin: use ANSI encoding for the .rsp file under Windows; add builtin string_to_ansi_not_null_terminated + tests (#22409) 2024-10-04 20:29:13 +03:00
yuyi
5e00270ef2
builtin: cleanup push_many()/push_many_noscan() (#22383) 2024-10-01 20:16:13 +03:00
yuyi
c7bdc0a781
cgen: fix aliases of array insert(...)/prepend(...) (fix #22323) (#22324) 2024-09-27 07:41:13 +03:00
Meng Zhuo
b1c9941065
builtin: enable GC lib on rv64 build (#22319) 2024-09-26 10:58:33 +03:00
Meng Zhuo
c5837e4f89
builtin: drop C in int.v (#22245) 2024-09-18 16:52:19 +03:00
Felipe Pena
1187e1367c
all: add comptime support for traversing the method parameters with $for arg in method.params { (#22229) 2024-09-17 20:13:07 +03:00
Laurent Cheylus
c3b55a68a5
builtin: fix compilation with tcc on OpenBSD using libgc (#22234) 2024-09-16 17:02:30 +03:00
yuyi
ca5f47a966
builtin: cleanup string trim()/trim_left()/trim_right() (#22225) 2024-09-15 20:05:42 +03:00
yuyi
6eae77b61e
builtin: fix string.trim() (fix #13021) (#22205) 2024-09-13 07:27:40 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Delyan Angelov
6528efa405
builtin: remove string interpolation from panic/1, to be able to use tools like cbmc in more cases (#22182) 2024-09-09 07:45:23 +03:00
Kim Shrier
747f50f028
builtin: remove remaining references to v_calloc in function comments (#22179) 2024-09-08 12:10:33 +03:00
Delyan Angelov
b8c649b62a
builtin: small cleanup in array.free() (make debugging easier) (#22173) 2024-09-07 18:22:16 +03:00
yuyi
99bfb5b0fc
builtin: cleanup comments of struct string (#22159) 2024-09-04 07:31:50 +03:00
Delyan Angelov
ace4e93576
tests: move all slow vlib/builtin/map_issue_*_test.v files to vlib/v/slow_tests/, to speed up v test vlib/builtin 2024-09-02 07:56:20 +03:00
Delyan Angelov
e684c1d329
builtin: fix bug in .clear() caused by sizeof(u32) being 4, not 2 (fix #22148) 2024-09-02 07:38:51 +03:00
Delyan Angelov
33f74cf126
builtin: fix m.clear() having different observable behavior to m = {}, after multiple iterations of setting keys and clearing (fix #22145) (#22146) 2024-09-01 20:09:53 +03:00
Delyan Angelov
fc31b44399
builtin: fix incomplete m.clear(), allowing the map to have a duplicated entry for its first key (fix #22143) (#22144) 2024-09-01 17:27:28 +03:00
Delyan Angelov
673ac0a411
builtin: fix map.clear() not resetting map's metas and keys blocks (fix #22139) (#22140) 2024-09-01 12:02:03 +03:00
Delyan Angelov
217b191492
builtin: support -d builtin_print_use_fprintf, make the C fn declarations stricter (#22137) 2024-08-31 16:57:51 +03:00
yuyi
971feb8f89
builtin: cleanup u8.repeat() and rune.repeat() (#22100) 2024-08-23 08:24:35 +03:00
Delyan Angelov
6834ccb2d5 builtin,thirdparty: fix compilation of libgc with -cc msvc -gc boehm (thanks to @Ekopalypse) 2024-08-22 18:43:45 +03:00
yuyi
fdc3a9c11c
builtin,fmt: cleanup alignment using string.repeat() instead of strings.repeat() (#22087) 2024-08-21 09:18:10 +03:00
Alexander Medvednikov
ae1b9ed571 veb: deprecate x.vweb in favor of veb; checker: show missing variants in the sumtype error 2024-08-18 17:27:08 +03:00
yuyi
e9c9580370
all: remove the obsolete .code and .msg fields of IError (#22066) 2024-08-17 14:34:42 +03:00
yuyi
ee16f6f094
builtin: cleanup interface IError, remove the obsolete .code and .msg fields, deprecated in 2022-02-11 (#22063) 2024-08-17 09:53:46 +03:00
yuyi
c69dfefedb
fmt: cleanup fields comments alignment and add ignore_newline config (#22027) 2024-08-12 10:56:32 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Alexander Medvednikov
c4a434bd7f tmpl: fix an extra newline in @for; builtin: some i64 fixes 2024-07-31 13:30:30 +03:00
Delyan Angelov
f676daceb5
vlib: fix C warnings/errors for v -show-c-output -cstrict -cc clang-18 run examples/gg/additive.v 2024-07-30 17:15:15 +03:00
Delyan Angelov
6f20516a34
builtin: panic on trying to grow arrays with capacity bigger than 2^31, instead of overflowing a.cap (partial fix for #21918) (#21947) 2024-07-28 23:17:59 +03:00
yuyi
bf04adcc81
builtin: fix 'aaaa'.split('aa') (fix #21936) (#21951) 2024-07-28 13:25:14 +03:00
Alexander Medvednikov
b5452e0adf builtin: v_segmentation_fault_handler signal_number i32 2024-07-28 10:10:30 +03:00
Swastik Baranwal
69bc4be512
builtin: add s.trim_space_left/0 and s.trim_space_right/0 methods (#21903) 2024-07-21 22:38:59 +03:00
Delyan Angelov
bbbb86442d
builtin: support -d use_bundled_libgc to make it easier to debug/upgrade reliably libgc cloned from ivmai/bdwgc (#21869) 2024-07-15 04:34:14 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
Delyan Angelov
c2f7afdbf5
builtin: add pub fn arguments() []string {; make os.args use it, remove edge case in cgen (#21852) 2024-07-13 00:09:44 +03:00
Turiiya
2a368cf53c
builtin, strings: improve consistency and behavior regarding explicit mutability (#21566) 2024-07-10 15:26:51 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Alexander Medvednikov
940fc41c19 encoding.binary: little_endian_f32_at 2024-07-01 14:08:37 +03:00
Turiiya
895bd71fa0
builtin: improve snake to camel case conversion (#21755) 2024-06-29 11:10:10 +03:00
Turiiya
6ecfc6f63a
builtin: fix assert '_ISspace'.camel_to_snake() == '_i_sspace' (#21736) 2024-06-27 08:23:39 +03:00
Turiiya
5b9358279a
vlib: simplify byte character conditions by using methods like is_capital, is_lower, is_letter etc (#21725) 2024-06-25 09:55:08 +03:00
Turiiya
c5c49d3685
builtin: fix assert 'JVM_PUBLIC_ACC'.camel_to_snake() == 'jvm_public_acc' (#21722) 2024-06-24 23:01:52 +03:00
Alexander Medvednikov
d7bc216713 string: fix leak in replace_once 2024-06-22 19:17:26 +03:00
Alexander Medvednikov
549e11bfa1 string: optimize is_ascii() 2024-06-22 18:25:52 +03:00