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

10463 Commits

Author SHA1 Message Date
boris-741
b4dedcae43
encoding.csv: generic serialization (#15097) 2022-07-16 22:21:05 +03:00
yuyi
8d24522d02
parser: check generic interface method declaration (#15095) 2022-07-16 16:58:39 +03:00
Delyan Angelov
5e0899853b
dlmalloc: fix warning about fixed arrays of references, by using unsafe{} 2022-07-16 16:37:20 +03:00
yuyi
ac7e809464
checker: fix generics struct init in generic fn (fix #15080) (#15088) 2022-07-15 17:30:56 +03:00
yuyi
560afac5d5
cgen: fix fixed array of threads (#15086) 2022-07-15 14:19:11 +03:00
lemon
f2961ec862
native: refer to types to generate code (#15077) 2022-07-15 14:18:32 +03:00
yuyi
57c4188d98
ast, checker: check generic fn declaration error (#15079) 2022-07-15 14:18:06 +03:00
shove
b4ed5d5f20
net: add a net.dial_tcp_with_bind/2 function (#15055) (#15056) 2022-07-15 12:38:17 +03:00
yuyi
0d6d6f7de8
cgen: fix fixed array literal index (fix #14959) (#15054) 2022-07-14 08:23:29 +03:00
Alexander Medvednikov
a38310f929 checker: array of references check 2022-07-14 00:58:14 +03:00
Hitalo de Jesus do Rosário Souza
3f3742122f
orm: sql type in struct by attribute (#14919) 2022-07-13 18:03:30 +03:00
yuyi
7594157deb
checker: check generic interface declaration (#15047) 2022-07-13 09:43:54 +03:00
wilesun
d12a8aef68
json: use C.cJSON_free, for freeing the intermediate result in json_print and json_print_pretty (#15029) 2022-07-13 07:11:18 +03:00
yuyi
19d0d758c9
cgen: fix struct shared field with default init (#15040) 2022-07-12 20:04:06 +03:00
yuyi
9839ab6a6c
parser: fix parse c function with optional argument name (fix #13234) (#15037) 2022-07-12 11:06:29 +03:00
Delyan Angelov
a4e0e0fa57
builtin: add drafts for __new_array_noscan, __new_array_with_default_noscan, __new_array_with_array_default_noscan for array_notd_gcboehm_opt.v 2022-07-12 10:00:58 +03:00
yuyi
62d800a775
checker, cgen: fix array of sumtype appending alias (#15034) 2022-07-12 09:26:11 +03:00
Subhomoy Haldar
8a4313c1b8
ci: fix vlib/v/builder/builder_test.v failures on msvc (#15035) 2022-07-12 08:46:59 +03:00
Dmitriy Smirnov
f35a3a89f9
checker: fix dereferencing voidptr. (#15033) 2022-07-12 01:12:29 +03:00
Subhomoy Haldar
dc68469818
use trimmed output for comparison (#15032) 2022-07-11 22:47:32 +03:00
Subhomoy Haldar
fbad48b5d9
v.builder: retain executable after v run, if the executable was already existing (#15021) 2022-07-11 21:08:53 +03:00
Delyan Angelov
f16355eeba
ci: fix build failure (complete renaming in 39b6851) 2022-07-11 20:59:37 +03:00
yuyi
39b68518b2
checker: minor refactor in infix_expr() (#15028) 2022-07-11 20:16:42 +03:00
shove
032cb3f115
checker: fix the type of ComptimeCall (fixes #14996) (#15013) 2022-07-11 20:08:01 +03:00
yuyi
398bd2280d
cgen: fix printing reference alias (#15027) 2022-07-11 20:04:34 +03:00
yuyi
ec19f4289c
checker, cgen: fix alias operator overloading (#15024) 2022-07-11 19:20:15 +03:00
yuyi
9231697966
parser: check for illegal use of any type (fix #15003) (#15020) 2022-07-11 15:29:25 +03:00
Delyan Angelov
94e35b710c markused: fix C compilation failures on -skip-unused -profile 2022-07-11 10:56:13 +03:00
yuyi
81d694b1f8
tests: restore interfaces_map_test (#15019) 2022-07-11 09:05:36 +03:00
yuyi
a6cc4c4c28
parser: minor cleanup in parse_type.v (#15011) 2022-07-11 08:03:08 +03:00
yuyi
7ff20c09ca
tests: restore test_interface_struct_from_mut_array() (#15018) 2022-07-11 07:57:14 +03:00
yuyi
cc43a23f29
vweb: check invalid port number (#15016) 2022-07-11 07:55:33 +03:00
Alexander Medvednikov
bfcf5b13ed checker: fix #define check on windows 2022-07-11 00:20:12 +03:00
Alexander Medvednikov
22dac71b33 checker: do not allow #define everywhere 2022-07-10 22:51:06 +03:00
yuyi
58c5d387c4
parser: check closure capture global variable (#15010) 2022-07-10 20:21:54 +03:00
Delyan Angelov
3b575e83f1
ci: fix ./v cmd/tools/builders/golang_builder.v 2022-07-10 18:53:18 +03:00
Delyan Angelov
01dabe5966
ci: fix failing invalid_struct_decl_script_err.vv 2022-07-10 18:37:42 +03:00
Delyan Angelov
d15e9f4866
ci: remove forgotten dump call 2022-07-10 17:05:49 +03:00
Delyan Angelov
69aaf68f2f
cgen: fix anon struct auto string method generation 2022-07-10 16:57:13 +03:00
yuyi
64eab72f4c
checker: fix anon fn using global variable (fix #15004) (#15008) 2022-07-10 12:43:50 +03:00
Alexander Medvednikov
7d0a9186bb all: wrap up anonymous structs 2022-07-10 12:00:17 +03:00
Ken
1ae11b41e7
net.websocket: make logger configurable (#14998) 2022-07-09 17:39:07 +03:00
Thomas Peißl
739f3cd90b
pref: detect termux more reliably (#15001) 2022-07-09 17:23:19 +03:00
Subhomoy Haldar
8ee614d3f8
encoding.binary: add unit tests and module documentation (#15000) 2022-07-09 15:52:19 +03:00
Hitalo de Jesus do Rosário Souza
d4b0ebf215
doc: clear the explanation to 'sql: type' (#14915) 2022-07-09 14:04:35 +03:00
CC
7e1c45ab44
math: add round_sig function for f64 (#14997) 2022-07-09 10:41:58 +03:00
shove
c5a290ffc6
cgen: fix lost return in ComptimeCall (fixes #14962) (#14995) 2022-07-09 08:55:01 +03:00
Alexander Medvednikov
70890b27a5 cgen: handle default anonymous structs 2022-07-08 15:40:57 +03:00
Delyan Angelov
02d675ab67
os: restore the env TERMUX_VERSION based final resort for runtime auto detection of Termux 2022-07-08 11:16:53 +03:00
StunxFS
bcaa3ac915
vlib: remove jsdom module, use js.dom instead (#14985) 2022-07-08 09:23:10 +03:00
penguindark
df4bd88d45
x.ttf: fix a bug in TTF fixed point data management (#14987) 2022-07-08 09:20:59 +03:00
yuyi
5aa6ec0693
cgen: fix error for comptime method call (#14992) 2022-07-08 09:18:49 +03:00
Delyan Angelov
5f140fe2ff
ci: v fmt -w vlib/v/builder/cc.v 2022-07-07 23:57:21 +03:00
StunxFS
9376009c39
v.eval: support panic function (#14972) 2022-07-07 20:00:59 +03:00
CC
6b597a4b58
builder: add support for icc (Intel C Compiler) (#14975) 2022-07-07 19:48:07 +03:00
yuyi
758f84fa86
ast, parser, cgen: fix anon sumtype cast (fix #14967) (#14976) 2022-07-07 18:51:57 +03:00
yuyi
029d583bb2
cgen: a minor fix in match_expr (#14983) 2022-07-07 18:51:27 +03:00
Larpon
9f3b6e3e3a
android: provide more predictable logging, add comptime termux support (#14984) 2022-07-07 18:28:29 +03:00
Delyan Angelov
71a85249ea
ci: fix failing ./v -W build-tools 2022-07-07 18:22:21 +03:00
Alexander Medvednikov
f5001192f9 fmt: handle anon structs; tests: bring back anon struct test 2022-07-07 16:11:13 +03:00
zakuro
972bba66d1
checker,ast: clean up deprecation code (#14980) 2022-07-07 15:45:45 +03:00
Delyan Angelov
de77114593
eval: support assignment operators like +=, make for a in 0..10 { more robust 2022-07-07 15:13:22 +03:00
Alexander Medvednikov
15ce15d41b tests: disable anon struct test for now 2022-07-07 13:08:10 +03:00
Delyan Angelov
91acd0f380
ci: fix failing v check-md vlib/sqlite/README.md 2022-07-07 13:05:05 +03:00
Alexander Medvednikov
7da466e81b parser: show a hint when using v . with multiple fn mains 2022-07-07 13:04:08 +03:00
Alexander Medvednikov
426421bebb all: anonymous structs (part 2) 2022-07-06 21:38:45 +03:00
yuyi
f4b39fbe4f
cgen: fix sumtype with none (#14965) 2022-07-06 21:03:42 +03:00
CC
d86b4951c7
sqlite: add sync and journal funcs, docs (#14970) 2022-07-06 21:01:27 +03:00
Delyan Angelov
f0ce7fb9d3
Revert "gg: fix android compilation for ~/.vmodules/ui/examples/rectangles.v"
This reverts commit f1a855e6d2.
2022-07-06 16:19:40 +03:00
Delyan Angelov
f1a855e6d2
gg: fix android compilation for ~/.vmodules/ui/examples/rectangles.v 2022-07-06 16:02:50 +03:00
Delyan Angelov
3308313167
os: remove the closing of stream handles at the end of Process.win_slurp/1 2022-07-06 15:43:13 +03:00
zakuro
a46bcf3571
all: v.ast.byte_type -> v.ast.u8_type (#14964) 2022-07-06 13:32:30 +03:00
CC
6a567a0dd6
sqlite: improve exec_none behaviour (#14955) 2022-07-06 10:44:36 +03:00
yuyi
bb2223c8b0
checker: fix shared_element_lock.vv test (#14960) 2022-07-06 10:43:36 +03:00
Alexander Medvednikov
59d6ca0c95 js: remove duplicate match 2022-07-06 07:46:58 +03:00
Alexander Medvednikov
819b6f475a os: remove unnecessary unsafes 2022-07-06 07:07:48 +03:00
Alexander Medvednikov
d3090de02e checker: apply the new array check only to len:, not cap: inits 2022-07-06 07:03:36 +03:00
yuyi
fab5802deb
all: fix latest ci errors (#14957) 2022-07-06 07:02:16 +03:00
Alexander Medvednikov
3f3fb5be47 js: handle Nil 2022-07-06 06:47:37 +03:00
Alexander Medvednikov
c48ed52f43 checker: vfmt 2022-07-05 23:56:53 +03:00
Alexander Medvednikov
163c7ba2bb checker: stricter []&Type{len:x} check 2022-07-05 23:51:29 +03:00
Alexander Medvednikov
9b4dec7b98 parser: anonymous structs (part 1) 2022-07-05 23:17:00 +03:00
Alexander Medvednikov
5f78647137 all: unsafe nil 2022-07-05 22:59:54 +03:00
Larpon
0dd5050b29
os: clean up usage of ANativeActivity, allow access to fields (#14948) 2022-07-05 16:30:10 +03:00
yuyi
56d62a6e6f
checker: check undefined ident in reference selector (#14949) 2022-07-05 16:29:54 +03:00
yuyi
8b8667dd9a
cgen: cleanup in fn.v (#14938) 2022-07-05 06:40:57 +03:00
Ken
a50e0f0522
net.websocket: allow timeout to be configured (#14941) 2022-07-05 06:40:23 +03:00
ghosttk
eb10cc9606
vweb: fix '/' in scan_static_directory (#14940) 2022-07-04 15:32:44 +03:00
yuyi
7f72ffdd66
cgen: fix error for result multi_return (#14936) 2022-07-04 10:54:08 +03:00
Delyan Angelov
90197fd58a
term.ui: make C. unions and structs public (solve conflicts with term on windows) 2022-07-04 10:50:19 +03:00
Ikko Ashimine
584c035120
sync: fix typo in pool.v (#14928) 2022-07-03 15:24:57 +03:00
yuyi
9028b0ed76
parser: minor cleanup in partial_assign_stmt() (#14929) 2022-07-03 15:24:42 +03:00
Alexander Medvednikov
20ba2a10c1 builder: use is_dir for src/; changelog: add 0.3.1 features 2022-07-03 15:13:08 +03:00
Alexander Medvednikov
c90e8185ed builder: search for .v files in /src/ if there are none 2022-07-03 08:41:26 +03:00
Alexander Medvednikov
b5f2636b73 Revert "vweb: remove the extra '/' in scan_static_directory (#14806)"
This reverts commit 8172fecb51.
2022-07-02 11:38:24 +03:00
Dialga
6957f940a0
pkgconfig: fix parsing mid-line comments (#14920) 2022-07-02 11:31:52 +03:00
Joe Conigliaro
4032838aba
gen.golang: array append & basic strings 2022-07-02 17:07:47 +10:00
yuyi
1b463834aa
builder: fix cross compiling for linux on windows (fix #6241, fix #12922) (#14907) 2022-07-01 15:24:27 +03:00
Delyan Angelov
69d292e8d1
os: detect termux more reliably 2022-07-01 13:52:57 +03:00
Delyan Angelov
b6b611aa82
v: support better separation of general Android vs Termux specific code (part 2) 2022-07-01 13:18:31 +03:00