18542 Commits

Author SHA1 Message Date
Alexander Medvednikov
ac6ca5f858 all: make implements work with multiple interfaces 2024-09-09 05:03:27 +03:00
yuyi
3300e59a0f
parser: fix parsing map value inside or expr (fix #12164) (#22180) 2024-09-08 12:15:10 +03:00
Kim Shrier
747f50f028
builtin: remove remaining references to v_calloc in function comments (#22179) 2024-09-08 12:10:33 +03:00
Kim Shrier
7d23ff7386
veb: fix a few minor errors in the README.md (#22177) 2024-09-08 12:07:49 +03:00
Delyan Angelov
89e5279349
gg: change the type of PenConfig.thickness to f32 2024-09-08 12:05:04 +03:00
Delyan Angelov
b8c649b62a
builtin: small cleanup in array.free() (make debugging easier) (#22173) 2024-09-07 18:22:16 +03:00
larpon
625e4df49a
flag, tests: inline a few consts (#22174) 2024-09-07 18:21:03 +03:00
larpon
620e064110
flag: fix parsing flag.FlagParser style short flags in to_struct[T] (#22172) 2024-09-07 14:57:15 +03:00
Delyan Angelov
3e7f8edb34
docs: add more details to the newly added -compress section 2024-09-07 09:05:57 +03:00
Kim Shrier
0158b54b7b
veb: fix vweb_livereload reference to veb_livereload (#22171) 2024-09-07 08:46:21 +03:00
Carlos Esquerdo Bernat
61609454d6
docs: add a section for the -compress flag (#22169) 2024-09-06 20:02:58 +03:00
yuyi
023fd9234d
cgen: fix struct field with default optional value (fix #11119) (#22167) 2024-09-06 19:54:14 +03:00
Ikko Eltociear Ashimine
e1847cac9c
sync: fix typo on atomic_test.v (#22168) 2024-09-06 19:50:15 +03:00
Felipe Pena
ae9456adc6
cgen,table: fix generic interface used in an implements clause (fix #22161) (#22165) 2024-09-06 08:03:44 +03:00
Delyan Angelov
9238dd6b31
tools: fix v doc truncating code blocks, that lack a specific language (fix #22017) 2024-09-05 16:41:13 +03:00
yuyi
633d5f27be
cgen: fix generic options with reserved ident (#22164) 2024-09-05 05:19:10 +03:00
larpon
0d35f0948c
flag: correct bool logic, add test (#22162) 2024-09-04 23:13:50 +03:00
yuyi
d5c2ebce05
flag: fix parse_bool_value() (#22160) 2024-09-04 22:48:22 +03:00
Delyan Angelov
6488041a74
tests: split vlib/v/tests/ into several subfolders, to mitigate github limits for number of files in a folder (#22158) 2024-09-04 09:38:09 +03:00
yuyi
99bfb5b0fc
builtin: cleanup comments of struct string (#22159) 2024-09-04 07:31:50 +03:00
Alexander Medvednikov
0090170b26 all: implements keyword for optional explicit interface implementations 2024-09-04 01:24:06 +03:00
larpon
04a3ecf617
flag: add support for parsing flag.FlagParser style flags in to_struct[T] (#22152) 2024-09-03 16:36:56 +03:00
Laurent Cheylus
f61a4f17a5
v.builder: fix errors in cstrict mode on OpenBSD with clang (#22154) 2024-09-03 13:11:20 +03:00
Kim Shrier
0a61b4a076
docs: fix minor typos in the memory management section (#22151) 2024-09-03 07:51:03 +03:00
Delyan Angelov
b898987ece
tools: add diagnostic in v repeat for invalid combinations of -r, -i and -a flags 2024-09-03 07:48:18 +03:00
Delyan Angelov
da228e93df
tools: implement a -repeats/-R N option to v repeat, to eliminate another need for platform dependent scripting weekly.2024.36 2024-09-02 20:38:15 +03:00
Delyan Angelov
8f957092cb
cgen: remove leftout println call 2024-09-02 11:41:59 +03:00
Felipe Pena
07e0370ece
cgen: fix array fixed initialization from map indexing (fix #22133) (#22149) 2024-09-02 11:38:43 +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
dd967ca495
tests: rename vlib/v/tests/map_test.v to map_issue_16285_test.v 2024-09-02 07:54:44 +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
d130939ad6
docs: improve documentation for if expressions
* add more examples
  * add a comparison with C's ternary operator
  * add an entry in the contents section
2024-09-01 09:04:30 +03:00
Delyan Angelov
8a9abbb14d
cgen, scanner: reduce allocations for the most common cases (#22142) 2024-09-01 07:56:08 +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
Delyan Angelov
515b106f76
builder: allow for v -dump-defines - -check cmd/v, which is faster, because it can skip code generation 2024-08-31 11:17:46 +03:00
Carlos Esquerdo Bernat
8ebc288972
vweb: mark vweb as deprecated in its README, recommending using veb instead (#22131) weekly.2024.35 2024-08-30 14:32:44 +03:00
Carlos Esquerdo Bernat
d89e6df2a1
veb: extract constants into consts.v (#22132) 2024-08-30 13:53:31 +03:00
Delyan Angelov
01fd719116
examples: add examples/veb/websocket, to show how to use http connection upgrade to a websocket, from a veb route (#22128) 2024-08-29 16:34:06 +03:00
yuyi
1fbe2a1955
cgen: fix shared object method call (fix #22121) (#22125) 2024-08-28 11:24:34 +03:00
Laurent Cheylus
84135d733a
tests: skip an assertion in os_stat_test.v on OpenBSD (fix #22123) (#22124) 2024-08-28 11:23:08 +03:00
Delyan Angelov
05c7aa2cb2
ci: restore c2v_ci.yml too (#22120) 2024-08-27 23:13:56 +03:00
yuyi
1085f4587a
ci: restore v_apps_and_modules_compile_ci.yml (#22118) 2024-08-27 12:41:54 +03:00
Felipe Pena
426205ec19
checker: fix generic lambda type binding resolution (fix #22109) (#22115) 2024-08-26 12:39:03 +03:00
Martin Skou
caa0c46484
docs: add a copy code function (top/right copy icon) on doc examples (#22114) 2024-08-25 17:35:07 +03:00
Martin Skou
62c69e8a31
docs: improve formatting in time.parse_format description (#22113) 2024-08-25 08:05:13 +03:00
yuyi
d1b20bec79
tests: fix coutput_test.v on Windows and tcc compiler (#22111) 2024-08-25 00:23:39 +03:00
encyclopaedia
a31cd37b66
vlib: add an arrays.parallel module, containing parallel.run/3 and parallel.amap/3 implementations (#22090) 2024-08-24 17:57:06 +03:00