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

12597 Commits

Author SHA1 Message Date
yuyi
27f9bc9ba0
checker: check error for match mut with immutable variable (fix #9704 #8976) (#13725) 2022-03-13 09:53:29 +02:00
Delyan Angelov
83762fa4a4
native: align the disassembly/comment column in the -v -b native output 2022-03-12 11:09:09 +02:00
Subhomoy Haldar
40504e8600
rand: further bridge gap b/w rand module and PRNG interface (#13719) 2022-03-12 09:41:12 +02:00
Delyan Angelov
a3e9409196
strconv: fix a double free bug in v_sprintf/remove_tail_zeros_old, reduce leaks 2022-03-11 19:32:08 +02:00
yuyi
795fe5844c
strconv: fix strconv.v_printf() (#13716) 2022-03-11 17:00:57 +02:00
yuyi
10ab758aa7
ast: minor cleanup in pref_arch_to_table_language() (#13714) 2022-03-11 14:56:48 +02:00
Delyan Angelov
8dc4b1d9a3
builtin: use malloc_noscan more (for map metas and in []byte.hex()) 2022-03-11 11:26:22 +02:00
yuyi
1993bf2a12
parser: cleanup map syntax (#13713) 2022-03-11 12:15:52 +03:00
yuyi
c1c3ae2a18
parser: minor cleanup in fn_args() (#13711) 2022-03-11 10:42:03 +02:00
yuyi
3f351036a2
parser: fix error for fn with type only argument (fix #13704) (#13709) 2022-03-10 22:52:06 +02:00
yuyi
dd06698ee3
ast: rename TypeSymbol.is_public to TypeSymbol.is_pub (#13710) 2022-03-10 22:18:57 +02:00
Delyan Angelov
f3388df577
ci: fix dump_expression.vv when v is actually vprod (-‸ლ) 2022-03-10 18:13:00 +02:00
Delyan Angelov
e8c8f0e7c0
v.ast: fix dump(os.real_path(Makefile)) printing main.os.real_path 2022-03-10 11:24:46 +02:00
Nick Treleaven
4bea35b028
vlib/arrays: fix copy to not use memcpy for array, map, string (#13703) 2022-03-10 01:30:51 +03:00
JalonSolov
de2fc87995
os: handle trailing backslash on windows path when quoting (#13705) 2022-03-10 01:29:37 +03:00
Nick Treleaven
7231a3f135
vlib: add mut for the first parameter of builtin.copy, arrays.copy and crypto (#13702) 2022-03-09 20:26:00 +02:00
yuyi
4c33003f86
checker: check error for infix compare optional (#13701) 2022-03-09 20:20:21 +02:00
Nick Treleaven
54de04a916
arrays: improve fold/reduce docs (#13700) 2022-03-09 20:04:49 +02:00
yuyi
6c7243f2f7
checker: remove redundant 'c.expected_type = ast.void_type' (#13687) 2022-03-09 12:33:23 +02:00
Mihai Galos
d5b087de10
vlib: add a datatypes.fsm module (#13668) 2022-03-09 12:14:54 +02:00
pancake
3f1e232c9b
native: support comparing two idents and avoid printing idents (#13686) 2022-03-08 19:52:30 +02:00
Delyan Angelov
10474f35f6
net.http: clarify error message in Request.ssl_do 2022-03-08 18:17:34 +02:00
Delyan Angelov
137fade014
Makefile: support CFLAGS and LDFLAGS for the vc/v.c to v bootstrap. 2022-03-08 14:48:20 +02:00
yuyi
3fe8204062
checker: fix if expr with enum value (#13685) 2022-03-08 11:55:17 +02:00
Delyan Angelov
f6aba9a3fe
util: make check_module_is_installed more robust to ~/.vmodules paths with spaces 2022-03-08 11:33:03 +02:00
yuyi
cea3149369
checker: fix match expr with enum type value (#13683) 2022-03-08 09:50:17 +02:00
Nick Treleaven
17fcc788f2
arrays: add generic copy fn (#13677) 2022-03-08 09:44:04 +02:00
Delyan Angelov
beb1b8ce1b
tools: add v scan file.v 2022-03-07 18:25:38 +02:00
pancake
b20c911d3e
native: generate relocatable ELFs and support relative strings (#13671) 2022-03-07 18:24:01 +02:00
Subhomoy Haldar
0fd4c699dd
tools: modify .gitattributes to categorize *.vsh and v.mod files properly (#13674) 2022-03-07 18:15:18 +02:00
yuyi
e6270b05dc
checker: check unsigned integer compared with negative value (#13670) 2022-03-07 10:26:40 +02:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Delyan Angelov
f74b65b63f
docs: change term.input to term.ui in vlib/term/README.md 2022-03-06 15:50:22 +02:00
yuyi
c8e33ad219
cgen: fix error for array of reference auto_str (#13665) 2022-03-06 12:15:31 +02:00
Delyan Angelov
b0f651bf81
sync: enable tcc compilation of sync programs on Amazon Linux 2 (and other Red Hat distros like CentOS) by default (#13664) 2022-03-05 19:13:47 +02:00
yuyi
6380b9eb15
cgen: minor cleanup of struct.v (#13661) 2022-03-05 17:19:20 +02:00
yuyi
22fda7c3dd
cgen: fix error for time struct init with update (#13660) 2022-03-05 13:28:48 +02:00
yuyi
8136157f87
checker: fix error for 'or expr with nested match expr' (#13658) 2022-03-05 13:06:08 +02:00
Ned
0e5ae7126f
x/json2: fix decoder errors (#13655)
* x/json2: fix decoder errors, refactoring

* x/json2: add error-catching tests

* x/json2: add missing docs

* x/json2: fmt
2022-03-05 13:02:43 +02:00
kahsa
3ef437e679
sokol: reorder and add missing funcs (#13652) 2022-03-04 14:39:38 +03:00
Ned
437fa02f27
x.json2: add customized JSON output capability via Encoder (#13654) 2022-03-04 14:39:23 +03:00
Hunam
74d5106e8f
cli: print cli errors in red where possible (#13647) 2022-03-04 12:28:11 +02:00
yuyi
f70e5bd69b
parser: check assign expr with undefined variable (#13653) 2022-03-04 10:33:14 +02:00
ChAoS_UnItY
63b41e67fa
v.parser: change body_start_pos to function declaration's lcbr, resolve #13642 (#13646) 2022-03-03 19:51:27 +02:00
Devin Bayer
9cc73fd0f8
docs: fix the .vsh doc example (#13645) 2022-03-03 19:47:05 +02:00
Delyan Angelov
4331d6dea0
v.builder: only add /DEBUG:FULL when -cflags does NOT contain custom /DEBUG options (#13643) 2022-03-03 16:47:41 +02:00
yuyi
a98eebde7f
checker: add a notice for potentially incorrect smartcasts (#13644) 2022-03-03 16:36:40 +02:00
kahsa
1e76cccd48
doc: add a struct reference example (#13638) 2022-03-03 13:20:49 +02:00
yuyi
ac1b31dbba
checker: fix error for array of interface init in for_in (#13636) 2022-03-03 12:32:55 +02:00
Delyan Angelov
3364f2aadf
cgen: use ADDR for sumtype conversion instead of HEAP (fix regression after 7f8f571) 2022-03-03 11:44:24 +02:00