Commit Graph

12475 Commits (weekly.2022.10)

Author SHA1 Message Date
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
yuyi 288b13b51d
all: cleanup smartcasts in the compiler (#13639) 2022-03-03 10:48:31 +02:00
Delyan Angelov 4e7db5bab0
v.builder: streamline get_os_cflags/0, use pref.os_from_string to centralise string -> v.pref.OS conversion 2022-03-03 10:43:50 +02:00
ChAoS_UnItY 6a3d34ae11
checker: fix #13626, when unwrapped type is fixed array, and selector expr is 'len' (#13627) 2022-03-02 20:46:18 +02:00
Delyan Angelov 57c6454656
ci: bump timeout-minutes to 30 for 'Bootstraping works' job 2022-03-02 19:51:40 +02:00
yuyi 36e80266e6
ast: fix error for 'for smartcast' - part 2 (#13635) 2022-03-02 16:01:20 +02:00
yuyi ffe6ff3cc8
cgen: fix error for print smartcast variable (#13634) 2022-03-02 12:32:54 +02:00
yuyi 22017ff8f4
parser: fix error for 'for smartcast' - part 1 (#13629) 2022-03-02 12:18:03 +02:00
yuyi 7f8f571ed2
cgen: fix error for optional cast to interface (#13623) 2022-03-01 19:21:55 +02:00
kahsa 6d57315aca
net: fix html dom debug print (#13625) 2022-03-01 19:20:40 +02:00
Ikko Ashimine aa633dab41
utf8: fix typo in utf8_util.v (#13624) 2022-03-01 19:06:48 +02:00
Delyan Angelov fd91811fe2
v.util: add set_source_for_path/2 to enable external tools to use util.formatted_error on pathless sources 2022-03-01 18:55:25 +02:00
yuyi 996bd41ce8
checker: simplify for smartcast in for_stmt() (#13619) 2022-03-01 12:31:48 +02:00
Joe Conigliaro 3b6e122d9d
all: comptime_call - update tmpl scope vars with caller scope vars after their properties got updated in checker 2022-03-01 02:13:29 +11:00
yuyi 0028e557f9
checker: cleanup smartcast in checker.v (#13618) 2022-02-28 17:06:37 +02:00
yuyi 9a2df0df0e
cgen: fix fn mut argument of interface type (#13616) 2022-02-28 13:31:04 +02:00
yuyi 013589e9fe
parser: minor cleanup in global_decl() (#13617) 2022-02-28 13:30:17 +02:00
Subhomoy Haldar a0d9e6e1c2
rand: extend PRNG interface, add buffering support (#13608) 2022-02-28 13:17:54 +02:00
yuyi efeb3e04da
ast: add table.is_sumtype_or_in_variant() (#13615) 2022-02-28 11:38:20 +03:00
yuyi 81c787ef91
checker: fix match expr with assign sumtype variable (#13614) 2022-02-28 11:37:59 +03:00
yuyi bc16c61f6f
parser: check using 'mut' on fn_decl return type (#13610) 2022-02-27 14:23:43 +02:00
yuyi 0fb1eaef04
parser: check the redefinition of built-in IError (#13606) 2022-02-26 09:52:40 +02:00
Mihai Galos 4215bb125c
examples: improve the sendbus example (#13604) 2022-02-26 09:50:44 +02:00