1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

11787 Commits

Author SHA1 Message Date
Larpon
7b9cca7524
toml: add convenience convertion of Doc to map[string]toml.Any (#12473) 2021-11-15 19:00:09 +02:00
yuyi
c28041cecc
all: cleanup/rename all comp_ names to be comptime_ (#12467) 2021-11-15 15:47:29 +02:00
Charles WANG
1d003228cb
tests: update generics_method_str_overload_test.v to return a generic type, instead of Gen<G>. (#12465) 2021-11-15 15:36:54 +02:00
Larpon
cbdb270d2f
toml: upgrade the module to 100% BurntSushi test suite parsing compatibility (#12466) 2021-11-15 15:36:14 +02:00
Larpon
78662c800c
toml: fix parsing formatting on Windows with crlf line endings (#12468) 2021-11-15 15:35:30 +02:00
playX
a8a1e9381f
strconv,js: f64_to_str works on JS backend now; Fix BigInt usage in infix expressions (#12464) 2021-11-15 14:13:44 +02:00
Delyan Angelov
1d2b16dde2
js: support [if userflag?] fn tags 2021-11-15 13:23:27 +02:00
Delyan Angelov
7b723262e4
tools: support VJOBS=1 VTEST_FAIL_FAST=1 ./v test . 2021-11-15 11:44:54 +02:00
zakuro
5e75c89b71
checker: allow noreturn in if expr (#12462) 2021-11-15 10:29:58 +02:00
yuyi
d8479f107f
cgen: fix typeof comptime selector (fix #12461) (#12463) 2021-11-15 10:23:49 +02:00
playX
e3d98b1b28
js,strconv: port some functions to JS backend, improve rune.str() (#12460) 2021-11-14 21:06:58 +02:00
yuyi
460f4523aa
checker: check array pop immutable (#12458) 2021-11-14 21:00:22 +02:00
yuyi
fb997eb5fe
cgen: fix comptime for in field selector (#12457) 2021-11-14 20:58:22 +02:00
Delyan Angelov
61b99e1915
vfmt: handle comments right after interface fields 2021-11-13 13:42:17 +02:00
Larpon
9c508237bd
toml: support for [a."b.c"] quoted keys (#12444) 2021-11-13 11:17:35 +02:00
playX
6c32c544e1
js,parser: allow declaring methods on JS interfaces for easier FFI (#12447) 2021-11-13 11:08:17 +02:00
yuyi
3bb1c3f930
checker, cgen: fix for in iterator of generic struct (#12441) 2021-11-12 14:29:01 +02:00
Delyan Angelov
50a608aab3
os: remove unnecessary heap allocation from os.execute 2021-11-12 11:45:37 +02:00
Delyan Angelov
c6b8b0bb0a
ci: make test_execute in os_test.v more robust 2021-11-12 11:24:37 +02:00
MrsHerobrine
1c17ba82ac
tools: fix the batch script for v symlink, if the vexe path contains spaces on windows (#12443) 2021-11-12 10:29:57 +02:00
Delyan Angelov
fcecf527ec
ci: fix failing os_test.v on the CI 2021-11-12 10:27:35 +02:00
Delyan Angelov
20d63de136
os: fix os.execute for command output that contains 0 bytes 2021-11-12 09:39:15 +02:00
Larpon
4b42dcad8e
toml: support complex array-tables-array constructs (#12438) 2021-11-11 18:30:34 +02:00
Delyan Angelov
6c5dfc5c2f
examples: fix initial clock size on hdpi displays 2021-11-11 18:09:57 +02:00
Delyan Angelov
4728b975e3
examples: use app.gg.quit() instead of exit(0) 2021-11-11 17:45:22 +02:00
Delyan Angelov
9cb378bb6b
examples: reduce the memory usage of the clock example, without -autofree & -gc boehm 2021-11-11 17:39:02 +02:00
Larpon
c8cb1bf6b4
toml: check for single-key reassignment in inline tables (#12436) 2021-11-11 14:57:11 +02:00
Larpon
35f00c9f91
toml: check for text after comma in arrays (#12435) 2021-11-11 14:55:51 +02:00
yuyi
6f55439930
tests: supplement tests for different types of generic parameters (#12432) 2021-11-11 14:45:55 +02:00
playX
a4c57ba56e
js: support JS interfaces (#12426) 2021-11-11 14:36:32 +02:00
Larpon
015cfdb49f
toml: add excerpt to value parse errors (#12429) 2021-11-11 07:29:38 +02:00
Larpon
dbd5acd5ba
toml: small start -> end word use change (#12428) 2021-11-11 07:28:46 +02:00
Larpon
69fa87ad24
toml: add date and time checks (#12427) 2021-11-11 07:27:41 +02:00
zakuro
823a3ab838
fmt: fix removal of selective imported types used as type parameter (#12431) 2021-11-11 07:15:30 +02:00
yuyi
72a7d5a559
checker: minor cleanup in method_call (#12430) 2021-11-11 07:12:59 +02:00
Delyan Angelov
8a971c3bf7
ci,vweb: fix hard coded data in vweb_test.v 2021-11-10 18:41:25 +02:00
Delyan Angelov
637ebe5d42
examples: improve examples/vweb/file_upload 2021-11-10 18:26:16 +02:00
Delyan Angelov
3c6356ba36
ci: fix request_test.v (add missing \r to hardcoded post data) 2021-11-10 18:16:15 +02:00
Delyan Angelov
466ced2876
net.http: fix multipart/form-data file upload handling 2021-11-10 17:31:41 +02:00
Larpon
66e53279c2
toml: check for more wrong line ending cases (#12424) 2021-11-10 15:03:51 +02:00
yuyi
d5e767f389
checker, cgen: fix alias of map keys() (#12422) 2021-11-10 13:04:59 +02:00
playX
194b3647e2
js,checker: allow casting JS primitives to V primitives and vice-versa (#12420) 2021-11-10 11:37:16 +02:00
Delyan Angelov
6c244d3065
cgen: improve diagnostic for a v compiler panic in dicordv 2021-11-10 08:12:12 +02:00
yuyi
8f4180ea09
parser: check generic parameters error of generic struct declaration (#12418) 2021-11-09 09:25:57 +02:00
Delyan Angelov
3f841edec1
v.util: make get_vtmp_folder() return /tmp/v_{uid} by default (see https://github.com/vlang/v/discussions/11796) 2021-11-09 08:25:19 +02:00
yuyi
08667c5645
pref: allow running a .vsh script with just v build.vsh gcc, instead of v run build.vsh gcc (#12409) 2021-11-08 15:18:11 +02:00
Taras
15242d8082
docs: add description of how to use a custom table name to the ORM example – (#12408) 2021-11-08 12:22:42 +02:00
yuyi
758c18a906
cgen: fix for in mut val in array.index() (#12410) 2021-11-08 11:12:10 +02:00
yuyi
1211029926
cgen: avoid generating typedef generic array type (#12407) 2021-11-07 21:24:30 +02:00
yuyi
c8ff9e39b5
checker: cleanup generic struct init (#12406) 2021-11-07 18:47:38 +02:00