Delyan Angelov
|
fec7f0f0b9
|
cgen: fix auto .str() generation for []&T, and fn (t &T) str() string{}
|
2020-05-08 12:48:07 +03:00 |
|
Delyan Angelov
|
7207a4970b
|
solaris: fix tests
|
2020-05-07 16:19:21 +00:00 |
|
Alexander Medvednikov
|
8cfb2ad6c9
|
string: is_lit
|
2020-05-07 18:05:57 +02:00 |
|
Alexander Medvednikov
|
ef387779bf
|
cgen: fix -autofree
|
2020-05-07 17:51:30 +02:00 |
|
Alexander Medvednikov
|
3c6e090ae3
|
ci: test broken -autofree
|
2020-05-07 17:45:00 +02:00 |
|
Alexander Medvednikov
|
be063d740b
|
ci: test self compilation with -autofree
|
2020-05-07 17:37:12 +02:00 |
|
Tanel Liiv
|
d0afa748ff
|
cgen: optional multiple return values
|
2020-05-07 15:36:04 +02:00 |
|
Alexander Medvednikov
|
12221fb999
|
cgen: fix msvc struct init
|
2020-05-07 13:11:24 +02:00 |
|
Alexander Medvednikov
|
6ff93f270c
|
cgen: simplify struct_init()
|
2020-05-07 13:00:42 +02:00 |
|
Uwe Krüger
|
59aa31cee5
|
cgen: string interpolation: optimize away some partial strings of 0 length
|
2020-05-07 04:34:18 +02:00 |
|
wilesun
|
19390871e9
|
json: handle external types
|
2020-05-07 04:33:19 +02:00 |
|
Delyan Angelov
|
e33805b2b3
|
json.decode: fix expressions in the second argument, also fixes news_fetcher.v
|
2020-05-06 21:44:50 +03:00 |
|
Tanel Liiv
|
b5a1544bf8
|
parser: allow re-assigning fns to variables
|
2020-05-06 20:09:29 +02:00 |
|
Delyan Angelov
|
f638caef39
|
compiler: v -autofree can now compile itself
|
2020-05-06 19:03:51 +03:00 |
|
Alexander Medvednikov
|
8d2a4d2436
|
clipboard: make compile on linux
|
2020-05-06 12:00:52 +00:00 |
|
Alexander Medvednikov
|
25db5e96a3
|
strings.builder: fix a memory leak
|
2020-05-06 11:12:00 +00:00 |
|
yuyi
|
c653977c15
|
cgen: fix struct with map field str() error
|
2020-05-06 09:08:48 +03:00 |
|
Alexander Medvednikov
|
25b536d03f
|
cgen: str: do not free "true"/"false" literals
|
2020-05-05 23:25:14 +02:00 |
|
Alexander Medvednikov
|
473ffb5489
|
builtin: fix a leak in array_str
|
2020-05-05 18:04:43 +00:00 |
|
Delyan Angelov
|
9e715b8701
|
cgen: use c_name() while generating code for or {}
|
2020-05-05 19:28:25 +03:00 |
|
Alexander Medvednikov
|
ff88906e9a
|
cgen: add new to reserved words
|
2020-05-05 16:50:59 +02:00 |
|
Delyan Angelov
|
ddb5a8e6e4
|
time: add specialized vpc_now_darwin to fix -os cross
|
2020-05-05 17:31:21 +03:00 |
|
Tanel Liiv
|
b16281d6e4
|
cgen: pass around functions
|
2020-05-05 16:21:21 +02:00 |
|
Alexander Medvednikov
|
148661ead6
|
json: wrap up: encode_array()
|
2020-05-05 14:54:12 +02:00 |
|
Alexander Medvednikov
|
ee92060d4d
|
json: decode_array fix
|
2020-05-05 14:19:31 +02:00 |
|
Alexander Medvednikov
|
ef6c418eb6
|
json: decode arrays
|
2020-05-05 13:23:44 +02:00 |
|
Steve Phillips
|
84fc587ec2
|
cgen: use a temp var in map()
|
2020-05-05 10:29:23 +02:00 |
|
yuyi
|
6aca3be474
|
cgen: fix []map[string]string.str() error
|
2020-05-05 08:46:19 +03:00 |
|
Uwe Krüger
|
a4b6c3fa5d
|
cgen: hex representation of signed and pointers
|
2020-05-05 00:24:33 +02:00 |
|
Delyan Angelov
|
1c945faa15
|
cgen: fix _to_Interface_INAME conversion fns generation
|
2020-05-05 00:01:54 +03:00 |
|
Delyan Angelov
|
b5fda6e410
|
cgen: skip interface outside methods, while generating _interface_methods struct
|
2020-05-04 22:56:58 +03:00 |
|
Alexander Medvednikov
|
9823d80e0c
|
json: minor fixes + bring back the test
|
2020-05-04 20:43:22 +02:00 |
|
Delyan Angelov
|
6e1825b417
|
cgen: prefix with v_ keyword C fn args too
|
2020-05-04 19:55:21 +03:00 |
|
Delyan Angelov
|
d7e7113047
|
cgen: fix for char in nums {}
|
2020-05-04 18:57:33 +03:00 |
|
Alexander Medvednikov
|
fd8a194df0
|
json: wrap up decode()
|
2020-05-04 16:46:39 +02:00 |
|
Enzo Baldisserri
|
8fd69e845f
|
cgen: fix using pointer as interface receiver
|
2020-05-04 14:21:03 +02:00 |
|
Delyan Angelov
|
0e241162d9
|
panic: distinguish between builtin and main modules
|
2020-05-04 14:51:30 +03:00 |
|
Uwe Krüger
|
f831910c5c
|
utf: fix string length calculation for combining characters
|
2020-05-04 13:21:11 +02:00 |
|
joe-conigliaro
|
d75f286230
|
parser: store FnDecl body position and use for scope
|
2020-05-04 20:31:34 +10:00 |
|
joe-conigliaro
|
4571a5eb83
|
gen: use middle of fn pos to load correct scope for free
|
2020-05-04 20:08:37 +10:00 |
|
Delyan Angelov
|
acd80f052b
|
tests: improve diagnostic output on failure
|
2020-05-04 11:21:25 +03:00 |
|
yuyi
|
cd5dccd855
|
gen: fix compilter_test.v error on windows
|
2020-05-04 10:09:49 +02:00 |
|
Enzo Baldisserri
|
4b3ce79e84
|
interface: support arguments in methods and simplify
|
2020-05-04 00:14:59 +02:00 |
|
Delyan Angelov
|
71a92eb87b
|
tests: fix CI failing for builtin __as_cast
|
2020-05-03 22:25:38 +03:00 |
|
Delyan Angelov
|
242670a33d
|
compiler: add support for panic_debug with -cg
|
2020-05-03 22:13:59 +03:00 |
|
Delyan Angelov
|
845ffb59a6
|
live: use mostly pure V code for reloading, eases customization
|
2020-05-03 20:22:24 +03:00 |
|
Alexander Medvednikov
|
de749e9d3b
|
parser/cgen: interface <<; any type
|
2020-05-03 18:08:45 +02:00 |
|
Alexander Medvednikov
|
361fad9231
|
tests: disable valgrind test until fn scopes are fixed
|
2020-05-03 16:29:15 +02:00 |
|
Delyan Angelov
|
7e4e3abc2c
|
compiler: circuimvent the dependency cycle v.ast <-> v.table
|
2020-05-02 22:52:10 +03:00 |
|
yuyi
|
02807aab43
|
interpolation: fix error on windows_gcc
|
2020-05-02 18:22:34 +03:00 |
|
Tanel Liiv
|
68ca8ab8a4
|
array: nested map()
|
2020-05-02 15:26:58 +02:00 |
|
Alexander Medvednikov
|
44c00199b6
|
cgen: fix fixed array consts and pointer interfaces
|
2020-05-02 15:18:58 +02:00 |
|
Alexander Medvednikov
|
06d533b0c1
|
cgen: clean up _STR
|
2020-05-02 11:11:32 +02:00 |
|
eyelash
|
716d867f25
|
cgen: generate static C functions
|
2020-05-02 10:42:38 +02:00 |
|
Alexander Medvednikov
|
06173834c0
|
cgen: interface_call()
|
2020-05-02 10:10:52 +02:00 |
|
Delyan Angelov
|
aa9bb6f71a
|
compiler: fix -live compilation of bounce example with gcc-9 & clang
|
2020-05-02 02:36:29 +03:00 |
|
Alexander Medvednikov
|
7a51d4d796
|
cgen: revert new
|
2020-05-02 00:59:06 +02:00 |
|
Alexander Medvednikov
|
7dc98120c0
|
cgen: vfmt -live fix; add new to c_reserved
|
2020-05-02 00:45:45 +02:00 |
|
Uwe Krüger
|
170ee4312f
|
cgen: string interpolation field width support for large integers and utf8 strings
|
2020-05-02 00:43:59 +02:00 |
|
Alexander Medvednikov
|
2f64594ce0
|
cgen: more interface fixes
|
2020-05-02 00:28:46 +02:00 |
|
Delyan Angelov
|
7038f59ca5
|
compiler: add back support for -live
|
2020-05-02 01:14:44 +03:00 |
|
eyelash
|
130324df76
|
compiler: remove debug prints
|
2020-05-02 00:10:36 +02:00 |
|
Alexander Medvednikov
|
0106eb1cf6
|
cgen: fix thread wrapper
|
2020-05-01 12:32:10 +02:00 |
|
Alexander Medvednikov
|
0b8a0d1640
|
checker: fix _ check
|
2020-05-01 12:22:39 +02:00 |
|
Alexander Medvednikov
|
c1ee14cc3e
|
json: decode() part 1
|
2020-05-01 12:02:31 +02:00 |
|
Tanel Liiv
|
182e7071bf
|
array: map() function
|
2020-05-01 00:29:54 +02:00 |
|
Alexander Medvednikov
|
250dea7bd1
|
cgen: another imported interface fix
|
2020-04-30 18:23:17 +02:00 |
|
joe-conigliaro
|
98cd013908
|
cgen: fix interface struct sorting
|
2020-04-29 21:08:39 +10:00 |
|
Alexander Medvednikov
|
2fc05b814c
|
all: interface arrays
|
2020-04-29 12:21:15 +02:00 |
|
Alexander Medvednikov
|
1e4e882bc2
|
cc/cgen: cached modules fixes
|
2020-04-28 13:15:37 +02:00 |
|
joe-conigliaro
|
ef4f4825ac
|
cgen: auto dereference for optional
|
2020-04-28 15:59:41 +10:00 |
|
yuyi
|
28f5920bb0
|
cgen: fix map fixed-array .str() error
|
2020-04-28 07:22:46 +02:00 |
|
Enzo Baldisserri
|
682838a0cf
|
checker: check array and fields mutability
|
2020-04-27 22:53:26 +02:00 |
|
Alexander Medvednikov
|
5d073dcce5
|
x64: # opcodes
|
2020-04-27 21:38:58 +02:00 |
|
joe-conigliaro
|
9f76a7b250
|
parser: simplify unused vars & add loop/if vars etc
|
2020-04-27 23:16:31 +10:00 |
|
yuyi
|
e9f764db4f
|
cgen: uniform string output format
|
2020-04-27 14:48:28 +02:00 |
|
Alexander Medvednikov
|
eb8973c362
|
builder: module caching fixes
|
2020-04-27 14:46:25 +02:00 |
|
Delyan Angelov
|
73106b5f5e
|
profile: measure defer{} statements too
|
2020-04-27 13:18:37 +03:00 |
|
Alexander Medvednikov
|
fde929ee30
|
cgen: remove tos3() call: part 1
|
2020-04-27 12:10:08 +02:00 |
|
Delyan Angelov
|
dd1ee39271
|
profile: produce civilized output
|
2020-04-27 12:45:19 +03:00 |
|
yuyi
|
99a7b69578
|
cgen: optimize map_to_string format
|
2020-04-27 10:52:21 +02:00 |
|
Delyan Angelov
|
c84dee5968
|
profile: move profiling related logic into vlib/v/gen/profile.v
|
2020-04-27 09:40:13 +03:00 |
|
yuyi
|
95754f211f
|
cgen: generate str function when using x.str()
|
2020-04-27 08:09:37 +02:00 |
|
Delyan Angelov
|
e523540f3a
|
profile: use specialized time__vpc_now
|
2020-04-26 22:14:54 +03:00 |
|
Alexander Medvednikov
|
50a83736ff
|
checker: struct init: handle C types
|
2020-04-26 19:59:03 +02:00 |
|
Alexander Medvednikov
|
f23948010a
|
parser: new array init syntax
|
2020-04-26 17:28:48 +02:00 |
|
yuyi
|
9f4d498ff1
|
all: updateimport () and []array
|
2020-04-26 13:49:31 +02:00 |
|
Alexander Medvednikov
|
3ab8dc0092
|
parser: array init: []string => []string{}
|
2020-04-26 09:17:17 +02:00 |
|
Alexander Medvednikov
|
a48080afec
|
parser: deprecate import(); replace remaining import()s
|
2020-04-26 07:36:02 +02:00 |
|
yuyi
|
9cfb1e3bf7
|
cgen: fix struct with fixed array error
|
2020-04-26 06:54:14 +02:00 |
|
yuyi
|
541b058e90
|
all: use a !in b instead of !(a in b)
|
2020-04-26 06:39:23 +02:00 |
|
Alexander Medvednikov
|
e0f9c042c1
|
cgen: interface fixes
|
2020-04-25 21:24:12 +02:00 |
|
Enzo Baldisserri
|
c73d91a8fe
|
fmt: TypeDecl; format more files
|
2020-04-25 20:58:00 +02:00 |
|
Alexander Medvednikov
|
b7e5be41f5
|
checker/cgen: as fixes
|
2020-04-25 18:41:12 +02:00 |
|
yuyi
|
c26e83f58a
|
array: fix fixed array errors
|
2020-04-25 18:26:38 +02:00 |
|
Enzo Baldisserri
|
fb54a2635c
|
fmt: lots of fixes
|
2020-04-25 17:49:16 +02:00 |
|
Delyan Angelov
|
9a19531909
|
compiler: add support for [if myflag] void fn/methods
|
2020-04-25 16:57:11 +03:00 |
|
joe-conigliaro
|
aacc3c6f7e
|
cgen: generate str for variadic (#4587)
|
2020-04-25 22:23:47 +10:00 |
|
Delyan Angelov
|
4bcdf11743
|
cgen: support -profile - and -profile x.txt
|
2020-04-25 13:41:49 +03:00 |
|
Delyan Angelov
|
eecf92cdb0
|
cgen: implement -profile support.
|
2020-04-25 13:05:49 +03:00 |
|