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

10014 Commits

Author SHA1 Message Date
6cdc7646b8 gg: add quit fn (#10223) 2021-05-27 17:56:18 +03:00
8828054e5b builtin: fix arrays/slices memory bug (#10219) 2021-05-27 15:50:06 +03:00
25645dbc44 docs: fix channel select example (#10213) 2021-05-27 12:47:13 +03:00
539594bfce sqlite: add error struct for optional result (#10209) 2021-05-27 12:45:34 +03:00
d5cacd1e5f ast: use string builder for StringInterLiteral.str() (#10207) 2021-05-27 10:17:51 +03:00
9ee1d8c848 doc: decrease letter count for search to 2 (#10214) 2021-05-27 10:17:25 +03:00
607dbd36d7 parser: set is_public of TypeSymbol for fn type decl (#10212) 2021-05-27 10:17:08 +03:00
7c0cd2f41d checker, cgen: fix match with complex sumtype exprs (#10215) 2021-05-27 10:13:50 +03:00
2abbbcc02d checker: allow int <=> enum usage in c2v'ed code 2021-05-26 11:00:57 +03:00
6c40781d84 ci: vfmt cmd/tools/fast/fast.v 2021-05-26 09:49:22 +03:00
9ea7eda9c0 tools/fast: -usecache for hello world 2021-05-26 09:33:42 +03:00
2dd1d3fcbb all: string interpolation code cleaning (#10204) 2021-05-26 09:30:08 +03:00
5e26273529 cgen: use __new_array instead of __new_array_with_default for empty vargs 2021-05-26 15:48:48 +10:00
560301dbfe cgen: dont preallocate zero length with capacity of 1 2021-05-26 14:51:20 +10:00
cf07375d1b checker: fix multi types generic struct init (#10201) 2021-05-25 19:51:55 +03:00
39c376bb5b builtin,gen: use operator overloading on ustring (#10197) 2021-05-25 14:51:48 +03:00
0d25106b4d cmd/tools/vpm: improve v show (#10198) 2021-05-25 14:30:48 +03:00
4217f05146 checker/ci: workaround bug causing errors with -usecache (sumtype field access) & add more -usecache tests (#10199) 2021-05-25 12:28:18 +03:00
5b8402bccb parser: fix mod_path_to_full_name to be compliant with --path option (#10149) 2021-05-25 07:46:40 +03:00
f3274700cd cgen: fix generic struct to string (#10191) 2021-05-25 07:45:54 +03:00
306c16f0fa fmt: don't break indexing in string interpolation. (#10195) 2021-05-25 07:45:32 +03:00
7d210da9a5 checker: minor refactor in check_basic() (#10196) 2021-05-25 07:45:05 +03:00
0e6f0c1de0 checker: check generic struct init without type parameter (#10193) 2021-05-25 06:15:05 +03:00
da88235bdc vpm: addd a show command (#10186) 2021-05-24 15:17:57 +03:00
13d1d28db1 v.parser: fix -autofree for script mode programs that do not have explicit fn main(){} 2021-05-24 14:42:09 +03:00
ce7f78522d builtin: remove former string operator methods (#10184) 2021-05-24 14:05:29 +03:00
db848ed314 tools/fast: wipe cache before measuring 2021-05-24 12:12:29 +03:00
886f69bfcf all: use operator overloading on strings (p. 2) (#10183) 2021-05-24 11:38:31 +03:00
40f11b265e ci: run only ./v -d network test vlib/net in periodic.yml 2021-05-24 11:26:49 +03:00
c0b1f99935 checker: allow operator overloading on strings (p. 1) (#10182) 2021-05-24 10:23:57 +03:00
d8d05e0106 all: new string interpolation in pure V (#10181) weekly.2021.21 2021-05-24 05:20:45 +03:00
603e57745f builder: use some -cstrict flags only with clang (gcc does not understand them) 2021-05-23 21:00:48 +03:00
ded8897671 ci: add vab job compiling v graphical examples (#10171) 2021-05-23 18:00:56 +03:00
eb5ac23988 checker: fix match expr with if expr (fix #10177 #10178) (#10179) 2021-05-23 17:59:57 +03:00
7f12bfa563 builtin: optimise sx == sy in the case where strings have common prefixes 2021-05-23 17:22:57 +03:00
e9fa53b0c1 v.parser: let fn_decl use 1 loop, instead of multiple p.attrs.contains calls 2021-05-23 16:54:12 +03:00
bf3af40f13 v.markused: support ./v -skip-unused -freestanding run vlib/os/bare/bare_example_linux.v too 2021-05-23 16:25:34 +03:00
5efd8c62d0 ci: fix tests-sanitize-undefined-clang 2021-05-23 15:13:53 +03:00
a27e7f7675 builtin: remove commented code; improve print_backtrace with tcc 2021-05-23 12:37:40 +03:00
a08cbd364a v.checker: improve C.printf(abc) deprecation precision 2021-05-23 12:18:21 +03:00
ae9f8627fc checker: simplify generic structs (#10167) 2021-05-23 05:54:58 +03:00
79b97fa361 fmt: keep names of parameters in anonymus function (#10173) 2021-05-23 05:54:39 +03:00
efa07cbcbf native: initial support for linux-arm64 (hello world only for now) (#10176) 2021-05-23 05:54:28 +03:00
4b11e59bb0 Makefile: honor local=1 in the fresh_tcc make target (#10172) 2021-05-22 21:08:28 +03:00
bc01de2181 ast: mark ast.File{} with [heap], and use []&ast.File consistently 2021-05-22 19:06:55 +03:00
e512caf8f5 vfmt: do not error on field [fsize]Type, where fsize is from another .v file 2021-05-22 16:42:38 +03:00
7c0f8f7644 builtin: a small optimization in string.replace() 2021-05-22 14:35:36 +03:00
565dbc4051 checker: fix inferring method receiver types (#10166) 2021-05-22 11:04:19 +03:00
104d9a7c8a net: cleanup #include directives 2021-05-22 10:53:19 +03:00
bf97faf32a os: simplify os.read_bytes_into_newline to fix compilation on freebsd 2021-05-22 07:48:12 +03:00