Commit Graph

1046 Commits (048431f586f871aa1ad8493beb1a7fb3bc0d4bc3)

Author SHA1 Message Date
yuyi 44b15c0b93
cgen: fix cast to generic interface (#14708) 2022-06-10 08:14:50 +02:00
ChAoS_UnItY 3ceadec7ad
cgen: fix none literal str() function calling (#14704) 2022-06-10 08:14:50 +02:00
ChAoS_UnItY 8241713fe4
cgen: fix mutable receiver type calling mapping function causes C error (fix #14230) (#14696) 2022-06-10 08:14:50 +02:00
Delyan Angelov 54152c9555
cgen: fix missing function names in declarations on `[c2v_variadic][c: xyz]fn deh_fprintf(fstream &C.FILE, fmt &i8)` 2022-06-10 08:14:50 +02:00
yuyi cb4fdc3037
cgen: fix generic interface with non-generic method (#14694) 2022-06-10 08:14:49 +02:00
Alexander Medvednikov 972190dcc0
checker: do not require fn main when building an object file 2022-06-10 08:14:49 +02:00
yuyi d28840036c
cgen: fix nested map index check (fix #14683) (#14687) 2022-06-10 08:14:49 +02:00
ChAoS_UnItY c2315b6c86
cgen: fix array init with it (fix #14679) (#14680) 2022-06-10 08:14:49 +02:00
ChAoS_UnItY a0f1c1ffef
cgen: fix array type as interface (fix #14677) (#14681) 2022-06-05 11:12:14 +02:00
yuyi a4829f64e8
json: fix json decode with missing map type field (#14678) 2022-06-05 11:12:14 +02:00
Delyan Angelov cf7ae39e62
cgen: fix `for (int i = 0; i < 10; i++, a++) {` (multiple expressions in the inc part) 2022-06-05 11:12:13 +02:00
Delyan Angelov 54e851f8de
cgen,ci: fix cast_bool_to_int_test.v on windows-tcc 2022-06-05 11:12:13 +02:00
Delyan Angelov 3e1ff72247
cgen: do not initialise externally declared globals (with -cstrict with [c_extern]). 2022-06-05 11:12:13 +02:00
Delyan Angelov b387554840
cgen: simplify int(bool_var) casts; support [c_extern] tag for global declarations 2022-06-05 11:12:13 +02:00
yuyi 3d6d120d4c
cgen: fix autofree_variable() (fix #14576) (#14602) 2022-06-05 11:12:13 +02:00
yuyi 9699afc1fd
cgen: fix if expr with optional method call (#14600) 2022-06-05 11:12:12 +02:00
Alexander Medvednikov 34d30b0ee5
checker, cgen: c2v variadic fixes 2022-06-05 11:12:12 +02:00
ChAoS_UnItY f174bb6d78
cgen: fix type not being unaliased (fix #14568) (#14591) 2022-06-05 11:12:11 +02:00
yuyi 9459fb549f
cgen: fix fixed array of aliases struct (#14583) 2022-06-05 11:12:11 +02:00
Delyan Angelov f268cf7858
cgen: do not #include signal.h, on -os wasm32 and -d no_segfault_handler 2022-06-05 11:12:10 +02:00
yuyi d4b90827d0
checker, cgen: fix array index optional with if expr (#14575) 2022-06-05 11:12:10 +02:00
Delyan Angelov 215d7875e6
v: always embed file data of \$embed_file(file) constructs, even without -prod, unless `-d embed_only_metadata` is given. 2022-06-05 11:12:10 +02:00
Alexander Medvednikov 0e384bb60d
cgen: fix goto label 2022-06-05 11:12:10 +02:00
Alexander Medvednikov 0bdc213dc6
cgen: c2v infix fix 2022-06-05 11:12:10 +02:00
Delyan Angelov 8cecea9965
cgen: add support for `v -cmain SDL_main sdl_example.v` 2022-06-05 11:12:09 +02:00
yuyi e50d73983f
cgen: fix cross assign in closure (#14549) 2022-06-05 11:12:09 +02:00
yuyi e9da92c61d
parser, cgen: fix cross assign with parentheses (#14545) 2022-06-05 11:12:08 +02:00
spaceface 3d18c884d4
cgen: fix a race condition in the closure implementation (#14532) 2022-06-05 11:12:08 +02:00
Delyan Angelov c4783628e6
cgen: fix parallel cgen for json encoding of struct fields that have default values 2022-06-05 11:12:08 +02:00
Larpon b9c283b2b8
embed_file: rename debug_embed_file_in_prod -> force_embed_file (#14523) 2022-06-05 11:12:07 +02:00
Delyan Angelov f9515f7515
cgen: split keys and values in generated new_map_init calls into separate lines 2022-05-25 12:55:03 +02:00
yuyi b717ef74f8
cgen: fix sizeof('str') and sizeof(r'str') (#14507) 2022-05-25 12:55:02 +02:00
yuyi bf15ed95af
parser: fix sizeof(c'str') (fix #14499) (#14502) 2022-05-25 12:55:01 +02:00
Daniel Däschle 0329536da3
checker: allow but deprecate propagating result as option (#14500) 2022-05-25 12:55:01 +02:00
Daniel Däschle 38709f3e6f
markused: add _result_ok (#14495) 2022-05-25 12:55:00 +02:00
Delyan Angelov 89f0b16f23
cgen: support `-profile -` for _test.v files too 2022-05-25 12:54:59 +02:00
Daniel Däschle 53bc4c80d4
checker,cgen: allow result if guard (#14474) 2022-05-25 12:54:58 +02:00
Alexander Medvednikov ec5ccb2995
cgen: do not generate `_vinit()` for translated .o code 2022-05-25 12:54:58 +02:00
Vincenzo Palazzo 3d723eb9bf
checker: ban unsafe pointer/fn comparison (#14462) 2022-05-25 12:54:58 +02:00
StunxFS b15f50e9b1
json: fix struct field default value support (#14304) 2022-05-25 12:54:57 +02:00
crthpl 2835a190e8
checker, cgen: fix shared non-decl assignment (#14466) 2022-05-25 12:54:56 +02:00
yuyi d5beaa0798
cgen: simplify auto_str_methods.v (#14463) 2022-05-25 12:54:56 +02:00
crthpl 63f03d0c61
cgen: fix autostr of shared fields (#14455) 2022-05-25 12:54:56 +02:00
Daniel Däschle 9ad7307e31
checker: forbid optional variable (#14460) 2022-05-25 12:54:56 +02:00
yuyi 1c0e0ec6a1
cgen: minor cleanup in auto_str_methods.v (#14461) 2022-05-25 12:54:56 +02:00
yuyi 09886f78d3
cgen: fix another error for 'in array of sumtype' (#14448) 2022-05-19 12:16:19 +02:00
yuyi b37130e664
cgen: fix error for 'in array of sumtype' (#14444) 2022-05-19 12:16:18 +02:00
spaceface a2985d652a
cgen: reduce the closure memory usage (#14437) 2022-05-19 12:16:18 +02:00
Alexander Medvednikov f66e514430
cgen: fix eq generation for translated code 2022-05-19 12:16:17 +02:00
yuyi 020845f6c3
cgen: fix alias of array that has builtin method (#14432) 2022-05-17 12:26:26 +03:00