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

14068 Commits

Author SHA1 Message Date
Swastik Baranwal
8a38bc2324
fmt: keep volatile qualifier in global declarations (#15947) 2022-10-02 10:50:16 +03:00
lemon
a7ad64033e
native: support assigning to struct fields (#15938) 2022-10-01 14:42:26 +03:00
shove
5dae5b2a92
checker: fix references for alias type, that could still be uninitalized (fix #15935) (#15940) 2022-10-01 14:40:55 +03:00
Delyan Angelov
17b07273aa
cbuilder: remove forgotten dump(), simplify o_postfixes 2022-10-01 14:00:35 +03:00
Delyan Angelov
90599c7f85
cbuilder: fix hardcoded v_parallel for -parallel-cc, use a sync.pool for the compilation threads 2022-10-01 13:50:47 +03:00
yuyi
aa02a9cd3b
checker: fix checking mismatch of the fn array decompose argument (#15934) 2022-10-01 13:25:24 +03:00
yuyi
f6a68003d3
ci,parser: fix error in v_parser_test.v (#15936) 2022-10-01 13:18:46 +03:00
ChAoS_UnItY
fe597b7172
encoding.utf8: add is_number (#15931) 2022-10-01 11:01:51 +03:00
Alexander Medvednikov
3d2588f101 cgen: parallel cc for much faster compilation using all CPU cores 2022-10-01 10:04:06 +03:00
yuyi
be7b0f1dc5
checker: check mismatch of the fn array decompose argument (#15929) 2022-10-01 06:50:28 +03:00
Spydr
43d0d0f322
native: skip linking when no library functions get called (#15930) 2022-10-01 06:47:16 +03:00
lemon
d78dfabfe0
native: support casting integer to/from enum values (#15928) 2022-09-30 15:53:17 +03:00
yuyi
d694a26f39
checker, cgen: fix go print (#15927) 2022-09-30 15:50:54 +03:00
shove
b6bbbcf2e7
cgen: fix error when defer inside comptime if {} else {} (fix #15891) (#15911) 2022-09-30 10:10:34 +03:00
yuyi
659bd1a428
ast, checker, cgen: fix generic fn/method with comptime for/if (fix #15905) (#15910) 2022-09-30 09:40:30 +10:00
shove
63578e63c6
fmt: fix comments between for and { is wrong (fix #15918) (#15919) 2022-09-29 15:26:27 +03:00
Tim Marston
711bb6def7
gg: rename Context.set_cfg() -> Context.set_text_cfg() (#15904) 2022-09-29 15:24:16 +03:00
Larpon
2d08950e4c
changelog: add entry for #15912 no need for [console] on Windows (#15924) 2022-09-29 15:20:19 +03:00
Larpon
816e9319d7
cgen: remove the need for [console] for gg or ui programs on windows (#15912) 2022-09-29 15:02:50 +03:00
Mehmet Ali
79a473f8ec
vweb: fix a typo in the README.md (#15913)
* Fix typo

* Update vlib/vweb/README.md

Co-authored-by: JalonSolov <JalonSolov@gmail.com>

Co-authored-by: Delyan Angelov <delian66@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
2022-09-29 14:29:02 +03:00
Delyan Angelov
6fcab013eb
os.notify: fix sizeof(C.epoll_event) == 12 with tcc (was 16, while with gcc/clang it is 12) 2022-09-29 13:27:07 +03:00
Delyan Angelov
3b420a8d7f
net.urllib: add a URL.debug() method, returning the values of all the URL's fields 2022-09-29 10:38:11 +03:00
shove
e2cf403ca1
fmt: fix error when comments inside if and condition. (fix #15914) (#15915) 2022-09-29 09:14:11 +03:00
Swastik Baranwal
1ff1f23d9a
parser: disallow using attributes on embedded structs (#15901) 2022-09-28 17:15:33 +03:00
shove
1ac3f3d8dc
parser: fix pos error when define reference array type (fix: #15907) (#15909) 2022-09-28 17:13:29 +03:00
TSURUTA Takumi
e72d259903
change Values struct to public (#15902) 2022-09-28 16:21:33 +03:00
yuyi
be6741195d
parser: fix formating fn with variadic argument (#15900) 2022-09-28 10:55:36 +03:00
Tim Marston
66249b8c45
gg: radius_to_segments() should use Context.scale (#15906) 2022-09-28 10:40:40 +03:00
spaceface
b85a535bcd
cgen: support closures on riscv (#15898) 2022-09-28 10:34:26 +03:00
yuyi
bdf4c679da
cgen: minor cleanup in method_call() (#15894) 2022-09-27 20:05:04 +03:00
yuyi
57e4ba4cd0
checker: fix generics interface with generic sumtype (fix #15883) (#15892) 2022-09-27 16:33:34 +03:00
lemon
f1216090f7
native: support enum (#15895) 2022-09-27 13:31:54 +03:00
Joe Conigliaro
51a92d170f
encoding.base32: vfmt code 2022-09-27 16:29:44 +10:00
Joe Conigliaro
5415c4f75e
encoding.base32: initial implementation 2022-09-27 16:25:50 +10:00
yuyi
385acb448a
cgen: fix dumping c structs (fix #15878) (#15885) 2022-09-26 10:53:21 +03:00
yuyi
959eeaf1f3
parser: check undefined variable in if guard (#15882) 2022-09-26 10:17:39 +03:00
kahsa
8623186d31
doc: add links to vlib doc - array and map (#15881) 2022-09-26 10:06:54 +03:00
Dominik Pytlewski
721328ef58
os: fix os.read_file and os.read_bytes for 0 sized /proc/ files on Linux (fix #15852) (#15853) 2022-09-25 22:54:46 +03:00
Nicolas VENTER
50820105a1
docs: call_v_from_c example (#15844) 2022-09-25 22:52:40 +03:00
Subhomoy Haldar
7f23abbf8c
docs: document the [noinit] attribute with an example (#15876) 2022-09-25 19:36:01 +03:00
Spydr
3674baab23
native: support escape sequences in string literals (#15877) 2022-09-25 17:47:49 +03:00
Tim Marston
089e89f865
gg: improve arc/slice drawing (#15856) 2022-09-25 15:22:10 +03:00
shove
58f7342465
cgen: fix array appending when array is used as fn parameter (fix: #15855) (#15860) 2022-09-25 13:05:54 +03:00
Delyan Angelov
6637db2d6d
tools: fix sporadic CI failures on the doom-regressions job due to v gret 2022-09-25 11:27:13 +03:00
yuyi
50fb5de926
checker: fix dumping match expr (#15869) 2022-09-25 11:21:14 +03:00
Delyan Angelov
5cc9d7b347
checker: remove too vague notice about signed expressions while returning unsigned number types 2022-09-25 11:03:23 +03:00
yuyi
c3548c9413
tests: omit testsuite_begin/end() optional (#15871) 2022-09-25 10:29:25 +03:00
Spydr
947a1f2c65
native: add printing support for boolean and string variables (#15868) 2022-09-25 10:28:26 +03:00
Delyan Angelov
f338dec5c6 ci: fix compilation on FreeBSD (C.feof is a macro there, that expands to direct field access) 2022-09-24 10:17:32 +00:00
yuyi
d624ad50a7
os: fix file.read() (#15861) 2022-09-24 08:58:55 +03:00