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

14605 Commits

Author SHA1 Message Date
b8571c964d cgen: fix json encode struct with optional field (#16866) 2023-01-04 12:41:07 +02:00
0a6fc6d280 checker: fix generic stack of sumtype push() (#16855) 2023-01-03 18:29:29 +02:00
2378b71f22 cgen: fix comptime if expr with optional or result call (#16853) 2023-01-03 14:38:08 +02:00
09766c44b6 checker: disallow struct{...val.$(field.name)} (#16852) 2023-01-03 10:21:32 +02:00
2e54a8cb0e x.json2: update tests (#16847) 2023-01-03 10:16:36 +02:00
bd2b216ac7 cgen,checker: fix method call with comptime var (#16844) 2023-01-03 10:14:23 +02:00
395ee2b464 readme: add back align=center to make github happy (#16850) 2023-01-03 10:12:08 +02:00
24189e02b5 tools: fix typo in vcomplete.v (#16851) 2023-01-03 10:11:06 +02:00
3625a74ec5 os: add test for os.open_append (#16846)
* os: add test for os.open_append

* fix unclosed file in test_eof (it made os.open_append fail only on windows, since it got the previous file content, because the file was locked, and os.rm could not delete it)
2023-01-03 01:11:35 +02:00
d5b9f7d026 io: fix typos (fix #16839) (#16840) 2023-01-02 20:20:52 +02:00
b0d39814be cgen, checker: fix conditional evaluation and code generation for $if/$else $if/$else for known true conditions (#16823) 2023-01-02 20:14:12 +02:00
9bee702c62 readme: final update for the instructions for NixOS 2023-01-02 19:39:18 +02:00
d91cf511ca readme: update the instructions for NixOS with the correct ones 2023-01-02 19:35:10 +02:00
c21949456e readme: add instructions for installing the libraries needed for the graphics examples on NixOS 2023-01-02 19:30:01 +02:00
f71572a50f parser: fix array of functions direct call (#16838) weekly.2023.01 2023-01-02 14:12:07 +02:00
9d49b69b69 ast: fix inferring generic struct (fix #16830) (#16831) 2023-01-01 17:36:18 +02:00
51bb630ea4 checker: fix generic fn with short generic struct init syntax (#16828) 2023-01-01 09:14:55 +02:00
aaf3e25c3f websocket: simplify and better handle handshake (#16829) 2023-01-01 09:04:09 +02:00
d3a196977f thirdparty: update stb_image.h to its latest version v2.27 (#16825) 2022-12-31 21:25:31 +02:00
3364bf8600 cgen: add g.push_existing_comptime_values and g.pop_existing_comptime_values, use them inside Gen.comptime_for (#16821) 2022-12-31 18:29:19 +02:00
1c151fbec9 cgen: fix struct optional field zero init (#16814) 2022-12-31 17:36:14 +02:00
04cb6ae65f tests: improve Teamcity test runner (#16817) 2022-12-31 17:26:18 +02:00
1e401d1433 bcrypt: fix issue #16769 security problem in compare_hash_and_password (#16815) 2022-12-31 17:18:43 +02:00
5daf39bc6a cgen: fix typeof with comptime var (#16816) 2022-12-31 15:57:55 +02:00
15c9153f1d cgen: fix fixed array literal range index (#16812) 2022-12-30 13:59:54 +02:00
c10bc09e83 checker, cgen: allow $for in alias type (#16810) 2022-12-30 11:27:01 +02:00
f4cd3931fb cgen: fix dump fn name using generic var (#16805) 2022-12-30 11:16:59 +02:00
828cd4fe79 checker: add check for implicit fixed array decomp in function varargs (#16806) 2022-12-30 01:06:41 +02:00
c7f1db2b8a cgen: cleanup uneeded C code, when using selectorexpr on $if (#16802) 2022-12-29 20:30:42 +02:00
6229f48830 checker,cgen: implement support for the new FieldData.is_alias field (part 2, follow up to a6bf20f) 2022-12-29 19:14:13 +02:00
6a8b6c010c repl: minor cleanup in runner.v (#16804) 2022-12-29 17:55:57 +02:00
36ab78d6da parser, cgen: fix anon fn optional call in if expr (#16803) 2022-12-29 17:53:17 +02:00
cd4ea16609 cgen: add more detailed cgen stage timing info on -show-timings 2022-12-29 17:33:40 +02:00
a6bf20f3be builtin: add .is_alias to FieldData too (part 1, unimplemented yet) 2022-12-29 12:43:55 +02:00
f4b110b1a4 vrepl: fix $tmpl('hello.txt') (fix #16789) (#16793) 2022-12-29 11:30:25 +02:00
ed06618498 cgen: fix generic func arg type when passing array compile-time field (#16798) 2022-12-29 11:23:57 +02:00
2ebd3f0cdb checker,cgen: make boolean field.is_<field> accessible at compile-time as well (#16796) 2022-12-29 00:19:47 +02:00
ad9ca349dc cgen: fix generics array delete (#16794) 2022-12-29 00:15:47 +02:00
4718a818b8 vfmt: fix alignment of value formatting for "x := {.: 1, : 2}" 2022-12-28 18:06:32 +02:00
1709d175bb tools/fast: make the header a link to /, to ease navigation 2022-12-28 13:51:26 +02:00
101aa4aeb0 tools/fast: add navigation links to older stat pages 2022-12-28 13:35:30 +02:00
0f37ff197b checker: fix fn call with generic []T arg (#16781) 2022-12-28 11:05:11 +02:00
b171102b03 os: minor optimization in os.v (#16791) 2022-12-28 10:28:47 +02:00
b9996619d5 cgen: fix result/option breaks execution order in if statements (fix #16663) (#16778) 2022-12-28 10:26:39 +02:00
afdb09708e ci: comment out the -autofree compilation for gitly for now 2022-12-27 20:51:45 +02:00
161595b041 examples: use math.vec in examples/sokol/particles (#16780) 2022-12-27 15:19:08 +02:00
c5c7b3a054 checker: fix comptime var param passing with comptime selector (#16777) 2022-12-27 15:14:58 +02:00
a8f6f9ed60 checker: more precise error handling of large binary literals like 0b1000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000 (#16775) 2022-12-27 15:13:15 +02:00
508bfbf892 time: do not panic for time.parse("2020-02-02 20.02.20")!, just return an error instead (fix #16779) 2022-12-27 13:01:01 +02:00
6b3f8f519d cgen: fill in the new FieldData fields, add tests (#16774) weekly.2022.52 2022-12-26 23:35:13 +02:00