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

142 Commits

Author SHA1 Message Date
9b9c1cc834 scanner: fix number literal calling method 2020-03-31 12:47:32 +02:00
eed7c91e87 move compiler tests from compiler/ to v/ 2020-03-27 18:01:46 +01:00
7fdce50718 cgen: write defer statements at the end of the function 2020-03-27 11:21:00 +01:00
fd8bb2c95c tests: small array/struct test notes & tmp fix 2020-03-27 20:47:24 +11:00
db59c621e8 v2: minor fixes 2020-03-27 08:47:02 +01:00
f489c89987 v2: more informative assert output; string interpolation formatting 2020-03-26 19:17:14 +01:00
75c2ef7947 cgen: fix octal and hex int literals 2020-03-26 17:14:24 +01:00
ed3e0c43bc cgen: for c in string; short struct init syntax fixes; 2020-03-26 17:03:14 +01:00
2efc37947d time: calc_unix => unix_time 2020-03-22 19:43:59 +01:00
cc75fe4fe5 builtin: Fix undefined behaviour when allocating empty structs (#4088) 2020-03-21 12:24:34 +01:00
c21e976cad builtin: do not use unsafe sprintf/vsprintf functions 2020-03-21 06:37:58 +01:00
2f27758a4b os: realpath => real_path 2020-03-20 16:41:18 +01:00
010f3efcf0 os: filename => file_name 2020-03-19 15:49:07 +01:00
f798a0937a expression: set floats as f64 by default 2020-03-19 07:24:49 +01:00
8bfa7f0d82 compiler: fix interface bug 2020-03-14 14:19:56 +01:00
26b9987880 compiler: fix panic when dealing with variadic functions 2020-03-12 18:21:02 +01:00
876b73f92c os: join => join_path 2020-03-09 02:23:34 +01:00
a569959fb8 os api: cachedir => cache_dir 2020-03-08 15:57:47 +01:00
783dee1f48 os: merge with filepath 2020-03-07 22:26:26 +01:00
d2ab9d3e77 compiler: fix generation of default .str() methods in interpolation 2020-03-07 14:13:53 +01:00
aab31f4b35 cmd/v: rewrite flags 2020-03-06 18:53:29 +01:00
a8e45251c4 sync.pool: simplify usages of pool.work_on_items 2020-03-05 18:37:57 +01:00
b0ece3a9d8 sync: implement pool.work_on_items to process a list of items in parallel 2020-03-04 20:28:42 +01:00
448ed41562 os api: rmdir_recursive => rmdir_all 2020-03-03 15:02:50 +01:00
c6107276df compiler: stabilize the interface code generation a little 2020-03-02 17:10:26 +01:00
1066ec5cd9 compiler: import modules relative to v.mod 2020-03-01 15:49:39 +01:00
f9d5c0110f compiler: @VMODULE 2020-02-29 14:23:45 +01:00
c4e83faa57 compiler: allow a type to be used as a variant of multiple sum types 2020-02-26 15:15:38 +11:00
d4ffed89c0 add typeof test for fn (#3832) 2020-02-25 11:14:59 +01:00
b17ade1257 compiler: implement typeof(x) 2020-02-24 21:45:47 +01:00
88b402fcf8 bugfix: v should not panic when encountering a file that consists only of comments 2020-02-20 22:59:47 +01:00
4de8d3ae8c parser: short struct syntax for all structs 2020-02-18 16:25:09 +01:00
6849a4e770 filepath: path separator (#3756) 2020-02-17 20:31:23 +01:00
2ce6b190dd @VMODULE relative paths in #flag lines 2020-02-06 17:38:35 +01:00
9d4c943d64 compiler: add very simple nameof token to get type name as string 2020-02-05 06:12:33 +01:00
554d1dd7c6 compiler: make optionals work with multi return 2020-02-02 02:53:23 +01:00
05374e162e compiler: attribute test - fix typo in function name 2020-02-01 18:59:34 +11:00
bf9eefa694 parser: resolve optional enum type 2020-01-31 16:00:31 +01:00
80d936adc1 fix attributes on public structs & enums 2020-01-30 01:27:13 +01:00
f55646746c handle empty config structs 2020-01-24 18:57:32 +01:00
20f6cdc53a compiler: fix module alias resolution 2020-01-23 21:07:53 +01:00
0502a54a36 new gg/freetype modules with sokol/fontstash backends 2020-01-22 20:54:36 +01:00
d92291dd76 repl: execute REPL tests ~1.5x to 2x faster 2020-01-20 23:04:26 +01:00
64a9f43405 Make REPL tests parallel too 2020-01-20 17:06:36 +01:00
ddc04979a4 deprecate v runrepl in favour of v repl 2020-01-17 14:09:26 +01:00
6d30697d9b time: move time.random() to time.misc module
avoids importing rand to programs that do not need pseudo random generation).
2020-01-07 12:58:24 +01:00
a0c8ad7398 post increment/decrement repl fix 2020-01-07 12:26:49 +01:00
b815878d60 simplify and improve pratt 2020-01-06 16:13:12 +01:00
43895269ff compiler: implement direct cast for sum type 2020-01-03 14:42:48 +01:00
a0f32f5c29 tests: improved test output formatting 2019-12-30 05:23:54 +01:00