Nick Treleaven
|
43c3a3b080
|
checker: fix compile-time call with string identifier expression (#8415)
|
2021-01-30 15:24:16 +01:00 |
Uwe Krüger
|
058f3ba013
|
sync: rename `m_lock() -> @lock()`, `r_lock() -> @rlock()`, ... (#8443)
|
2021-01-30 15:23:55 +01:00 |
div72
|
8c70920695
|
all: add offsetof (#8380)
|
2021-01-30 12:57:09 +01:00 |
yuyi
|
97cb7687a2
|
cgen: minor cleanup of consts (#8441)
|
2021-01-30 13:35:25 +02:00 |
Enzo
|
ced7649bf8
|
gen: fix `for ... in array` (#8428)
|
2021-01-30 12:27:11 +01:00 |
Uwe Krüger
|
5e9b528a9d
|
checker/cgen: support `return` from nested `or` (#8430)
|
2021-01-30 12:46:36 +02:00 |
yuyi
|
5af16f38fc
|
cgen: correct minor typo (#8438)
|
2021-01-30 12:39:44 +02:00 |
Delyan Angelov
|
7f5d654c3a
|
all: cleanup redundant `.ends_with(_test.v)` calls
|
2021-01-30 11:08:52 +02:00 |
Delyan Angelov
|
760b4c37b9
|
all: support _test.vv files (to test _test.v errors/checks too)
|
2021-01-30 10:42:18 +02:00 |
Delyan Angelov
|
948f63b507
|
checker,builder: rename `details:` to `Details:`
|
2021-01-30 10:20:09 +02:00 |
Uwe Krüger
|
4a955d9c54
|
sync: don't force `Mutex` and `Semaphore` to be reference (#8331)
|
2021-01-29 20:52:14 +02:00 |
yuyi
|
56c4a36cd4
|
cgen: fix match_in_if_expression (#8407)
|
2021-01-29 14:51:17 +01:00 |
Swastik Baranwal
|
c4758c21c6
|
cgen: println(none) => `<none>` (#8404)
|
2021-01-29 14:50:48 +01:00 |
yuyi
|
ddcbc4440b
|
cgen: fix array_sort_by_references (fix #8390) (#8403)
|
2021-01-29 12:20:28 +02:00 |
Lukas Neubert
|
75d85403a6
|
fmt: better ternary concat wrapping (#8379)
|
2021-01-28 11:23:48 +01:00 |
Tim Basel
|
5fc7eadd8b
|
cgen: fix short struct init with `mut` (#8384)
|
2021-01-28 10:05:09 +02:00 |
Delyan Angelov
|
dceb63b9df
|
cgen: fix implicit the optional return value to have .ok = true, in anon `fn()?{}`
|
2021-01-28 02:26:02 +02:00 |
Delyan Angelov
|
e5a84719ca
|
all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}`
|
2021-01-26 16:43:17 +02:00 |
spaceface
|
5f2b2df546
|
checker: don't disallow defining methods on interfaces (#8335)
|
2021-01-26 11:56:17 +01:00 |
Delyan Angelov
|
dbaccd4272
|
vfmt: shorten `main.const_name` to just `const_name`
|
2021-01-25 20:57:33 +02:00 |
Delyan Angelov
|
cb04e6dccc
|
tests: move is_nodejs_working() to jsgen_test.v
|
2021-01-25 18:46:28 +02:00 |
yuyi
|
3199b982a9
|
cgen: minor cleanup of comp_for in comptime.v (#8337)
|
2021-01-25 17:08:48 +01:00 |
Daniel Däschle
|
006a11454f
|
cgen: fix generic type $else $if (#8339)
|
2021-01-25 17:08:02 +01:00 |
yuyi
|
444d49da75
|
cgen: minor cleanup of gen_assert_stmt (#8334)
|
2021-01-25 15:28:34 +02:00 |
Nick Treleaven
|
02d8ede94d
|
cgen: fix `$if T !is` (#8311)
|
2021-01-25 14:25:52 +01:00 |
yuyi
|
1c9950c84a
|
cgen: fix map_complex_high_order_fixed_array (#8329)
|
2021-01-25 14:40:53 +02:00 |
Delyan Angelov
|
728344ff65
|
ci: fix `v test-cleancode`
|
2021-01-25 12:55:01 +02:00 |
Delyan Angelov
|
d3d301d8ff
|
gen: use externally_visible too for VV_EXPORTED_SYMBOL when ARM is defined
|
2021-01-25 12:40:28 +02:00 |
yuyi
|
d3327ba50f
|
cgen: fix for_mut_val_in_map_fixed_array (#8314)
|
2021-01-24 23:18:11 +01:00 |
Uwe Krüger
|
815104e5d0
|
parser: parse `-1` and `-13.3` as number literals (#8321)
|
2021-01-24 22:09:51 +01:00 |
Daniel Däschle
|
750738aa12
|
cgen: fix optional sum types (#8319)
|
2021-01-24 20:56:44 +01:00 |
Emily Hudson
|
2e695a8e8f
|
cgen: free temporary channel arrays (#8324)
|
2021-01-24 20:02:17 +01:00 |
Alexander Medvednikov
|
29d6e40f29
|
all: vfmt (new const rule)
|
2021-01-24 10:54:27 +01:00 |
Uwe Krüger
|
1ea5cedd03
|
parser/cgen: fix explicit array/map shared/reference initializers (#8307)
|
2021-01-23 23:54:57 +02:00 |
Daniel Däschle
|
35432c5e92
|
gen: fix generic multi return (#8303)
|
2021-01-23 23:41:32 +02:00 |
Swastik Baranwal
|
8a59ffb4b7
|
cgen: allow `==` to be user defined if `!=` is auto generated and vice versa (#8286)
|
2021-01-23 16:59:39 +01:00 |
Delyan Angelov
|
4065a0327a
|
gen: fix autogeneration of .str() methods for sumtypes that have child types with custom .str() methods
|
2021-01-23 17:22:19 +02:00 |
Delyan Angelov
|
d4f6f5eec4
|
sokol,fontstash: move f_d_use_freetype.v to vlib/fontstash/a_d_use_freetype.v
|
2021-01-23 11:39:17 +02:00 |
Alexander Medvednikov
|
d991712b3c
|
gg: native rendering mode on macOS
|
2021-01-23 10:25:43 +01:00 |
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
spaceface
|
c2d501e8a9
|
all: implement interface fields (#8259)
|
2021-01-23 08:57:17 +02:00 |
Louis Schmieder
|
e06e8b10cd
|
orm: fix empty struct and simplify (#8246)
|
2021-01-22 23:28:26 +01:00 |
Daniel Däschle
|
500ebf77e4
|
all: implement multiple generics (#8231)
|
2021-01-22 13:49:56 +01:00 |
Uwe Krüger
|
925ffd76f4
|
sync/channels: expose `ch.closed` as `bool` pseudo attribute (#8244)
|
2021-01-22 09:37:29 +02:00 |
yuyi
|
d44c632d11
|
cgen: fix innermost value of map fixed array (fix #8214) (#8247)
|
2021-01-22 09:32:56 +02:00 |
Daniel Däschle
|
3ee7bc960f
|
checker/gen: fix smartcast pointer sumtype (#8260)
|
2021-01-21 22:31:25 +02:00 |
Louis Schmieder
|
0d204603d1
|
gen: fix generic comp time if (#8254)
|
2021-01-21 21:17:44 +02:00 |
yuyi
|
59c3e98c16
|
cgen: fix complex map_fixed_array (#8209)
|
2021-01-21 12:45:37 +01:00 |
yuyi
|
f13ba3a9a8
|
cgen: fix for_in_mut_val for maps (#8221)
|
2021-01-21 12:44:22 +01:00 |
Uwe Krüger
|
3ecbf78707
|
cgen: support explicit array handling even in [direct_array_access] functions (#8241)
|
2021-01-21 12:43:54 +01:00 |
spaceface
|
f059a9e96c
|
builtin: fix sorting arrays of primitives (#8204)
|
2021-01-20 23:19:35 +02:00 |
joe-conigliaro
|
97ebecc5f4
|
usecache: get all tests running with -usecache enabled by default (p.1) (#7699)
|
2021-01-20 06:04:59 +01:00 |
yuyi
|
985ef52872
|
cgen: fix child struct's default values not assigned (#8202)
|
2021-01-19 17:10:22 +01:00 |
yuyi
|
15cc1cd884
|
cgen: fix high order map assignment (#8198)
|
2021-01-19 14:31:24 +02:00 |
Uwe Krüger
|
b74690cbec
|
builtin, checker, cgen: implement `x = a[k] or { ... }` for maps and arrays (#8193)
|
2021-01-19 06:06:57 +01:00 |
yuyi
|
a65b73d3e4
|
cgen: fix for_in_fixed_array (fix #8186) (#8195)
|
2021-01-19 05:50:23 +01:00 |
Uwe Krüger
|
5cc591b2b6
|
all: support generic `chan` (#8188)
|
2021-01-18 18:37:45 +01:00 |
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
yuyi
|
5ddb70940e
|
cgen: fix map_fixed_arrays str error (fix #8170) (#8178)
|
2021-01-18 10:34:29 +01:00 |
yuyi
|
6c87c25ef1
|
cgen: fix `for _,mut j in arr` for fixed arrays (fix #8163) (#8167)
|
2021-01-18 06:05:38 +01:00 |
Lukas Neubert
|
16c9cbce7c
|
fmt: correctly increase f.line_len for write_indent (#8174)
|
2021-01-18 06:02:29 +01:00 |
BigBlack
|
28ed4da1ce
|
cgen: fix `array_slice(*a, 0, a.len)` C error, generated for `a[..a.len]`, for a `mut a []int` (#8168)
|
2021-01-17 17:22:23 +02:00 |
Swastik Baranwal
|
334b66b311
|
checker/cgen: add checks and fix cgen for [typedef] for C structs (#8169)
|
2021-01-17 17:18:07 +02:00 |
Uwe Krüger
|
e4850cd6dd
|
cgen: fix `for` iteration over fixed array literal (#8159)
|
2021-01-17 10:44:15 +01:00 |
yuyi
|
9376c57a51
|
cgen: fix for_in_mut_val (fix #8087) (#8129)
|
2021-01-17 05:32:34 +01:00 |
Delyan Angelov
|
5ae55731b9
|
embed: move to `v.embed_file`, fix CI failing test
|
2021-01-16 20:03:07 +02:00 |
Delyan Angelov
|
5c3ef588c3
|
live: move to vlib/v/live
|
2021-01-16 15:05:01 +02:00 |
Daniel Däschle
|
53941c4a0a
|
fmt: fix if cond break readability (#8132)
|
2021-01-16 02:12:17 +01:00 |
Delyan Angelov
|
c4c4b9c7b1
|
gen,checker: implement g.trace/2 and c.trace/2, similar to p.trace/2
|
2021-01-15 20:28:53 +02:00 |
Uwe Krüger
|
8d014d4646
|
sync: allow `go` routine join with return value (#8125)
|
2021-01-15 13:45:26 +01:00 |
BigBlack
|
80008a40e2
|
fix fixed_array slice ommit high_value (#8025)
|
2021-01-15 10:28:20 +01:00 |
yuyi
|
0945efebf1
|
cgen: fix anon_fn_call (#8120)
|
2021-01-15 10:25:30 +01:00 |
yuyi
|
c6099df418
|
cgen: fix c struct str method (#8117)
|
2021-01-15 07:51:28 +01:00 |
Swastik Baranwal
|
0ca36aafe2
|
cgen: allow assignment operators for type aliases (#8086)
|
2021-01-15 02:27:19 +01:00 |
Larpon
|
f73500f2fe
|
all: add support for the `x := $embed_file('v.png')` compile time call (#8048)
|
2021-01-14 16:20:11 +02:00 |
Delyan Angelov
|
adf084eeed
|
cgen: fix address violations for `return error(abc)`, reduce leaks in `os`
|
2021-01-14 04:58:26 +02:00 |
yuyi
|
a2efb5319d
|
all: change `[1,2,3]!!` to `[1,2,3]!` (#8101)
|
2021-01-14 03:51:13 +01:00 |
yuyi
|
1d28c4de2a
|
cgen: fix multi fixed arrays with default init (fix #8038) (#8064)
|
2021-01-13 22:57:33 +02:00 |
Lukas Neubert
|
8a8978fb01
|
fmt: keep same line comments after arr.sort() in vsh files (#8026)
|
2021-01-13 20:10:17 +02:00 |
Daniel Däschle
|
2030875c0a
|
gen: fix go call with generic function (#8093)
|
2021-01-13 17:35:50 +02:00 |
Nick Treleaven
|
a1245de25b
|
gen: fix interface method call name that is a C reserved word (#8091)
|
2021-01-13 16:37:47 +02:00 |
Ruofan XU
|
245ed9160a
|
gen: fix `mut arr [3]int` as a fn argument (#8085)
|
2021-01-13 15:52:46 +02:00 |
yuyi
|
ae592299dc
|
cgen: fix fixed arrays literal eq (#8079)
|
2021-01-13 08:32:41 +01:00 |
Nick Treleaven
|
ac85257ea0
|
parser: fix sizeof(mod.Type), fix checking sizeof expression (#8065)
|
2021-01-13 06:13:39 +01:00 |
yuyi
|
dd6febf6fa
|
cgen: fix gen_array_sort() (#8077)
|
2021-01-13 06:12:22 +01:00 |
zakuro
|
254df0ca62
|
fmt: improve string quotes (#8075)
|
2021-01-13 06:05:27 +01:00 |
Swastik Baranwal
|
1e853b0efc
|
cgen: implement argument operator overloading (#8067)
|
2021-01-13 03:31:14 +01:00 |
yuyi
|
33976246c8
|
cgen: format the generated c code of arrays map and filter (#8016)
|
2021-01-12 04:39:09 +01:00 |
zakuro
|
33694665f0
|
fmt: align each contiguous field of struct. not the whole. (#7981)
|
2021-01-12 04:38:43 +01:00 |
Swastik Baranwal
|
82a5300044
|
cgen: allow sort with`<` and `>` op overloading (#8042)
|
2021-01-12 04:38:12 +01:00 |
yuyi
|
1559e72d0d
|
cgen: add gen_fixed_array_equality_fn (#8006)
|
2021-01-12 01:35:18 +01:00 |
Uwe Krüger
|
5f95dd54bd
|
builtin: rename `any_*` -> `*_literal` - 2. part (#8032)
|
2021-01-11 22:58:15 +01:00 |
yuyi
|
72317975fc
|
cgen: minor cleanup of gen_assert_stmt() (#8018)
|
2021-01-11 09:05:15 +01:00 |
yuyi
|
39bb6f0491
|
array: fix array of multi filter/map in one assignment (fix #7858) (#7976)
|
2021-01-10 21:08:45 +01:00 |
Delyan Angelov
|
722a603222
|
cgen: fix os.args initialization, so that `const x = os.args[0]` works
|
2021-01-10 15:17:24 +02:00 |
Swastik Baranwal
|
0081e5740d
|
checker: only allow `!=` and `==` for enum (#7985)
|
2021-01-10 12:26:31 +02:00 |
Swastik Baranwal
|
1f5255c2bb
|
cgen: implement `>=` and `<=` (#7991)
|
2021-01-10 12:24:46 +02:00 |
Uwe Krüger
|
eff757d0a1
|
cgen: fix address violations for error propagation (#7972)
|
2021-01-09 02:43:48 +01:00 |
Daniel Däschle
|
bbac95a438
|
parser: error on recursive struct (#7964)
|
2021-01-09 01:33:36 +01:00 |
Delyan Angelov
|
dff36a9947
|
cgen: fix small g.is_autofree && [manualfree] problem
|
2021-01-08 23:24:26 +02:00 |
Daniel Däschle
|
687b152318
|
gen: fix generation of comptime if T is (#7971)
|
2021-01-08 19:39:58 +02:00 |
Swastik Baranwal
|
9291fb5e0c
|
checker: disallow comparison between enum and int (#7886)
|
2021-01-08 17:41:52 +01:00 |
Delyan Angelov
|
083dc23db8
|
gen: implement a `[manualfree]` tag, for functions, that want to do their own memory management
|
2021-01-08 16:22:27 +02:00 |
Nick Treleaven
|
cbefe6c32f
|
parser: warn about old use of `typeof` (#7923)
|
2021-01-07 20:32:02 +01:00 |
yuyi
|
2ad2d68d7c
|
json: fix decoding of null map/array (#7936)
|
2021-01-07 20:21:22 +01:00 |
Uwe Krüger
|
ffd753abdc
|
all: implement `ch <- x or {...}` and `ch <- x ?` (#7928)
|
2021-01-06 21:19:40 +01:00 |
Daniel Däschle
|
a8e4d1df40
|
cgen: fix match comparing with ident of type string (#7921)
|
2021-01-06 20:03:50 +02:00 |
Daniel Däschle
|
9025c3528f
|
all: implement comptime if for generic type `$if T is string {` (#7901)
|
2021-01-06 19:58:53 +02:00 |
Nick Treleaven
|
7a6b160d63
|
checker: fix indexing a type alias instance (#7889)
|
2021-01-05 19:17:18 +01:00 |
yuyi
|
10e7045bee
|
cgen: fix array/fixed_array_rune_str (#7881)
|
2021-01-05 18:16:55 +02:00 |
Daniel Däschle
|
5841d5d8e1
|
all: implement basic comptime field selector (#7888)
|
2021-01-05 16:11:43 +02:00 |
Nick Treleaven
|
2fc50a4045
|
cgen: fix 32-bit voidptr for map key (#7759)
|
2021-01-05 02:59:01 +01:00 |
spaceface
|
efb80bdffd
|
all: implement iterators in for loops (#7867)
|
2021-01-05 01:06:44 +01:00 |
Ned Palacios
|
82162b8ff8
|
cgen: interface fix + add more interface tests (#7776)
|
2021-01-04 21:54:13 +02:00 |
Uwe Krüger
|
bf904c2f82
|
checker, cgen: allow using literals as `int` and `f64` for sum types (#7864)
|
2021-01-04 20:48:13 +02:00 |
Daniel Däschle
|
164d7bf5fb
|
parser: struct updating syntax with `Abc{...oldabc newfield: val}` (#7865)
|
2021-01-04 20:19:03 +02:00 |
Swastik Baranwal
|
21d5db43af
|
cgen: do not generate `!=` and `==` for C types (#7856)
|
2021-01-04 08:57:31 +01:00 |
Daniel Däschle
|
43adbf4b66
|
cgen: fix filter in map (#7844)
|
2021-01-04 01:04:53 +01:00 |
zakuro
|
dd516858d4
|
fmt: align struct field comments (#7632)
|
2021-01-03 21:10:25 +01:00 |
Swastik Baranwal
|
9033099676
|
cgen: implement overriding of `!=` and `==` (#7837)
|
2021-01-03 16:19:02 +01:00 |
Nick Treleaven
|
38e0aa350d
|
checker: support non-string map.keys method (#7760)
|
2021-01-03 15:55:06 +01:00 |
Swastik Baranwal
|
dee3bbffe9
|
cgen: support .str() for maps with non string keys (#7806)
|
2021-01-02 20:25:46 +02:00 |
Nick Treleaven
|
0a069dee79
|
gen: support non-string map equality and speed it up (#7682)
|
2021-01-01 20:54:49 +01:00 |
Daniel Däschle
|
ac22fe998a
|
vweb: default init methods (#7779)
|
2021-01-01 17:24:54 +01:00 |
Nick Treleaven
|
9243e06dba
|
parser: allow integer and rune keys for map literal (#7756)
|
2021-01-01 17:23:32 +01:00 |
Swastik Baranwal
|
24b18f05c4
|
cgen: implement > and < for structs (#7774)
|
2021-01-01 14:54:32 +01:00 |
clubby789
|
bf7da14ba1
|
cgen: make char literals wide (#7769)
|
2021-01-01 11:06:09 +02:00 |
Joe Conigliaro
|
63afd26c8c
|
cgen: merge method to write multi return types
|
2021-01-01 07:45:03 +11:00 |
yuyi
|
c3dafad7ef
|
generics: implement method generics (fix #7638) (#7732)
|
2020-12-31 18:00:22 +01:00 |
Alexander Medvednikov
|
3ffdcd8910
|
vweb: embed context
|
2020-12-31 17:07:27 +01:00 |
clubby789
|
3e44393152
|
x64: optimize mov <reg>, 0 (#7733)
|
2020-12-31 12:40:09 +01:00 |
Emily Hudson
|
bf9b0c6345
|
compiler: add `[console]` attribute for main function to force console subsystem on windows (#7721)
|
2020-12-31 12:38:55 +01:00 |
Joe Conigliaro
|
b2bd2c9337
|
cgen: make multi return decl order consistant & use typedefs. closes #7728
|
2020-12-31 21:55:21 +11:00 |
Joe Conigliaro
|
3e655d6bf6
|
cgen: fix multi return auto str methods. closes #7726
|
2020-12-31 10:21:02 +11:00 |
Daniel Däschle
|
9a31744255
|
cgen: fix embed generic field access & method call (#7725)
|
2020-12-30 23:49:02 +01:00 |
Daniel Däschle
|
b4c5fa8ca0
|
cgen: fix embed field access from reference (#7724)
|
2020-12-30 21:50:58 +01:00 |
Daniel Däschle
|
b8af81240a
|
cgen: fix struct embedding method when receiver is ptr (#7710)
|
2020-12-30 20:44:01 +02:00 |
yuyi
|
f6d64c74c2
|
cgen: fix minor typos in map_fn_ptrs (#7679)
|
2020-12-29 21:02:28 +02:00 |
yuyi
|
27db4b4c23
|
cgen: minor cleanup of cgen.v (#7688)
|
2020-12-29 20:57:34 +02:00 |
joe-conigliaro
|
02965e753e
|
all: re-implement variadics using arrays & implement array decomposition to varg (#7689)
|
2020-12-29 16:14:08 +01:00 |
yuyi
|
34c89258a4
|
cgen: fix array of array/map init (fix #7597) (#7671)
|
2020-12-29 11:50:25 +01:00 |
Joe Conigliaro
|
d094baf107
|
cgen: add temp (TODO) auto str for interfaces
|
2020-12-29 20:25:38 +11:00 |
yuyi
|
b87283e970
|
cgen: minor optimization of auto_eq_methods.v (#7668)
|
2020-12-29 07:48:37 +02:00 |
yuyi
|
9631eac9c5
|
cgen: fix `array.index()` of ref struct (#7652)
|
2020-12-28 18:33:57 +01:00 |
ka-weihe
|
93262353d6
|
cgen: fix map exists bug (#7647) (#7655)
|
2020-12-28 18:32:51 +01:00 |
yuyi
|
32091dd90e
|
cgen: fix struct equality (#7649)
|
2020-12-28 18:22:47 +02:00 |
Delyan Angelov
|
3f3ae67b55
|
Revert "cgen: fix struct_eq (#7639)"
This reverts commit 164dd3000b .
|
2020-12-28 13:16:00 +02:00 |
yuyi
|
d46b930c71
|
cgen: fix `in array_of_ref_structs` (fix #7623) (#7640)
|
2020-12-28 12:29:56 +02:00 |
yuyi
|
07459a77e3
|
cgen: fix gen_array_equality_fn() (#7633)
|
2020-12-28 12:26:50 +02:00 |
yuyi
|
164dd3000b
|
cgen: fix struct_eq (#7639)
|
2020-12-28 12:25:22 +02:00 |