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

226 Commits

Author SHA1 Message Date
0f92485698 builtin: fix typo in builtin/array.v (#8658) 2021-02-09 17:04:47 +02:00
44ab0154b2 builtin: document last of array.v (#8575) 2021-02-05 16:51:45 +01:00
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
242c5760f1 array: fix array_clone (fix #8220) (#8238) 2021-01-21 10:17:00 +01:00
b74690cbec builtin, checker, cgen: implement x = a[k] or { ... } for maps and arrays (#8193) 2021-01-19 06:06:57 +01:00
ac2c3847af all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
254df0ca62 fmt: improve string quotes (#8075) 2021-01-13 06:05:27 +01:00
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
775d16cce3 array: remove redundant index method in array.v (#7523) 2020-12-25 17:21:23 +02:00
214290d55b fmt: add a space around single-line unsafe expressions (#7505) 2020-12-23 19:13:42 +01:00
cd30dcc287 builtin: make array.ensure_cap/1 more robust 2020-12-19 21:36:08 +02:00
553ecf63e7 vlib/io: fix reader bugs, make read_all take a config struct (#7361) 2020-12-16 18:22:26 +01:00
b2685c6060 builtin: add more docs to array.v (#7194) 2020-12-15 10:31:35 +02:00
f57c7032b4 ci: fix sanitizers and add -fsanitize=undefined (#7306) 2020-12-14 06:34:47 +01:00
b99ea332f0 cgen,builtin: fix sort for []u64 2020-12-05 23:14:19 +02:00
f8af866f76 builtin: make v_realloc use int parameter instead of u32 (#7080) 2020-12-02 15:35:11 +02:00
ed08d96932 builtin: remove old type prefixes, add a few missing documentations, add missing punctuation (#7037) 2020-11-30 18:51:00 +01:00
1891f55c72 builtin: add voidptr.vbytes(len) and byteptr.vbytes(len) 2020-11-27 18:18:46 +02:00
f8827c3fe5 builtin: clone the strings correctly in array.push 2020-11-22 13:22:42 +01:00
cd2a2cef25 vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
ff93e8afee builtin: eliminate the usage of _us32_eq for frequent builtin array operations 2020-10-30 14:11:07 +02:00
c2e9be5a45 cgen: use even more efficient array.delete_last() 2020-10-23 23:04:22 +02:00
7da1afa140 all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests 2020-10-15 12:32:28 +02:00
624f22e27e all: mutability check (part 1); enable mutable sumtype args 2020-09-22 05:28:29 +02:00
6921d46185 all: rune type for `` literals 2020-08-27 06:46:37 +02:00
e5e31f7210 sort: handle .sort(a.field > b.field) 2020-08-12 06:11:40 +02:00
4bc0dde413 all: new .sort(a < b) syntax 2020-08-12 05:54:51 +02:00
2dd90de993 parser: error on [unsafe_fn] (#6090) 2020-08-09 12:22:11 +03:00
a74cbf55c7 checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
105a0e015e checker: warn if unsafe method called outside unsafe block (#5863) 2020-07-17 19:14:12 +02:00
f5e6a83a05 builtin: unsafe vlib pointer indexing (#5836) 2020-07-15 21:56:50 +02:00
cf7d03bda6 builtin: implement array.pop() 2020-07-14 20:01:39 +03:00
ab3c1f2a08 prealloc: skip frees for now 2020-07-11 13:22:18 +02:00
fae601fe39 array: add reverse_in_place for performance (#5798) 2020-07-11 13:17:11 +02:00
649821be4c all: use v_realloc 2020-07-11 12:37:54 +02:00
0b49e4db1c v/checker.v: disallow pointer arithmetic for InfixExpr outside unsafe {} (#5640) 2020-07-03 18:10:10 +02:00
dc8b82e9a4 array: fix multiple array clone 2020-06-19 13:32:55 +02:00
930c3d73c1 cgen: fix arr.insert(0, [1,2,3]) and arr.prepend([1,2,3]) 2020-06-18 12:08:11 +02:00
b4ad174b7f array: fix multiple array.repeat index error 2020-06-12 11:42:26 +02:00
ff1437fc5a cgen: fix multi_array index issue 2020-06-12 01:24:25 +02:00
8f9f426479 vdoc: plaintext fixes 2020-06-10 11:14:03 +02:00
013fdb8a4b checker: restrict numeric promotions to cases where no data is lost 2020-05-27 05:42:48 +02:00
2adfbfc830 builtin: fix a bug in array_delete 2020-05-24 11:10:41 +03:00
2635be511f all: re-apply C++ support 2020-05-18 21:38:06 +02:00
07a78b2843 Revert "all: C++ compiler support"
This reverts commit 9a237c3e82.
2020-05-18 17:05:48 +02:00
9a237c3e82 all: C++ compiler support 2020-05-18 15:51:36 +02:00
7f4cf08516 parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
9b6ee8e77d cgen: array_init_with_default 2020-05-16 15:21:37 +02:00
722a2c71c3 builtin: new_array: cap should not be less than len 2020-05-07 22:41:41 +02:00
f638caef39 compiler: v -autofree can now compile itself 2020-05-06 19:03:51 +03:00