Alexander Medvednikov
|
e6ff1508d2
|
all: make u8 the primary type, byte the alias
|
2022-04-15 13:43:03 +03:00 |
Alexander Medvednikov
|
3b36f16365
|
all: volatile globals
|
2022-04-15 02:39:38 +03:00 |
yuyi
|
2d6d6c9ac9
|
json: fix json decode with sumtype of multi array type (#14035)
|
2022-04-14 15:36:24 +03:00 |
yuyi
|
c4dff0d797
|
cgen: format the generated source code by gen_str_for_union_sum_type() (#14026)
|
2022-04-14 15:26:10 +03:00 |
yuyi
|
72c2dc805d
|
cgen: fix error for generics struct that parent has str to string (#14037)
|
2022-04-14 15:23:50 +03:00 |
fleur
|
68401d9dc8
|
gen: add callconv attribute for fn and type (#14027)
|
2022-04-14 11:29:52 +03:00 |
Vincenzo Palazzo
|
48c295150f
|
checker: fixes typechecking for a sum type with an alias type (#13974)
|
2022-04-13 18:38:26 +03:00 |
yuyi
|
dc08105022
|
json: fix error for json decode with sumtype (#14025)
|
2022-04-13 18:06:28 +03:00 |
Delyan Angelov
|
e5809363de
|
docs: describe the contents of vlib/v/gen/c/testdata/ and how to write tests for the checker, that still do not have good codegen counterpart
|
2022-04-13 14:55:26 +03:00 |
Alexander Medvednikov
|
d7adb67d52
|
cgen: fix [cinit]
|
2022-04-13 02:55:47 +03:00 |
Alexander Medvednikov
|
2525a30b5f
|
cgen: [cinit] attr for globals
|
2022-04-13 00:30:51 +03:00 |
fleur
|
6718958058
|
cgen: add a `[_fastcall]` fn attribute (#14016)
|
2022-04-12 17:06:56 +03:00 |
牧心
|
a810fbb80e
|
cgen: fix infix_expr_in_optimization compile error when treating some kind cannot directly use '==' (#14015)
|
2022-04-12 16:19:44 +03:00 |
Delyan Angelov
|
4c7cdd2a2d
|
checker,cgen: use faster `sym.idx == ast.error_type_idx` integer comparisons, instead of `sym.name == "IError"`
|
2022-04-12 14:49:51 +03:00 |
crthpl
|
afb07e0e16
|
cgen: fix deadlock when returning multiple values in lock (#14014)
|
2022-04-12 09:21:27 +03:00 |
Delyan Angelov
|
e64c8cce62
|
ci: bump size of EMPTY_STRUCT_DECLARATION's _dummy_pad field to 8 (a voidptr, instead of char)
|
2022-04-11 17:53:18 +03:00 |
牧心
|
25d8faabf6
|
cgen: fix alloc empty struct array error (#14007)
|
2022-04-11 14:16:09 +03:00 |
牧心
|
11d9a67e3b
|
cgen: fix invalid operands to `an_alias in an_array_of_aliased_values` (#13994)
|
2022-04-10 11:42:17 +03:00 |
Daniel Oberhoff
|
58febe4607
|
cgen: fix autofree of heap variables (#13823)
|
2022-04-09 17:37:39 +03:00 |
yuyi
|
704e3c6e72
|
cgen: fix error for fn with fixed array argument (fix #13976) (#13982)
|
2022-04-09 15:57:27 +03:00 |
yuyi
|
2a88b313d4
|
cgen: format json encode/decode generated c codes (#13972)
|
2022-04-08 17:27:05 +03:00 |
yuyi
|
617608b23d
|
cgen: fix optional struct declarations for empty structs (#13970)
|
2022-04-08 14:51:37 +03:00 |
Joe Conigliaro
|
8dc2601080
|
all: comptime_call - simplify tmpl scoping, solves many issues.
|
2022-04-08 17:33:24 +10:00 |
Delyan Angelov
|
5a695c81dc
|
ci: fix the recorded output for compare_structs.c.must_have after eea46c4
|
2022-04-07 18:08:56 +03:00 |
crthpl
|
b232a3b0d1
|
cgen: fix `.filter()` and `.map()` on shared arrays (#13954)
|
2022-04-07 18:05:11 +03:00 |
Delyan Angelov
|
eea46c4e1a
|
cgen: fix error, when a struct with over 8 fields, is used as a method receiver directly.
|
2022-04-07 17:20:14 +03:00 |
yuyi
|
e7fd8c4e7c
|
cgen: fix error for dereference mut interface in loop (fix #13913) (#13941)
|
2022-04-07 12:01:54 +03:00 |
yuyi
|
a58dde48f8
|
cgen: fix error for optional multi return (#13959)
|
2022-04-07 09:12:23 +03:00 |
yuyi
|
c9dcdf6744
|
cgen: fix json decode with optional argument (fix #13943) (#13958)
|
2022-04-06 19:34:22 +03:00 |
Delyan Angelov
|
c5d8d27b90
|
ci: fix -cstrict failures for vweb_test.v etc.
|
2022-04-06 08:54:01 +03:00 |
yuyi
|
0cba579a7b
|
cgen: simplify codegen for optional consts (#13948)
|
2022-04-05 17:54:23 +03:00 |
Delyan Angelov
|
2ecfd1b351
|
ci: fix clang sanitize errors for json_decode
|
2022-04-05 17:52:10 +03:00 |
Delyan Angelov
|
f5e4d17cf3
|
json: return errors with more context, on failed json.decode() calls.
|
2022-04-05 12:06:08 +03:00 |
yuyi
|
f6b8e1e13f
|
cgen: fix error for const using nested optionals (#13939)
|
2022-04-05 05:58:11 +03:00 |
Alexander Medvednikov
|
92bfd9b353
|
cgen: fixed array index for translated code
|
2022-04-04 12:09:29 +03:00 |
Alexander Medvednikov
|
719a3b5de3
|
cgen: fix fixed arrays assignment in translated code
|
2022-04-04 06:20:54 +03:00 |
yuyi
|
faa55b46de
|
cgen: fix array of fixed array (fix #13895) (#13901)
|
2022-04-02 18:00:59 +03:00 |
yuyi
|
bc98c11d9d
|
parser, checker, cgen: minor cleanup of go_expr() (#13875)
|
2022-03-31 19:58:04 +03:00 |
yuyi
|
db3bbb58cf
|
cgen: fix error for cross assign of the reserved name variable (#13884)
|
2022-03-31 19:55:21 +03:00 |
Cameron Katri
|
b15240185e
|
builder,cgen: iOS fixes (#13883)
|
2022-03-31 11:51:13 +03:00 |
yuyi
|
ae1cb5697e
|
cgen: minor cleanup in ref_or_deref_arg() (#13874)
|
2022-03-30 21:06:38 +03:00 |
Delyan Angelov
|
8121a8ada0
|
ci,cgen: comment out including stdbool.h for now
Fails tcc tests on windows, see: https://github.com/vlang/v/runs/5749951315?check_suite_focus=true
and vlib/v/checker/tests/globals_run/function_stored_in_global.vv
|
2022-03-30 14:26:20 +03:00 |
Delyan Angelov
|
566735b298
|
cgen: add `nil` to c_reserved (it is a macro defined in MacTypes.h on macos)
|
2022-03-30 13:33:03 +03:00 |
Cameron Katri
|
093994655c
|
v.builder: fix iOS compilation from non-macOS, allow -cc to override the default cross compiler (#13866)
|
2022-03-30 10:26:13 +03:00 |
yuyi
|
509367b293
|
cgen: minor cleanup in expr_is_multi_return_call() (#13846)
|
2022-03-28 20:38:23 +03:00 |
yuyi
|
62553dcc2e
|
cgen: fix crash for casting bool to int (fix #13825) (#13844)
|
2022-03-28 12:20:47 +03:00 |
Alexander Medvednikov
|
0248349e7c
|
cgen: global/const fixes
|
2022-03-25 23:33:01 +03:00 |
Delyan Angelov
|
ddc2c49365
|
cgen: autofree out of scope variables in reverse order of their creation
|
2022-03-25 09:39:12 +02:00 |
yuyi
|
78d9975798
|
ast, cgen: restore Type.str() and fix error for it (#13815)
|
2022-03-24 11:45:06 +02:00 |
yuyi
|
35cd8112a5
|
ast, checker, cgen: fix error for printing alias that has str method (#13809)
|
2022-03-23 11:52:48 +02:00 |
yuyi
|
dff39bac78
|
cgen: fix error for defining global anonymous functions (#13808)
|
2022-03-23 08:09:15 +02:00 |
yuyi
|
a9837ba95d
|
cgen: minor cleanup in go_expr() (#13801)
|
2022-03-22 12:07:46 +02:00 |
yuyi
|
f66d2f5d43
|
cgen: simplify in index_of_array() and add test (#13792)
|
2022-03-21 22:03:45 +02:00 |
yuyi
|
c0437afbcd
|
cgen: fix error for casting int to interface (#13790)
|
2022-03-21 21:18:11 +02:00 |
yuyi
|
5815ab8d00
|
cgen: minor cleanup in index.v (#13788)
|
2022-03-21 13:10:10 +02:00 |
El Koulali András
|
f5036629ca
|
cgen: add `true` and `false` to C reserved words (#13781)
|
2022-03-21 11:00:30 +02:00 |
Alexander Medvednikov
|
80c94ea73e
|
cgen: fix c2v consts in .o files
|
2022-03-21 04:56:37 +03:00 |
yuyi
|
c4b424717c
|
cgen: fix error for map get anon fn value (#13782)
|
2022-03-21 00:20:55 +02:00 |
Delyan Angelov
|
caa0e25939
|
cgen: fix struct type dependency sorting, when struct field types, are aliases to struct types from other modules (#13779)
|
2022-03-20 20:23:48 +02:00 |
yuyi
|
3e40cd5baa
|
ast, checker, cgen: fix error for go anon fn variable call (#13776)
|
2022-03-20 07:45:23 +02:00 |
Delyan Angelov
|
c05634ebd1
|
ci: fix sanitize job failures after 02b889d
|
2022-03-19 21:45:58 +02:00 |
Delyan Angelov
|
02b889dac3
|
cgen: generate smaller switch statements for sumtypes/enums with else{}
|
2022-03-19 21:12:27 +02:00 |
Delyan Angelov
|
0cc63107ff
|
cgen: fix duplicate auto generation of free methods, add test
|
2022-03-19 01:01:08 +02:00 |
yuyi
|
5237d1d446
|
cgen: fix error for empty interface (#13764)
|
2022-03-18 22:41:06 +02:00 |
Delyan Angelov
|
1734e72638
|
v.vmod: make the v.mod parser more robust, show line numbers in errors, add tests
|
2022-03-18 22:23:11 +02:00 |
Nick Treleaven
|
f903ef24e8
|
cgen: simplify slicing fixed array (#13767)
|
2022-03-18 17:50:30 +03:00 |
Nick Treleaven
|
00563a130d
|
cgen: fix double evaluation of rvalue array expression in slice (#13737)
|
2022-03-18 11:43:15 +02:00 |
yuyi
|
136f39a2d4
|
cgen: cleanup in if_expr() (#13754)
|
2022-03-17 01:09:49 +02:00 |
yuyi
|
7f62346213
|
cgen: fix error for if expr returning sumtype (#13752)
|
2022-03-16 15:43:17 +02:00 |
pancake
|
a1d0db792e
|
native: initial support for typeof() expressions (#13730)
|
2022-03-14 15:15:06 +02:00 |
yuyi
|
f7feb634d2
|
checker: fix error for if mut with immutable variable (#13728)
|
2022-03-13 16:33:50 +02:00 |
yuyi
|
27f9bc9ba0
|
checker: check error for match mut with immutable variable (fix #9704 #8976) (#13725)
|
2022-03-13 09:53:29 +02:00 |
Delyan Angelov
|
83762fa4a4
|
native: align the disassembly/comment column in the `-v -b native` output
|
2022-03-12 11:09:09 +02:00 |
Nick Treleaven
|
7231a3f135
|
vlib: add `mut` for the first parameter of builtin.copy, arrays.copy and crypto (#13702)
|
2022-03-09 20:26:00 +02:00 |
pancake
|
3f1e232c9b
|
native: support comparing two idents and avoid printing idents (#13686)
|
2022-03-08 19:52:30 +02:00 |
pancake
|
b20c911d3e
|
native: generate relocatable ELFs and support relative strings (#13671)
|
2022-03-07 18:24:01 +02:00 |
Alexander Medvednikov
|
36ec47cd20
|
all: replace "NB:" with "Note:" (docs/comments)
|
2022-03-06 20:01:22 +03:00 |
yuyi
|
c8e33ad219
|
cgen: fix error for array of reference auto_str (#13665)
|
2022-03-06 12:15:31 +02:00 |
yuyi
|
6380b9eb15
|
cgen: minor cleanup of struct.v (#13661)
|
2022-03-05 17:19:20 +02:00 |
yuyi
|
22fda7c3dd
|
cgen: fix error for time struct init with update (#13660)
|
2022-03-05 13:28:48 +02:00 |
Delyan Angelov
|
3364f2aadf
|
cgen: use ADDR for sumtype conversion instead of HEAP (fix regression after 7f8f571 )
|
2022-03-03 11:44:24 +02:00 |
yuyi
|
288b13b51d
|
all: cleanup smartcasts in the compiler (#13639)
|
2022-03-03 10:48:31 +02:00 |
yuyi
|
ffe6ff3cc8
|
cgen: fix error for print smartcast variable (#13634)
|
2022-03-02 12:32:54 +02:00 |
yuyi
|
7f8f571ed2
|
cgen: fix error for optional cast to interface (#13623)
|
2022-03-01 19:21:55 +02:00 |
Joe Conigliaro
|
3b6e122d9d
|
all: comptime_call - update tmpl scope vars with caller scope vars after their properties got updated in checker
|
2022-03-01 02:13:29 +11:00 |
yuyi
|
9a2df0df0e
|
cgen: fix fn mut argument of interface type (#13616)
|
2022-02-28 13:31:04 +02:00 |
Delyan Angelov
|
4a765bc33b
|
cgen: support `-d trace_gen_source_line_info`
|
2022-02-21 23:04:10 +02:00 |
yuyi
|
07e9ed1a1d
|
cgen: fix interface embedding method call (#13553)
|
2022-02-21 17:49:38 +02:00 |
playX
|
b842e89acc
|
all: initial implementation of compile-time types (#13549)
|
2022-02-21 17:42:54 +02:00 |
yuyi
|
75ebac006d
|
cgen: fix struct init with multi nested embed update expr (#13529)
|
2022-02-19 20:46:44 +02:00 |
yuyi
|
09f08e1fee
|
cgen: fix error for interface and embedded struct build (#13530)
|
2022-02-19 20:43:40 +02:00 |
yuyi
|
0236931c78
|
cgen: fix generics with reference generic arguments (#13525)
|
2022-02-19 15:19:50 +02:00 |
Joe Conigliaro
|
d739abbb3f
|
cgen: move var decl out of loop in global_decl()
|
2022-02-18 00:42:54 +11:00 |
Joe Conigliaro
|
07b15a209a
|
cgen: fix for prev commit - get usecache working with clang (fix duplicate symbols)
|
2022-02-17 22:24:58 +11:00 |
Joe Conigliaro
|
6fc654821f
|
cgen: get usecache working with clang (fix duplicate symbols)
|
2022-02-17 22:17:07 +11:00 |
Alexander Medvednikov
|
5a14748e7c
|
cgen: c2v enum fix
|
2022-02-16 12:05:32 +03:00 |
yuyi
|
fb3dd82400
|
cgen: fix interface embedding complex cases (#13472)
|
2022-02-15 12:41:40 +02:00 |
crthpl
|
e23db2f9b7
|
cgen: fix autogen free method for struct with shared field (#13469)
|
2022-02-15 03:55:06 +02:00 |
yuyi
|
5071a54b99
|
cgen: split up into for.v, match.v, struct.v (#13454)
|
2022-02-13 07:52:49 +03:00 |
yuyi
|
b5379255da
|
checker, cgen: fix error for struct embed with fn type (#13450)
|
2022-02-12 20:55:40 +02:00 |
Delyan Angelov
|
799c95dc4e
|
tests: filter test_ fns with params from the list of automatically run test functions (fix #13443)
|
2022-02-12 17:30:20 +02:00 |
crthpl
|
0eee012ae9
|
cgen: fix `x in shared_map` (#13442)
|
2022-02-12 11:55:25 +02:00 |
yuyi
|
ae0e90f5d8
|
cgen: fix struct init with embed field update (#13444)
|
2022-02-12 08:16:51 +03:00 |
yuyi
|
7178367de0
|
all: fix error for comptime for in field with generic fn (fix #13409) (#13439)
|
2022-02-11 22:00:13 +02:00 |
Tim Basel
|
9d0a5942ac
|
builtin: change IError `msg` and `code` to methods + fix vlib, add a deprecation notice for the old usages (#13041)
|
2022-02-11 15:52:33 +02:00 |
Delyan Angelov
|
9ed18efa53
|
checker: error on redefining any of the public builtin functions, not just ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit'] (#13419)
|
2022-02-10 12:26:30 +02:00 |
Delyan Angelov
|
356ccf247f
|
cgen: add an earlier error, to pin point the use of closures on windows
|
2022-02-09 08:35:11 +02:00 |
yuyi
|
ece73836aa
|
cgen: fix error for struct with reference alias field (#13380)
|
2022-02-06 10:52:36 +02:00 |
Alexander Medvednikov
|
f23d2c8cf4
|
cgen: c2v variadic fixes
|
2022-02-06 03:36:38 +03:00 |
div72
|
cec7e91714
|
v.parser, v.checker, v.gen: add support for [translated] tag (#13373)
|
2022-02-06 00:16:02 +02:00 |
Delyan Angelov
|
5faabe7464
|
Revert "cgen: fix error for struct with reference alias fields (#13374)"
This reverts commit 4d485ae687 .
|
2022-02-05 18:52:37 +02:00 |
yuyi
|
4d485ae687
|
cgen: fix error for struct with reference alias fields (#13374)
|
2022-02-05 18:23:54 +02:00 |
yuyi
|
be1e40dac0
|
cgen: fix error for sql statement inside fn call (fix #13330) (#13346)
|
2022-02-02 18:05:31 +02:00 |
crthpl
|
c0c07db7cc
|
cgen: fix struct field init from shared struct field (#13343)
|
2022-02-02 10:55:57 +02:00 |
yuyi
|
b10b65e134
|
cgen: fix error for interface with multi-nested embed struct (#13345)
|
2022-02-02 09:11:29 +02:00 |
Delyan Angelov
|
d8cce0a71d
|
ci: fix cgen for interface_struct_with_multi_nested_embed_test.v for gcc/clang
|
2022-02-01 17:12:15 +02:00 |
yuyi
|
a014844050
|
cgen: fix error for interface with multi nested embed structs (fix #13331) (#13336)
|
2022-02-01 14:50:12 +02:00 |
Benjamin Stigsen
|
ceb05b163a
|
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313)
|
2022-01-28 20:34:44 +02:00 |
yuyi
|
9dce8194a8
|
cgen: fix error of method calls on nested embedded structs (#13292)
|
2022-01-27 13:20:56 +02:00 |
yuyi
|
3bd528b218
|
ast, checker, cgen: fix error for map sumtype value init (#13290)
|
2022-01-27 09:44:34 +02:00 |
Delyan Angelov
|
3fa9128716
|
cgen,pref: support `-profile-fns strings__new_builder,i64_str -profile -`
|
2022-01-26 20:39:47 +02:00 |
yuyi
|
291a1ffd8d
|
token: rename Position to Pos, rename position() to pos() (#13279)
|
2022-01-26 12:36:28 +02:00 |
yuyi
|
ca1f675dba
|
ast, checker, cgen: implement if guard with multi return optional (#13273)
|
2022-01-25 14:36:33 +02:00 |
Delyan Angelov
|
a913983408
|
ci: fix -cstrict jobs (use U postfix for u64 hash constants in embed.v)
|
2022-01-25 12:50:19 +02:00 |
crthpl
|
009a65b1fc
|
cgen: fix appending an array to a shared array (#13265)
|
2022-01-25 12:05:43 +02:00 |
Delyan Angelov
|
5f38ba896e
|
parser,cgen: handle `const x = $embed_file("file.txt").to_string()`
|
2022-01-25 11:40:07 +02:00 |
yuyi
|
509a8fcaf1
|
cgen: fix 'for in mut val' with 'if val in' (#13263)
|
2022-01-24 17:08:21 +02:00 |
Delyan Angelov
|
359b674cff
|
ci: fix more failing tests
|
2022-01-22 23:18:09 +02:00 |
Delyan Angelov
|
9057e9f1dd
|
ci: fix vls compilation
|
2022-01-22 23:08:30 +02:00 |
Delyan Angelov
|
fa6f7d4c83
|
os: add os.quoted_path/1, use it consistently for running V itself
|
2022-01-22 21:13:28 +02:00 |
Delyan Angelov
|
9ebd56caa7
|
cgen,json: bugfix for json.decode; now `[skip]` fields are initialised
|
2022-01-22 19:29:38 +02:00 |
yuyi
|
e66e35ced1
|
json: fix error for json encoding sumtype value (#13248)
|
2022-01-22 17:55:19 +02:00 |
crthpl
|
cbd3c14e83
|
cgen: fix codegen for struct field with a shared array of points (#13222)
|
2022-01-21 17:08:19 +02:00 |
Delyan Angelov
|
295156e054
|
checker,cgen: implement v.profile.on/1, support `[if profile]` and `-d no_profile_startup` (#13232)
|
2022-01-21 03:26:05 +02:00 |
yuyi
|
7c9cd855b4
|
cgen: fix fn call with fixed array literal arguments (#13225)
|
2022-01-20 15:04:16 +03:00 |
Tim Basel
|
d714dcef75
|
cgen: fix return of mut symtype (#13214)
|
2022-01-19 14:37:40 +02:00 |
Tim Basel
|
bb6c46e1ef
|
gen: fix mut sumtype arguments for fields (#13205)
|
2022-01-18 19:53:09 +02:00 |
yuyi
|
ef562c92a5
|
cgen: fix assigning a new value to the mut sumtype receiver (#13204)
|
2022-01-18 16:16:15 +02:00 |
trueFireblade
|
727c9fb4a1
|
all: add string range OrExpr (#13189)
|
2022-01-17 13:03:10 +03:00 |
yuyi
|
851f265a5e
|
cgen: minor cleanup in match_expr() (#13192)
|
2022-01-17 11:26:20 +02:00 |
yuyi
|
315b2deda9
|
cgen: fix match sumtype var returning sumtype value (#13184)
|
2022-01-16 13:12:27 +02:00 |
yuyi
|
dfc23d939f
|
ast, checker, cgen: fix array of sumtype initialisation with a default `init:` (#13178)
|
2022-01-15 09:59:38 +02:00 |
playX
|
7fe62a8b3e
|
js,os: fix `return` in `or` blocks; Properly get path_delimiter and path_separator in JS (#13179)
|
2022-01-15 09:55:03 +02:00 |
yuyi
|
879d1d2f11
|
cgen: fix generics method with sumtype arguments (#13166)
|
2022-01-14 18:45:12 +02:00 |
playX
|
104e0c5692
|
js: fix break and continue in or blocks (#13165)
|
2022-01-14 18:43:18 +02:00 |
yuyi
|
547169674d
|
cgen: fix fn call with mut sumtype argument (#13143)
|
2022-01-12 18:36:19 +02:00 |
Delyan Angelov
|
b658b65774
|
scanner,cgen,vfmt: keep original when using byte char literals, test all 256 byte values in the C backend
|
2022-01-12 14:45:38 +02:00 |
yuyi
|
89165ed259
|
cgen: minor cleanup in comptime_if_cond() (#13142)
|
2022-01-12 11:40:11 +02:00 |
jeffmikels
|
f99b79480d
|
cgen: reduce memory allocation and improve performance of cescape_nonascii (#13141)
|
2022-01-12 10:58:37 +02:00 |
jeffmikels
|
ab642cac43
|
scanner, cgen: improve support for escape codes in backticks/runes (#13127)
|
2022-01-11 22:36:18 +02:00 |
yuyi
|
f3d8bbdf3d
|
cgen: fix `$if T.typ is Type {` (#13135)
|
2022-01-11 16:25:16 +02:00 |
yuyi
|
1e52b2c134
|
cgen: fix cast in the index of reference fixed array (fix #13128) (#13131)
|
2022-01-11 10:55:29 +02:00 |
playX
|
c07ce3ff15
|
cgen,json2: improve -nofloat support (#13117)
|
2022-01-10 12:42:41 +02:00 |
yuyi
|
4ce6e663bf
|
cgen: check error for comptime call method argument (#13115)
|
2022-01-10 12:03:50 +02:00 |
yuyi
|
236a1d0255
|
cgen: fix error for print comptime for method call (#13108)
|
2022-01-09 19:00:23 +02:00 |
playX
|
4d166e3b55
|
all: add support for `-os wasm32` (needs clang-12 installed for now) (#13094)
|
2022-01-08 11:06:32 +02:00 |
yuyi
|
c9d8fecc75
|
cgen: fix string range index in for mut var in (#13076)
|
2022-01-07 13:00:48 +02:00 |
yuyi
|
5bc72c9c01
|
cgen: fix comptime call in fn call (#13075)
|
2022-01-07 12:59:27 +02:00 |
playX
|
ec91de3504
|
builtin: use dlmalloc for `-freestanding` (#13054)
|
2022-01-06 14:10:37 +02:00 |
yuyi
|
fb66ec7cfb
|
cgen: fix codegen for aliases of fixed arrays of structs (fix #13037) (#13049)
|
2022-01-06 11:54:22 +02:00 |
spaceface
|
de711da774
|
cgen: support larger closure parameters (#13040)
|
2022-01-05 16:22:20 +02:00 |
Tim Basel
|
897bbb7da5
|
cgen: fix cgen removing random chars from parameter_name (#13038)
|
2022-01-05 13:06:06 +02:00 |
Delyan Angelov
|
d3489d4246
|
builtin: s.trim_prefix/1 -> s.trim_string_left/1, s.trim_suffix/1 -> s.trim_string_right/1
|
2022-01-05 12:49:22 +02:00 |
yuyi
|
6c1ae4f689
|
ast: simplify mktyp() (#13028)
|
2022-01-04 18:37:18 +02:00 |
yuyi
|
054bb272df
|
cgen: fix const fixed array of reference var using correct pointer (#13023)
|
2022-01-04 11:34:07 +02:00 |
Alexander Medvednikov
|
59ed4be49a
|
all: update copyright year
|
2022-01-04 12:21:12 +03:00 |
yuyi
|
00a0c1886e
|
ast, cgen: fix const fixed array of reference value (#13022)
|
2022-01-04 11:36:29 +03:00 |
Delyan Angelov
|
41e763f79c
|
checker: add error for `type StructAlias = Struct struct Struct { field StructAlias }`
|
2022-01-02 15:54:40 +02:00 |
pancake
|
7b4ba66720
|
js: use JS.String instead of string in builtin javascript functions (#13004)
|
2022-01-01 09:17:08 +02:00 |
Delyan Angelov
|
93c40e696d
|
all: add support for `type MyEnumAlias = MyEnum`
|
2021-12-30 13:42:06 +02:00 |
Delyan Angelov
|
ca5154747e
|
cgen: fix `v -usecache examples/news_fetcher.v` on macos (.sort() compare_ functions duplication)
|
2021-12-29 20:15:51 +02:00 |
Delyan Angelov
|
cb34309f6f
|
cgen: fix chained `./v -usecache -o v cmd/v` (and all other V programs that use maps)
|
2021-12-29 17:57:04 +02:00 |
Delyan Angelov
|
43fee6b3d5
|
all: fix registration of methods with the same name on different generic structs
|
2021-12-28 21:42:48 +02:00 |
Alexander Medvednikov
|
6176ce9f03
|
all: c2v fixes
|
2021-12-28 08:00:56 +03:00 |
Toby Webb
|
35418b8413
|
cgen: fix compile error on locking interface value (#12883)
|
2021-12-26 20:01:00 +02:00 |
yuyi
|
2e68af22d3
|
cgen: improve auto_str error messages (#12972)
|
2021-12-26 18:32:15 +02:00 |
Daniel Däschle
|
10f63b3cd7
|
cgen: remove "main" from inline sum type str (#12963)
|
2021-12-25 23:58:45 +03:00 |
Daniel Däschle
|
35282396ec
|
all: inline sum types (#12912)
|
2021-12-25 18:26:40 +03:00 |
yuyi
|
ad1ef6a9e2
|
cgen: fix map get assign blank var with optional (#12943)
|
2021-12-23 13:04:36 +02:00 |
playX
|
a2468e1e0c
|
js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend (#12940)
|
2021-12-23 11:36:42 +02:00 |
yuyi
|
d3ccdfd75c
|
cgen: fix channel of sumtype (#12938)
|
2021-12-23 11:26:15 +02:00 |
Delyan Angelov
|
e256f1b2aa
|
checker,cgen: stabilise generic method handling (fix a source code ordering issue)
|
2021-12-22 18:03:46 +02:00 |
penguindark
|
278c08704c
|
all: support slices with negative indexes `#[start..end]` (gated arrays) (#12914)
|
2021-12-22 16:34:02 +03:00 |
playX
|
2b9f993574
|
gg: add text rendering, keyboard event handling for JS and other fixes (#12932)
|
2021-12-22 12:26:52 +02:00 |
yuyi
|
6eb44f472a
|
cgen: fix multiple return with sumtype (#12930)
|
2021-12-22 12:09:08 +02:00 |
yuyi
|
6a4fa6096e
|
cgen: fix blank ident in for_c_stmt (#12931)
|
2021-12-22 09:34:26 +02:00 |
pancake
|
cb65f2ff44
|
js: generate es5 methods for valueOf() and toString() (#12928)
Co-authored-by: pancake <pancake@nopcode.org>
|
2021-12-22 09:20:45 +02:00 |
spaceface
|
cfb814a0e3
|
gen: support returning large types from closures on amd64 (#12926)
|
2021-12-22 00:18:45 +02:00 |
playX
|
b68c217d53
|
js: remove usage of default arguments for `-es5` flag (#12921)
|
2021-12-21 20:23:40 +02:00 |
yuyi
|
fc83f0bfd0
|
cgen: clean up gen_assign_stmt() (#12915)
|
2021-12-21 19:23:55 +02:00 |
yuyi
|
de3665af69
|
cgen: fix interface method using struct embed (#12924)
|
2021-12-21 19:16:05 +02:00 |
yuyi
|
460f7c6637
|
cgen: fix fixed array of interfaces equality (#12908)
|
2021-12-20 19:09:22 +02:00 |
Delyan Angelov
|
68ada041e6
|
tests: support `VTEST_ONLY_FN=*test_sincos* ./v test .` and `./v test -run-only test_sin .`
|
2021-12-20 18:45:04 +02:00 |
playX
|
5f0160bf11
|
js,gg: more work on porting gg to JS backend (#12903)
|
2021-12-20 16:18:21 +03:00 |
yuyi
|
cd0b581445
|
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls (#12898)
|
2021-12-19 18:25:18 +02:00 |
yuyi
|
c957f59071
|
cgen: minor cleanup in cgen.v (#12896)
|
2021-12-19 14:31:04 +02:00 |
Delyan Angelov
|
41176c4967
|
cgen: add `bool` and `complex` to c_reserved
|
2021-12-19 13:44:54 +02:00 |
Leo Developer
|
a7019ac86c
|
cgen: fix parallel waiter function generation (#12895)
|
2021-12-19 13:38:48 +02:00 |
yuyi
|
2ab861ef89
|
cgen: fix generic array of interface method call (fix #12882) (#12888)
|
2021-12-18 18:08:19 +02:00 |
yuyi
|
5e5c78ed37
|
cgen: minor cleanup of the field order in the Gen struct definition (#12890)
|
2021-12-18 17:52:33 +02:00 |