Commit Graph

11494 Commits (81b95ece51899820abed517253c2af7fa961ce3e)

Author SHA1 Message Date
czkz 81b95ece51
docs: improve the docs by provide better examples and describe module publishing (#12308) 2021-10-31 11:32:31 +02:00
Delyan Angelov 579d5ae649
builtin,checker: add array.flags. Allow changing it in `unsafe {}` blocks 2021-10-31 11:04:56 +02:00
Wertzui123 612e742c1f
examples: remove unneeded workaround (#12336) 2021-10-30 18:49:54 +03:00
Delyan Angelov a7d4236337
sync,strings,cgen: reduce memory consumption in cgen 2021-10-29 22:29:56 +03:00
Xiao 7e0f2fcda9
docs: update VS Code debugger configuration descriptions (#12335) 2021-10-29 18:06:28 +03:00
Delyan Angelov 1785b184b9
readline: improve README.md with working examples 2021-10-29 17:36:17 +03:00
Delyan Angelov d1acca3e52
ci: fix `./v -cg -cstrict -o v cmd/v` job failures for clang 2021-10-29 17:21:53 +03:00
yuyi d5642b6134
cgen: fix error of nested match expr (#12334) 2021-10-29 17:14:49 +03:00
Delyan Angelov 71392111f8
ci: fix cross compilation of vc/v.c 2021-10-29 17:12:05 +03:00
Delyan Angelov 4c67c01e72
parser,util: improve libleak false positive detection rate 2021-10-29 16:42:55 +03:00
Delyan Angelov 3d800b12e8
scanner: small optimisation of the ident_name hot loop 2021-10-29 16:18:34 +03:00
Delyan Angelov b86c79329b
os, builtin: reduce leaks without -autofree 2021-10-29 15:49:30 +03:00
Lucas Jenß f801ef5e17
checker: disallow `mut` keyword in right-hand side of assignment (#12318) 2021-10-29 12:03:05 +03:00
playX a32dae335a
js: fix interfaces behaviour & disable struct deep copy for now (#12333) 2021-10-29 11:23:40 +03:00
Louis Schmieder d33f7d12f7
orm: fix time struct in sql stmt (#12298) 2021-10-28 22:31:41 +03:00
Larpon 5e4594a121
toml: isolate, fix and regress-test sumtype cast causing memory corruption (#12329) 2021-10-28 19:57:30 +03:00
playX fa02418a55
js: copy variables passed to closures (#12328) 2021-10-28 19:31:56 +03:00
yuyi 0e95e4d7b4
ast, cgen: fix generic method str() overload (#12330) 2021-10-28 19:03:17 +03:00
Delyan Angelov 475a2f9b43
ci: fix failing vlib/orm/orm_test.v 2021-10-28 17:33:18 +03:00
Delyan Angelov 4d0f6767b1
builtin: use malloc instead of calloc for `[]Type{cap: size}` 2021-10-28 17:18:03 +03:00
Delyan Angelov 2c3e44eb20
strings: use memdup_noscan in Builder.str() 2021-10-28 17:00:16 +03:00
Larpon a987440e2f
toml: add UTF header support, add BOM tests (#12326) 2021-10-28 16:38:49 +03:00
Delyan Angelov 99e71d0868
scanner: preallocate space for tokens to reduce the number of allocations in the hot loop 2021-10-28 16:23:24 +03:00
Larpon 5ecaa160a7
toml: fix paths in skipped tests for Windows compatibility (#12323) 2021-10-28 15:56:56 +03:00
Delyan Angelov 8014235e0e
scanner: speed up text_scan by using a specialised keywords matcher, instead of a generic V map of keywords 2021-10-28 15:41:13 +03:00
Delyan Angelov b1bb1d361a
ci: vfmt parser.v 2021-10-28 10:51:55 +03:00
Delyan Angelov 1b6cccaf6d
parser,checker: allow a goto label right after return 2021-10-28 10:40:31 +03:00
ChAoS_UnItY 8cd01e0eac
cgen: fix error caused by fixed size array init syntax with variable it (#12314) 2021-10-28 02:20:49 +03:00
Delyan Angelov 8fd66994c7
ci: comment out the `main` body in draw.js.v for now 2021-10-28 02:18:38 +03:00
playX cfecb62299
js: DOM API. Part 1 (#12296) 2021-10-27 23:18:09 +03:00
Delyan Angelov 0ff23eeb74
ci: fix failing assign_expr_channel_push.out 2021-10-27 22:54:41 +03:00
Delyan Angelov f79bc8619a
scanner: remove unused .line_ends field 2021-10-27 22:37:00 +03:00
Larpon bc3827ae15
toml: improve array parsing (#12322) 2021-10-27 20:26:33 +03:00
Lucas Jenß 43fbc68f1e
checker: disallow `<-` (channel push) on right-hand side of assignment (fix #12309) (#12321) 2021-10-27 17:53:50 +03:00
Delyan Angelov 159a9c3070
markused: fix `-skip-unused` on programs with generic methods (fix #12306) 2021-10-27 17:22:26 +03:00
Larpon 462d097bf5
toml: small clarification on utf8_max const (#12320) 2021-10-27 16:41:22 +03:00
yuyi 943a807d30
parser: implement generics method with auto multi generic types (#12312) 2021-10-27 15:41:13 +03:00
Darío Hereñú e5c759eb91
docs: fix typos (line 22, 26, 28, 34, 50, 107) (#12310) 2021-10-27 15:31:18 +03:00
Larpon d53bb54c0a
toml: implement checks for UTF-8 validity (#12313) 2021-10-27 15:28:46 +03:00
Wertzui123 ea6d2d53db
parser: disallow `for mut in range` (fix #12234) (#12277) 2021-10-27 14:55:36 +03:00
Larpon 6eaacd3391
toml: improve checker documentation (#12315) 2021-10-27 14:31:29 +03:00
Lucas Jenß d7fd4a563b
parser: remove commented out debug statement (#12316) 2021-10-27 14:30:22 +03:00
Larpon 1b9eef74aa
toml: improve inline-table parsing (#12307) 2021-10-26 17:00:41 +03:00
Larpon c526752419
toml: remove unused enum (#12304) 2021-10-26 16:58:58 +03:00
Larpon 9a3967bd7d
toml: improve comment support (#12305) 2021-10-26 16:58:05 +03:00
Larpon 52df19ef61
toml: check for invalid placement of underscores around exponent (#12303) 2021-10-26 13:49:25 +03:00
Andreas Schoeller f14dabc6bd
math.big: add a new greatest-common-divisor-algo for big.Integer, also add a benchmark for it (#12261) 2021-10-26 11:10:13 +03:00
yuyi f62b2dcfa7
table: fix generic method with multi generic types (#12297) 2021-10-26 11:00:27 +03:00
Delyan Angelov 508f29c101
docs: document the purpose of the `[params]` trailing struct tag 2021-10-26 10:53:14 +03:00
Miccah 655b5c563a
net.http: use `[params]` for Config structs (#12299) 2021-10-26 10:45:27 +03:00