yuyi
|
5464de406c
|
cgen: fix custom str on struct with too many fields (#15195)
|
2022-07-24 10:15:22 +03:00 |
|
Delyan Angelov
|
de0683fe30
|
tests: fix compilation of tcp_test.v
|
2022-07-23 23:33:43 +03:00 |
|
Delyan Angelov
|
c63fed5393
|
tests: remove needless import math in translated_test.v
|
2022-07-23 23:24:17 +03:00 |
|
Alexander Medvednikov
|
d6de53362f
|
checker: improve unused label check
|
2022-07-23 01:36:27 +03:00 |
|
Alexander Medvednikov
|
4d3401c852
|
checker: check for unused labels
|
2022-07-23 01:25:20 +03:00 |
|
Reuben Thomas
|
2ffad85f06
|
doc: remove misleading comment about stdin() (#15154)
|
2022-07-23 00:22:50 +03:00 |
|
yuyi
|
b0c32e0dbf
|
checker: fix fn variadic with enum value (#15177)
|
2022-07-22 16:08:22 +03:00 |
|
yuyi
|
092f5f0bf8
|
checker: fix comptime if in const declaration (fix #15160) (#15169)
|
2022-07-22 16:03:45 +03:00 |
|
zakuro
|
9ec8a99243
|
parser: cleanup orblock duplicate code (#15173)
|
2022-07-22 12:36:50 +03:00 |
|
Delyan Angelov
|
e9809572b1
|
ast: use const empty_expr instead of fn empty_expr (thanks to Joe Conigliaro for the idea) (#15175)
|
2022-07-22 12:14:46 +03:00 |
|
Delyan Angelov
|
c6aea659e3
|
cgen,ci: fix v -usecache self on macos
|
2022-07-22 11:43:20 +03:00 |
|
Delyan Angelov
|
f75d7eb114
|
ci: fix v build-examples (use voidptr(u64(0)) inside vlib/js/dom/dom.js.v)
|
2022-07-21 23:08:18 +03:00 |
|
Delyan Angelov
|
5340f8afea
|
ci: fix vlib/v/checker/tests/nil.vv and its .out file
|
2022-07-21 23:05:02 +03:00 |
|
Delyan Angelov
|
474033c055
|
ci: allow unsafe { a := nil } , add separate nil case in pointer_ops.vv, to test the nil checker errors independently from the voidptr ones
|
2022-07-21 22:52:38 +03:00 |
|
Delyan Angelov
|
697d546d46
|
ci: fix fixed_array_conv.out output (the .vv file was formatted)
|
2022-07-21 22:45:54 +03:00 |
|
Delyan Angelov
|
cf42ba2b80
|
ci: revert nil to voidptr(u64(0)) in voidptr_dereference_err.vv too. nil should have its own .vv/.out pair.
|
2022-07-21 22:43:14 +03:00 |
|
Delyan Angelov
|
cdefb878d6
|
ci: make pass_voidptr_as_interface_reference_test.v use voidptr again
|
2022-07-21 22:41:27 +03:00 |
|
Delyan Angelov
|
2e89eeb477
|
ci: make voidptr_casted_as_an_interface_test.v use voidptr again (it does test exactly that edge case, it should not have been converted to use nil)
|
2022-07-21 22:40:21 +03:00 |
|
Delyan Angelov
|
71cd256f0c
|
ci,cgen: fix -usecache compilation of V itself
|
2022-07-21 22:29:44 +03:00 |
|
Delyan Angelov
|
81104ac309
|
ci: fix v test-cleancode failures
|
2022-07-21 22:05:17 +03:00 |
|
Delyan Angelov
|
231623b75b
|
ci: vfmt tcp_test.v
|
2022-07-21 22:04:51 +03:00 |
|
Delyan Angelov
|
dc1b54c669
|
ci: fix failing ./v vlib/builtin/builtin_test.v (globals initialisation)
|
2022-07-21 21:49:00 +03:00 |
|
Delyan Angelov
|
ed43bfc469
|
ci: fix dlmalloc again (workaround vfmt)
|
2022-07-21 21:21:20 +03:00 |
|
Delyan Angelov
|
e29f6d1393
|
markused: fix ./v -skip-unused -cc gcc -keepc -freestanding -o bel vlib/os/bare/bare_example_linux.v
|
2022-07-21 21:18:33 +03:00 |
|
Delyan Angelov
|
d9fe2edc41
|
ci: fix failing build-module-docs (because of unsafe { unsafe { nil } } )
|
2022-07-21 21:11:43 +03:00 |
|
Alexander Medvednikov
|
9099594a49
|
all: wrap up unsafe { nil } (p. 3)
|
2022-07-21 21:01:30 +03:00 |
|
Alexander Medvednikov
|
a68d03ac59
|
checker: allow x := unsafe { nil }
|
2022-07-21 20:56:24 +03:00 |
|
Alexander Medvednikov
|
dc79f1392b
|
all: voidptr(0) => unsafe { nil } (p.2)
|
2022-07-21 20:51:54 +03:00 |
|
Alexander Medvednikov
|
caa0c2f153
|
vfmt: voidptr(0) => unsafe { nil } (p.1)
|
2022-07-21 20:46:01 +03:00 |
|
yuyi
|
be9f8cc777
|
cgen: fix comptime if in struct field default (fix #15058) (#15152)
|
2022-07-21 16:59:18 +03:00 |
|
yuyi
|
7029e39088
|
checker: check struct field with default expression (#15151)
|
2022-07-21 10:33:34 +03:00 |
|
Joe Conigliaro
|
49228e1acd
|
cgen: fix dep cycle for struct Node { children [4]&Node } closes #15136
|
2022-07-21 16:16:24 +10:00 |
|
Delyan Angelov
|
8593408179
|
json.cjson: add a submodule that allows lower level access to the cJSON library (constructing JSON trees in memory with null leafs).
|
2022-07-20 23:34:17 +03:00 |
|
Hitalo de Jesus do Rosário Souza
|
c8d4534f5b
|
sqlite: remove spurious eprintln on select calls (#15139)
|
2022-07-20 17:35:38 +03:00 |
|
yuyi
|
f27c0387ad
|
cgen: minor cleanup in global_decl() (#15133)
|
2022-07-20 13:51:33 +03:00 |
|
Delyan Angelov
|
ee4a179e71
|
tests: add a test for Node{123, unsafe { nil }, unsafe { nil }}
|
2022-07-20 11:29:01 +03:00 |
|
Delyan Angelov
|
50075d5a79
|
ast,cgen: support a := Abc{unsafe{nil}} , for struct Abc { next &Abc }
|
2022-07-20 10:47:04 +03:00 |
|
Hitalo de Jesus do Rosário Souza
|
a13b8ff0c8
|
mysql: fix for adapting mysql types to v structs (#15100)
|
2022-07-19 18:29:09 +03:00 |
|
yuyi
|
041e90b2e2
|
checker, cgen: fix interface embedding smartcast (fix #13296) (#15127)
|
2022-07-19 16:36:16 +03:00 |
|
Alexander Medvednikov
|
fd47385ff2
|
checker: check untyped nil in assignment
|
2022-07-19 13:31:10 +03:00 |
|
yuyi
|
a39fe68af1
|
cgen: clean up ident() in cgen.v (#15121)
|
2022-07-19 10:54:03 +03:00 |
|
Mehmet Ali
|
12d57e8e7b
|
sokol: add mouse cursor support (#15111)
|
2022-07-18 09:44:48 +03:00 |
|
yuyi
|
5462d4aebf
|
checker: check generic interface declaration (#15108)
|
2022-07-18 01:36:37 +03:00 |
|
penguindark
|
706a922e0c
|
x.ttf: update to fix compilation of vlang/pdf and failing ci (#15109)
|
2022-07-17 19:44:11 +03:00 |
|
yuyi
|
eed496d0bc
|
checker: check generic struct declaration (#15106)
|
2022-07-17 18:09:15 +03:00 |
|
Spydr
|
368cccb059
|
native: add typechecking to gen_var_to_string() (#15107)
|
2022-07-17 18:09:03 +03:00 |
|
Spydr
|
c73c4dc884
|
native: system for defining internal builtin algorithms which are not inlined (#15105)
|
2022-07-17 16:22:54 +03:00 |
|
yuyi
|
58ad6f7999
|
checker: check generic fn declaration (#15104)
|
2022-07-17 14:32:59 +03:00 |
|
yuyi
|
78242627c3
|
parser: fix fn argument type position (#15102)
|
2022-07-17 10:55:20 +03:00 |
|
Ken
|
3075e35237
|
encoding.csv: handle bools (#15103)
|
2022-07-17 10:54:36 +03:00 |
|
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 unsafe s
|
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 |
|