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

1324 Commits

Author SHA1 Message Date
77d5fcca59 urllib: a temporary autofree fix 2021-03-15 21:12:11 +01:00
7f0c8d1eec builtin: fix a compilation warning with -d debug_malloc 2021-03-15 17:37:06 +02:00
446631ceb5 checker: fixed array cannot implicitly convert to fooptr (again) (#9302) 2021-03-15 15:55:07 +02:00
2f4a49994a builtin: implement support for -d debug_malloc too 2021-03-14 18:29:00 +02:00
d65ad68e77 builtin: add 0 terminators for strings returned by .to_lower, .to_upper, utf32_to_str_no_malloc/2 2021-03-14 18:21:45 +02:00
b6d089b605 v.depgraph: ensure v -d debug_realloc -o v cmd/v works 2021-03-14 16:15:33 +02:00
125be84e3d builtin: fix -d debug_realloc, add realloc_data/3 2021-03-14 14:54:35 +02:00
ddbe57e00a v test-cleancode: ensure more .v files are kept vmft-ed 2021-03-14 12:17:31 +02:00
eebc8a9d7a builtin: cleanup option names (part 2) (#9294) 2021-03-14 12:11:52 +02:00
69f1e7c9c3 v: fixes for v -autofree -o v2 cmd/v 2021-03-14 09:37:38 +02:00
64d0006ff9 jsgen: fix string and array for loops and improve casting (#9295) 2021-03-14 08:20:01 +02:00
9ed9e7aff0 builtin: cleanup option names (part 1) (#9293) 2021-03-14 01:54:46 +01:00
e9797c618a all: implement error interfaces (#9291) 2021-03-13 18:13:50 +01:00
0c33656a19 ci: fix failing option_print_errors_test.v 2021-03-12 20:36:19 +02:00
be409b52e9 builtin: prepare for error interfaces (#9043) 2021-03-12 20:05:05 +02:00
d7049ae2da os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
a1e0f2bc46 gen: add argument names to compile-time method struct (#9174) 2021-03-07 14:28:43 +01:00
07a1a9b84d builtin: use fprintf to print to stderr on Android (#9130) 2021-03-05 19:12:42 +02:00
2d73411396 checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
80356edd8c fmt: combine simple attributes into a single line (#9120) 2021-03-05 07:17:57 +02:00
65e888230a jsgen: object equality checks, optimise casting and start builtin implementation (#9068) 2021-03-04 14:02:16 +01:00
2b9ffbda42 cgen: fix array_sort by different order of a/b (#9106) 2021-03-04 11:19:02 +01:00
488848e904 builtin: simplify copy/2 2021-03-02 18:14:42 +02:00
b712af56fd all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
ce115dcbe0 builtin: correct error underline for unicode wide chars (#9010) 2021-03-01 00:18:02 +01:00
d63b7bc35a all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
b9a381f101 all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +03:00
20f9bdfa8e os: fixes for os.input(), os.get_raw_stdin(), os.get_raw_line() in case of stdin EOF 2021-02-27 20:02:36 +02:00
23f231ee61 builtin: tag array methods unsafe: *_many, grow_len, pointers (#8983) 2021-02-26 22:55:09 +01:00
8033203ef6 builtin: add an Option2 struct (#8890) 2021-02-22 18:44:15 +02:00
15daeaeafa cgen: add fixed array bounds checking for non-literal index (#8832) 2021-02-22 14:54:24 +02:00
f54c1a5cc2 all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
9a744b6750 cgen: fix in map_literal (fix #8868) (#8871) 2021-02-21 11:54:30 +02:00
c190b6a131 vlib: remove older deprecated functions (#8864) 2021-02-20 20:42:55 +02:00
6a752512b2 os: fix os.real_path on Windows (#8822) 2021-02-19 11:20:06 +02:00
bf6e9ff95a Revert "parser: make duplicated functions an error (#8792)"
This reverts commit 21bf8fe14e.
2021-02-18 09:02:56 +02:00
21bf8fe14e parser: make duplicated functions an error (#8792) 2021-02-17 20:50:10 +01:00
4ccf991f61 checker: warn when casting a fixed array (use &arr[0] instead) (#8787) 2021-02-17 20:45:11 +01:00
177c8bfc78 builtin/array: merge array_eq_test.v into array_test.v (#8796) 2021-02-17 20:44:44 +01:00
843de10442 parser,gen: fix `arr << map[key] using map_get_and_set_1, leading to double free 2021-02-16 16:39:31 +02:00
486bf8517f builtin: fix typo (#8747) 2021-02-15 17:54:07 +02:00
4a0367a63c vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00
b07f373433 builtin: make 5 C functions trusted, tweak signatures (#8730) 2021-02-14 19:37:32 +01:00
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
e4f15605c0 checker: reject void type condition (#8737) 2021-02-14 07:33:24 +01:00
84a16d8684 map: add move method (#8660) 2021-02-12 02:02:33 +02:00
0f92485698 builtin: fix typo in builtin/array.v (#8658) 2021-02-09 17:04:47 +02:00
9e751f72c4 doc, fmt: use map{key: value} syntax for map literals (#8623) 2021-02-08 16:57:42 +02:00
473cd1d416 fmt: single line ternary return (#8605) 2021-02-08 00:28:46 +01:00
bfd0bd1fb4 builtin: doc chan.v channel stub (#8577) 2021-02-07 12:42:24 +02:00