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

815 Commits

Author SHA1 Message Date
yuyi
aef4367a27
cgen: fix returning an option tuple - fn f() ?(int,int) { return g() } (#18851) 2023-07-13 12:02:26 +03:00
Felipe Pena
413ffbfc3b
v: allow alias as fixed array on return (#18817) 2023-07-13 11:58:49 +03:00
yuyi
52a055b6bc
cgen: fix option map with fn type value (#18849) 2023-07-12 15:48:04 +03:00
yuyi
6b792b1257
v: use autocasting in complex conditions (#18839) 2023-07-11 14:49:43 +03:00
Felipe Pena
6b29d628c3
cgen: fix generated code for returning generic result/option to comptime var (#18834) 2023-07-10 21:24:13 +03:00
Felipe Pena
59eb76c81d
v: allow none for not first values on map initialization (#18821) 2023-07-09 15:41:24 +03:00
yuyi
97a726b188
cgen: fix nested or expr call (fix #18803) (#18807) 2023-07-07 22:06:10 +03:00
yuyi
2d838d5178
v: use autocasting in complex conditions (#18797) 2023-07-06 19:18:57 +03:00
Felipe Pena
8f7f2c8cf7
checker: fix try_pop with fixed array (#18789) 2023-07-06 02:34:22 +03:00
Mark aka walkingdevel
c48ae86132
cgen: fix autofree inserting string declarations for multiple functions calls (#18723) 2023-07-03 08:01:55 +03:00
yuyi
ad1d5e7adb
cgen: remove 'mut mut_table := unsafe { &ast.Table(g.table) }' (#18742) 2023-07-02 23:54:44 +03:00
yuyi
5d4c2cd832
v: use autocasting in complex conditions (#18731) 2023-07-02 09:23:15 +03:00
Felipe Pena
29c8aaeb89
cgen: fix selector code to use interface method table on closure when needed (#18736) 2023-07-02 06:54:52 +03:00
yuyi
f122703a43
v: use autocasting in if conditions inside the compiler (#18708) 2023-06-29 19:37:36 +03:00
Delyan Angelov
ec35d76574
cgen: cleanup return comments in generated code after dbd2517 (-32KB for v.c) 2023-06-25 09:51:32 +03:00
Felipe Pena
e9960339f9
cgen: fix generic resolver on non generic function (#18381) 2023-06-25 09:07:14 +03:00
yuyi
84a5fd0051
cgen: minor cleanup for ast.clear_flags() (#18549) 2023-06-25 09:01:36 +03:00
Felipe Pena
34ac3269bc
cgen: fix initialising a map, using option type as value (#18540) 2023-06-25 01:55:42 +03:00
yuyi
b61fdfa094
checker, cgen: fix generic method variable (#18509) 2023-06-21 12:09:53 +03:00
Felipe Pena
c657384f72
cgen: fix alias to option handling (#18490) 2023-06-20 11:55:25 +03:00
Felipe Pena
0232f074a8
cgen: fix alias eq method + map init with option (#18483) 2023-06-20 11:52:59 +03:00
yuyi
acfe785597
all: clean up with is_any_kind_of_pointer() (#18467) 2023-06-17 14:10:06 +03:00
Louis Schmieder
dbd251793e
all: add $res compile time function to get returned value in defer block (#18382) 2023-06-17 14:08:50 +03:00
yuyi
ac32d2a803
checker, cgen: fix if/match expr with continue or break in a branch (#18466) 2023-06-16 12:06:00 +03:00
Felipe Pena
23da2128d5
cgen: fix msvc packed attr (#18437) 2023-06-14 10:44:48 +03:00
Felipe Pena
ada702ec66
cgen: fix opt ptr argument passing with and without heap usage (#18423) 2023-06-13 08:51:42 +03:00
Felipe Pena
54eabcb242
cgen: make the default values for all enums, be their first listed entry, even if it was enum MyEnum { first = 999 second}, not just the defaul 0 (#18388) 2023-06-11 21:57:36 +03:00
Felipe Pena
af8df871d1
cgen: fix option ptr assignment (#18394) 2023-06-11 00:53:35 +03:00
Felipe Pena
7a25c03aa7
cgen: simplify fixed arr return (#18380) 2023-06-09 14:34:32 +03:00
Felipe Pena
8d2a0ffe37
cgen: fix option handling with auto heap variable (#18336) 2023-06-04 18:10:22 +02:00
Felipe Pena
a8ea1f9d50
cgen, checker, parser: fix fixed array with channel (#18315) 2023-06-02 10:55:08 +03:00
Alexander Medvednikov
9db10c8f61 all: coroutines (part 2) 2023-05-28 05:30:23 +02:00
Alexander Medvednikov
45f16a2640 all: coroutines (part 1) 2023-05-27 23:33:46 +02:00
Felipe Pena
16ef1d95fb
cgen: fix fixed array ret with anon fn (#18279) 2023-05-27 20:42:31 +02:00
Felipe Pena
64a4a3316a
checker, cgen: fix fixed array return on assigning, arg pass and dumping (#18216) 2023-05-25 02:52:45 +02:00
Turiiya
e8046439f0
cgen: include float kind in struct field type defaults (#18228) 2023-05-24 06:50:45 +03:00
Felipe Pena
37618c9465
cgen, checker: fix comptime assigning to sumtype or indexexpr (#18240) 2023-05-23 14:42:53 +02:00
Felipe Pena
9d9785cc05
all: allow fixed array returns (#17931) 2023-05-18 11:30:49 +02:00
Felipe Pena
1e88b1ab3e
cgen: fix missing panic message for 'option not set' on debug (#18168) 2023-05-18 11:25:19 +02:00
Felipe Pena
a7f84e79f8
cgen: fix option unwrap from ovoid function (#18173) 2023-05-14 14:38:14 +03:00
yuyi
a0a8b7e47a
ast, parser, checker, cgen, fmt: implement generic fn params (fix #14937) (#18126) 2023-05-07 19:53:56 +02:00
Felipe Pena
1c3af091f7
cgen, json: fix option ptr declaration and dumping (#18119) 2023-05-07 03:54:43 +03:00
Felipe Pena
2c123dffbb
cgen: fix comptimeselector option propagation (#18092) 2023-05-03 08:31:48 +03:00
Felipe Pena
9fb52c4c9c
cgen: fix code generated for or-block for void result return function + code generated for indirection comptime checking for logical operators (#18066) 2023-04-27 17:37:29 +03:00
Felipe Pena
adcd16b198
cgen: fix generic return for option ptr (#17987) 2023-04-18 17:51:43 +02:00
yuyi
92cb7468ce
ast: minor optimization of clear_flags() (#17938) 2023-04-13 07:27:26 +02:00
Felipe Pena
6a60db8768
cgen, checker: fix generic/comptime parameter concrete type resolution in some cases (#17762) 2023-04-10 10:42:49 +03:00
yuyi
b40aa4ffa9
cgen: fix embed struct with sumtype field (#17823) 2023-03-30 15:59:06 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Felipe Pena
ca198ace7d
cgen: fix nested fn call with result/option propagation (#17738) 2023-03-24 17:36:37 +02:00