Commit graph

1802 commits

Author SHA1 Message Date
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
Delyan Angelov
c41ff725c4
builtin: fix v -skip-unused -cc tcc examples/hello_world.v on *BSD 2024-11-16 11:57:52 +02:00
yuyi
b7ffa8f94a
builtin: minor optimization in rune.map_to() (#22810) 2024-11-09 09:33:51 +02:00
yuyi
59c8f6b07b
builtin: fix rune.to_title(), add tests (#22808) 2024-11-08 17:09:20 +02:00
yuyi
80128f616e
builtin: cleanup in rune_map.v (#22799) 2024-11-08 15:11:31 +02:00
yuyi
43afa8d94e
builtin: add tests for rune.to_upper() (#22801) 2024-11-08 15:10:30 +02:00
yuyi
b30be51872
builtin: fix runes.to_upper() (fix #22742) (#22755) 2024-11-06 16:54:12 +02:00
yuyi
ea1992380c
builtin: add string.is_pure_ascii() (#22748) 2024-11-03 18:52:23 +02:00
yuyi
335bb6359e
builtin: improve fixed_array_any_all_test.v (#22746) 2024-11-03 10:03:38 +02:00
yuyi
abb40577f9
cgen: fix assert [2, 3, 1]!.sorted() == [1, 2, 3]!, add tests (#22739) 2024-11-03 10:02:13 +02:00
yuyi
f00d93477c
cgen: fix assert [1, 2, 3]!.reverse() == [3, 2, 1]! (#22745) 2024-11-03 10:00:46 +02:00
yuyi
9e2592e429
cgen: fix assert [1, 2, 3]!.index(2) == 1 (#22727) 2024-11-02 10:49:00 +02:00
yuyi
3b828f3ca1
cgen: fix assert [1, 2, 3]!.contains(2) (#22725) 2024-11-02 10:16:54 +02:00
yuyi
2c887e2017
cgen: fix [1, 2, 3]!.map(it * 2) (#22722) 2024-11-01 09:39:17 +02:00
Felipe Pena
ee4f29fd87
v: optimize the compiler performance (#22709) 2024-10-31 20:40:30 +02:00
yuyi
97941b97f8
checker, cgen: implement methods reverse()/reverse_in_place() for fixed arrays (#22712) 2024-10-31 13:46:36 +02:00
yuyi
4e9b21f9d0
checker, cgen: implement methods sort_with_compare()/sorted_with_compare() for fixed arrays (#22702) 2024-10-31 06:52:06 +02:00
yuyi
c8ddf2197a
builtin, cgen: improve the assert informations (fix #22666) (#22668) 2024-10-27 17:45:08 +02:00
yuyi
4a7eca14c6
checker, cgen: implement method sort()/sorted() for fixed array (#22650) 2024-10-25 22:01:09 +03:00
yuyi
5ad0186895
checker, cgen: implement method map() for fixed arrays (#22644) 2024-10-25 11:49:48 +03:00
Delyan Angelov
8b36856692
builtin: support -d no_gc_threads for turning off passing -DGC_THREADS=1 while compiling the GC library 2024-10-23 16:10:19 +03:00
yuyi
fe6af05b59
checker: fix lambda expr with fntype params and restore fixed_array_any_all_test.v (#22625) 2024-10-23 15:38:53 +03:00
yuyi
a6c5289f89
builtin: temporary fix fixed_array_any_all_test.v (#22624) 2024-10-23 07:35:58 +03:00
yuyi
ea8ae7ba17
builtin: improve fixed_array_any_all_test.v (related #22609) (#22621) 2024-10-22 18:33:49 +03:00
yuyi
fa88da6e89
checker, gen: implement method .contains/1 for fixed arrays (#22617) 2024-10-22 18:17:06 +03:00
Hitalo Souza
b5795dcd76
builtin: improve performance of string.starts_with/1 and string.ends_with/1, when compiled with tcc (#22620) 2024-10-22 17:02:47 +03:00
yuyi
49e1b01488
checker, cgen: implement fixed array methods any() and all() (#22609) 2024-10-22 11:06:31 +03:00
yuyi
39c69c5fc8
checker, cgen: implement .index/1 method for fixed arrays (#22593) 2024-10-20 14:38:48 +03:00
Pepper Gray
ce8f62146b
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
Delyan Angelov
a64dfc776b
builtin: remove unsafe{} blocks from data_to_hex_string/2 2024-10-16 14:19:18 +03:00
Delyan Angelov
c5e8ad19df
builtin: implement a s.hex() method, allowing shortening s.bytes().hex() chains, and reducing the intermediate allocations; add tests for it (#22540) 2024-10-16 14:18:10 +03:00
Jose Mendoza
75658415f1
builtin: add string.wrap method + tests (#22441) 2024-10-08 07:14:32 +03:00
kbkpbot
309c8d3778
strconv: fix e/g format (fix #22424) (#22430) 2024-10-07 08:43:04 +03:00
Delyan Angelov
4f9df0da72
builtin: unify memory allocation error handling, and avoid string interpolation, when allocation failed (#22423) 2024-10-06 20:56:58 +03:00
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