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

10245 Commits

Author SHA1 Message Date
96c8d147b2 v.gen.js: add source map creation support (inline only, no src) (#10384) 2021-06-10 08:33:46 +03:00
14519bbf5c cgen: clean up interface methods generation (#10400) 2021-06-09 22:44:18 +03:00
811a3e1d38 builtin: optimize array.repeat() (#10396) 2021-06-09 12:52:30 +03:00
115edff7e9 v.checker: restrict x T in fn test<T>(x T){ unsafe{ println(x[0]) }, but allow x &T 2021-06-09 12:07:08 +03:00
f351ff037e Revert "checker: check generic type indexing error (#10345)"
This reverts commit 103c777ad6.

Passing references to values should be allowed, and is already used in vinix:
`pub fn cas<T>(_here &T, _ifthis T, writethis T) bool {`
2021-06-09 11:46:17 +03:00
49de1f8e64 checker: cleanup in infix_expr() (#10368) 2021-06-09 00:06:29 +03:00
a2243054a5 builtin: fix memory corruption in array .clone() and .repeat() (#10394) 2021-06-08 23:23:28 +03:00
3dc4d13160 v.parser: do not treat test_ functions specially outside of _test.v files 2021-06-08 23:01:49 +03:00
000790b112 vfmt: fix eating JS. from JS.Struct{} 2021-06-08 21:27:05 +03:00
f0b16fea27 docs: add Array Types section, improve examples (#10357) 2021-06-08 20:35:22 +03:00
95cf120e2e ci: fix linux-cross job; os.real_path cleanup 2021-06-08 18:34:15 +03:00
f9c4365dc7 v.gen.c: free indents in autogenerated .str() methods 2021-06-08 17:24:08 +03:00
d820f2da6f os: use arr.trim() in read_bytes, instead of a arr[0..x].clone() 2021-06-08 17:24:07 +03:00
40ac7d4892 builtin: support -d trace_vcalloc, -d trace_realloc 2021-06-08 17:24:07 +03:00
103c777ad6 checker: check generic type indexing error (#10345) 2021-06-08 17:23:44 +03:00
665c386771 builtin: simplify the .si_c and .si_vp cases in StrIntpData.get_fmt_format, free intermediate results 2021-06-08 13:29:03 +03:00
d2bc9ee7bc doc: tablename -> table (#10359) 2021-06-08 00:48:42 +03:00
7c2265e00a tools: vast fix and clean code (#10381) 2021-06-07 21:42:09 +03:00
98613036c1 gg: fix draw_line on m1 2021-06-07 21:31:24 +03:00
5b2046342b Revert "examples: split asm.v to asm.amd64.v and asm.i386.v"
This reverts commit 74e73edac1.
2021-06-07 20:23:44 +03:00
74e73edac1 examples: split asm.v to asm.amd64.v and asm.i386.v 2021-06-07 20:17:45 +03:00
2e6611372a mysql: use v oksyntax for the example in the README.md, so that the check passes on m1 without installed mysql 2021-06-07 18:39:42 +03:00
ac0b638b6a examples: run vfmt over psql/customer.v 2021-06-07 18:25:20 +03:00
01a8d3f8a1 tests: skip building psql/customer.v on macos (requires postgres) 2021-06-07 18:23:18 +03:00
4f213f4468 examples: conditionally compile an asm amd64 {} block on M1 in asm.v 2021-06-07 18:23:18 +03:00
9f6c4030f6 tests: fix -cstrict self compilation on m0 with clang 2021-06-07 18:23:18 +03:00
4772146a7e tests: fix failing tests on M1 2021-06-07 18:23:18 +03:00
3c56532ecb docs: fix a typo in vscode.md (#10376) 2021-06-07 15:50:18 +03:00
98cdde8247 assert: print enum value of CTempVars on fail (#10378) 2021-06-07 15:49:48 +03:00
cd464010d4 cgen: fix match with multi sumtype exprs (#10377) 2021-06-07 14:16:30 +03:00
3582118b7c mssql: support windows (#10336) 2021-06-07 14:02:15 +03:00
0615f2e236 checker: check generic method receivers with no type parameter (#10374) weekly.2021.23 2021-06-07 12:11:29 +03:00
86778d06b1 net.http: add a Header.starting_with method, to get the first header, starting with a key (#10119) 2021-06-07 11:18:40 +03:00
eef445508f docs: document recompiling V itself with debug info, debugging tests, and a tip for vscode (#10358) 2021-06-07 11:09:07 +03:00
8a497080b3 cgen: fix assembly in generic fns (#10370) 2021-06-07 10:53:33 +03:00
114c382c46 parser: fix generic fn typeof name (#10363) 2021-06-06 17:40:13 +03:00
c14b357fec checker: fix enums in builtin (#10366) 2021-06-06 16:27:46 +03:00
012f866619 native: support more arithmetic, int/string arrays, function returns and internal_strlen (#10279) 2021-06-06 16:19:10 +03:00
04e77419cc doc: document array.join method (#10360) 2021-06-06 12:32:49 +03:00
007ba5178e v: add more timing points 2021-06-06 12:23:00 +03:00
27f3737c5a tools: cleanup the fast.v output 2021-06-06 09:52:29 +03:00
43acb5a3ca tools: make fast.v more robust against V module lookup bugs 2021-06-06 09:46:44 +03:00
aea93c3a96 net.http: vfmt and remove unused ws_func 2021-06-06 01:51:49 +03:00
329a6c974e table, checker, cgen: implement generic fn infering fixed array (#10352) 2021-06-06 01:11:08 +03:00
c2981de4d5 http: add server.v and organize HTTP request and response code (#10355) 2021-06-06 00:43:14 +03:00
3f00ff465b checker: check or block inside println calls (#10354) 2021-06-05 23:01:58 +03:00
9924f6c54b ci: fix build-vc job 2021-06-05 18:26:56 +03:00
55ef849cd2 v.markused: trim unused map fns for programs that do not use them 2021-06-05 17:30:25 +03:00
8af7558e0c checker: minor cleanup of return_stmt() (#10315) 2021-06-05 14:06:48 +03:00
a716a00e38 builder: fix a bug with submodule import (#10318) 2021-06-05 12:45:23 +03:00