Daniel Däschle
|
6fa8e4269e
|
checker: force interface init (#10910)
|
2021-07-30 03:18:20 +03:00 |
Uwe Krüger
|
08aa6c08f6
|
all: more improvements for global variables (#10986)
|
2021-07-29 10:57:31 +03:00 |
Delyan Angelov
|
7a9b326200
|
ci: fix -cstrict rebuilding of V with clang
|
2021-07-29 09:54:52 +03:00 |
Uwe Krüger
|
45ad48d76a
|
cgen: properly handle initialization expression for globals (#10981)
|
2021-07-28 08:11:55 +03:00 |
Uwe Krüger
|
abd17ddb6a
|
cgen: initialize globals with default initializer when none is given. (#10979)
|
2021-07-27 20:14:30 +03:00 |
Delyan Angelov
|
6134c4870b
|
v.util: extract v.util.version, use it to speed up building `v repl`, `v up` and `v doctor`
|
2021-07-27 12:59:56 +03:00 |
Delyan Angelov
|
b44f81528f
|
v.gen.c: fix codegen for `const a = u64(5) + 5`
|
2021-07-26 08:06:59 +03:00 |
Uwe Krüger
|
55c5b9ce7b
|
cgen: panic with error message when `go` command fails (#10943)
|
2021-07-25 01:13:34 +03:00 |
Delyan Angelov
|
6313ed6a79
|
checker,cgen: fix `-os cross` support for `$if !solaris { #include <sys/ptrace.h> }`
|
2021-07-23 16:24:42 +03:00 |
yuyi
|
f5776eb259
|
cgen: fix multiple assign array index (#10926)
|
2021-07-23 15:46:18 +03:00 |
Louis Schmieder
|
26db3b0995
|
orm: redesign orm (re-write it in V) (#10353)
|
2021-07-23 12:33:55 +03:00 |
Daniel Däschle
|
091ce6cc08
|
cgen: fix several sort declarations (#10919)
|
2021-07-23 08:55:55 +03:00 |
Daniel Däschle
|
2c0c211c79
|
all: implement accessing embedded field and method of aggregate (#10907)
|
2021-07-23 01:14:39 +03:00 |
Daniel Däschle
|
054bd67490
|
cgen: don't change field name of c structs (#10894)
|
2021-07-22 01:37:49 +03:00 |
Uwe Krüger
|
713a079684
|
cgen: properly support `typeof()`, sizeof(), ... in compile time `for` (#10896)
|
2021-07-21 23:43:30 +03:00 |
Daniel Däschle
|
aebb028349
|
gen: fix C keyword escape to _v_ instead of just v_ (#10876)
|
2021-07-21 11:46:04 +03:00 |
Delyan Angelov
|
24c59881f5
|
v.gen.c: do not use precomputed const values in -usecache mode (fix `v test-all` on M1)
|
2021-07-20 17:52:07 +03:00 |
Delyan Angelov
|
2c9f6899ba
|
v.gen.c: fix `v -cstrict -o vtmp_werror cmd/v` on Apple M1
|
2021-07-20 16:09:47 +03:00 |
Uwe Krüger
|
f457b94fe4
|
cgen: properly support reference args in receivers and arithmetic op methods (#10873)
|
2021-07-20 15:08:32 +03:00 |
Daniel Däschle
|
60b705b4c4
|
checker, gen: implement basic struct embed direct field init support (#10871)
|
2021-07-20 15:06:06 +03:00 |
Daniel Däschle
|
ad3835b598
|
parser: deprecate short struct init (#10842)
|
2021-07-20 11:17:08 +03:00 |
Enzo
|
1db354c360
|
v.gen.c: fix codegen ordering problem with interfaces with interface fields (#10862)
|
2021-07-19 19:57:12 +03:00 |
Delyan Angelov
|
83b0a80ff4
|
ci: fix MSVC build (delay const string initialiastion to _vinit)
|
2021-07-19 08:20:09 +03:00 |
Delyan Angelov
|
241a7b760d
|
strconv,checker,cgen: fix -cstrict compilation of hello_world.v
|
2021-07-19 01:08:48 +03:00 |
Delyan Angelov
|
48546d0f45
|
all: do compile time const evaluation for `const x = "abc" + "xyz"` and `const x = 16 * 1024 + 5` (fix const prealloc_block_size)
|
2021-07-18 22:59:18 +03:00 |
Delyan Angelov
|
568aa742b2
|
v.parser: improve conditions for debugging ast.CastExpr parsing
|
2021-07-17 17:49:29 +03:00 |
crthpl
|
ec47cda386
|
cgen: fix other generic pointer cases (#10834)
|
2021-07-17 11:51:42 +03:00 |
spaceface
|
ebc34c237b
|
cgen: fix generating invalid Option decls for generic interfaces (#10817)
|
2021-07-15 22:15:25 +03:00 |
spaceface
|
6e942bf4c2
|
v: initial support for generic interfaces and sumtypes (#10795)
|
2021-07-15 08:29:13 +03:00 |
yuyi
|
7687b28d8d
|
cgen: remove Gen.write_expr_to_string() (#10804)
|
2021-07-15 08:15:28 +03:00 |
yuyi
|
ed78e638b3
|
cgen: fix if_expr with array methods cond (#10786)
|
2021-07-13 19:51:49 +03:00 |
yuyi
|
2a9d6fef9f
|
cgen: fix initialization errors with fixed array aliases (#10784)
|
2021-07-13 10:51:54 +03:00 |
Delyan Angelov
|
13917dc095
|
Revert "cgen: fix g.typ() not adding correct number of * for generic types (#10687)"
This reverts commit bfafdb69c9 .
|
2021-07-08 22:15:44 +03:00 |
crthpl
|
bfafdb69c9
|
cgen: fix g.typ() not adding correct number of * for generic types (#10687)
|
2021-07-08 21:28:40 +03:00 |
yuyi
|
fb9b2e873c
|
checker: fix generic fn with assign reference generic struct (fix #10681) (#10695)
|
2021-07-08 16:50:25 +03:00 |
yuyi
|
6436d9a827
|
cgen: fix error of generic array typedef (#10679)
|
2021-07-07 12:42:53 +03:00 |
crthpl
|
d14de5fdaf
|
all: fix generic functions with pointer args (#10686)
|
2021-07-07 11:51:05 +03:00 |
yuyi
|
9f8c3cc159
|
cgen: fix fn return array of interface (#10677)
|
2021-07-06 16:33:26 +03:00 |
Delyan Angelov
|
6dde9f76c6
|
cgen: reset g.tmp_count at the start of each fn (minimise v.c commit delta)
|
2021-07-06 14:50:30 +03:00 |
yuyi
|
59d80e2758
|
cgen: fix interface fn return with struct_init (#10675)
|
2021-07-06 10:14:13 +03:00 |
Delyan Angelov
|
6aecda3be8
|
all: support `[noreturn] fn abc() { for{} }`, mark panic/1 and exit/1with it too. (#10654)
|
2021-07-04 20:24:19 +03:00 |
yuyi
|
f246d73d6e
|
cgen: fix generic fn return mut parameter (#10662)
|
2021-07-04 18:36:37 +03:00 |
Daniel Däschle
|
0f9537ece5
|
all: remove ustring (#10630)
|
2021-07-03 20:14:09 +03:00 |
yuyi
|
5a4a1997e7
|
cgen: fix empty struct initilization (#10651)
|
2021-07-03 20:11:56 +03:00 |
Alexander Medvednikov
|
41e88423aa
|
Revert "builtin: use == 0 instead of isnil()"
This reverts commit 8650ec6916 .
|
2021-07-01 06:21:03 +03:00 |
Daniel Däschle
|
3881e97a40
|
vlib: remove ustring usage (#10618)
|
2021-06-30 22:30:28 +03:00 |
Daniel Däschle
|
6838030ab5
|
builtin: add string.runes() (#10611)
|
2021-06-30 09:17:38 +03:00 |
yuyi
|
04221475d1
|
cgen: fix go call interface method (fix #10520) (#10602)
|
2021-06-29 11:16:15 +03:00 |
yuyi
|
4af4f2b5a5
|
cgen: fix `go fn(mut x Interface){ println(x) }(x)` (#10585)
|
2021-06-28 16:31:11 +03:00 |
Delyan Angelov
|
8650ec6916
|
builtin: use == 0 instead of isnil()
Do not rely on C inlining that may not happen for a *very* frequently
called fn in lower level code.
|
2021-06-28 10:59:14 +03:00 |