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

11718 Commits

Author SHA1 Message Date
b4f0bb247d cgen: fix default initialization of option array with none values (#17536) 2023-03-07 23:53:07 +03:00
b6c4e88462 checker: check error of casting to interface (fix #17522) (#17531) 2023-03-07 23:49:53 +03:00
b85f71d00f cgen: fix default init value for an array of option (#17538) 2023-03-07 20:04:16 +02:00
792b822091 cgen: fix dump(option_value) inside a generic function (#17537) 2023-03-07 18:13:19 +02:00
32751440b6 checker: fix missing check for none type on or block on non-option (#17529) 2023-03-07 18:11:03 +02:00
68cab00ded cgen: fix or-block with return void statement (#17527) 2023-03-07 15:01:46 +01:00
9826310882 cgen: fix struct initialization for nested option struct (fix #17524) (#17525) 2023-03-07 09:30:45 +01:00
1e416de627 checker: fix const init with comptime (#17528) 2023-03-07 09:15:46 +01:00
784592af83 os: fix typo in os.v (#17519) 2023-03-07 08:30:37 +01:00
6e670ec908 v: support interface field compile time reflection (#17503) 2023-03-07 08:52:40 +02:00
d7a418fbb5 pref: no-skip-unused 2023-03-06 14:13:29 +01:00
65a627d72b checker: allow aa := AA{}, when AA has an option field, that is a struct, that has a [required] tag on its fields (#17516) 2023-03-06 10:16:05 +02:00
77b6bc1c1a net.websocket: fix a typo (allready -> already) (#17512) 2023-03-06 10:05:17 +02:00
7de3485bd2 cgen: fix multi return with option type (#17489) 2023-03-05 11:41:19 +01:00
1a48d08d7a cgen: add calls to all typeof functions for interfaces and sum-types (#17490) 2023-03-04 14:59:00 +02:00
3f8821b8d8 cgen: unwrap and c-mangle field selectors in or blocks (#17495) 2023-03-04 11:52:08 +02:00
6944d54257 parser, cgen: fix option variable error (fix #17460) (#17479) 2023-03-04 11:47:49 +02:00
30c205ef2c cgen: fix printing map reference value (#17496) 2023-03-04 11:35:38 +02:00
l-m
6f7192359a wasm: bug fixes and memory based changes (#17497) 2023-03-04 11:24:33 +02:00
72cbca9653 checker: fix and improve return stmt error messages (#17477) 2023-03-04 09:32:55 +02:00
c5832379e7 checker, cgen, parser: fix Option/Result error messages (capitalized) (#17486) 2023-03-04 09:02:57 +03:00
0ba0fb256f checker: check the type of SizeOf 2023-03-03 18:45:18 +01:00
5454562d2c checker, parser, orm: remove redundant & for sum type value arguments to functions with expr &ast.Expr parameters (#17482) 2023-03-03 14:35:12 +02:00
l-m
9c9adb125b doc: ignore builtin/wasm (#17480) 2023-03-03 12:35:21 +02:00
5e2ff246c8 cgen: pass sum type values automatically by reference too, when functions require that (#17476) 2023-03-03 09:11:15 +02:00
904f984367 checker: fix or-block expected type checking (#17469) 2023-03-03 08:30:44 +02:00
17000ef7b6 checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
8f7c35552d fmt: fix formatting for $compile_warn (#17450) 2023-03-02 15:40:53 +02:00
9fc2860074 checker: fix compiler panic for for k, mut val in app.field[x].values { (#17468) 2023-03-02 15:40:14 +02:00
e2daa84a33 ci: add windows and macos jobs for checking the wasm backend too (#17451) 2023-03-01 21:53:03 +02:00
l-m
cdc0159c6e wasm: update the compile flags in binaryen.c.v to assist darwin (#17449) 2023-03-01 14:21:08 +02:00
bba7cfee0b checker: check or-block used on non-option value (#17444) 2023-03-01 02:08:18 +02:00
3682a9cf88 orm: allow use of mut db orm.Connection (#17439) 2023-03-01 00:49:30 +02:00
5f4b34ef12 eval: add host API, for passing and receiving values, to/from code, ran by the eval.Eval instances (#17426) 2023-03-01 00:42:19 +02:00
acfd21e4e0 os: add #include <sys/types.h> to debugger_darwin.c.v, to fix bootstrapping on macOS <= 11 (#17446) 2023-03-01 00:06:12 +02:00
l-m
0625caad56 wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00
b9a8a21094 cgen: fix nested option struct init (fix #17415) (#17425) 2023-02-28 14:02:17 +02:00
b7b6c2368e orm: allow using connections, that were explicitly casted to orm.Connection too (#17427) 2023-02-27 23:54:03 +02:00
864e1994b0 vlib/time: format table for custom_format() (#17428)
* vlib/time: format table for `custom_format()`

* small fix

* small fix
2023-02-27 21:48:05 +02:00
607649b44d builder: add small diagnostic and instructions for when the C cross compiler for linux->windows is not installed. 2023-02-27 16:59:56 +02:00
15cb18cbd2 os: make hostname and loginname functions return Result (#17414) 2023-02-27 05:21:23 +03:00
45d4849b0f checker: fix returning match expr with custom error (#17413) 2023-02-26 07:54:53 +02:00
4c13a4c22c ci: make websocket_test.v more robust (wait till the websocket server are open for connections, instead of relying on fixed time.sleep delays, which are not enough on the CI) 2023-02-25 19:39:14 +02:00
524c500146 cgen: add requires to c_reserved, so that V generated code, can be compiled with -cc g++-11 -no-std -cflags -std=c++20 as well (#17404) 2023-02-25 16:50:48 +02:00
cf47a5f978 ci: fix websocket_test.v after a7ae3bf 2023-02-25 14:46:31 +02:00
12ec0e9fe1 cgen: support option pointer values - ?&Type (#17397) 2023-02-25 14:44:41 +02:00
51bb8cda15 test: fix teamcity runner message escapes (#17405) 2023-02-25 14:39:09 +02:00
a7ae3bfa78 ci: fix all ports for the servers started in websocket_test.v 2023-02-25 14:36:54 +02:00
9a8f3025f5 cgen: implement option fixed array (#17400) 2023-02-24 19:25:31 +02:00
2836544978 cgen: minor cleanup of leftover comments in expr() (#17390) 2023-02-24 11:03:07 +02:00