Uwe Krüger
|
41982053f1
|
builtin: make array.delete() reallocate, provide .delete_many() (#10889)
|
2021-07-21 20:55:32 +03:00 |
|
Delyan Angelov
|
aea23e8a40
|
strconv: fix fxx_to_str_l_parse/fxx_to_str_l_parse_no_dot returning s without cloning
|
2021-06-19 07:48:46 +03:00 |
|
Delyan Angelov
|
be3702dcb7
|
builtin: uncomment already working test functions in array_test.v
|
2021-06-14 10:13:59 +03:00 |
|
Uwe Krüger
|
a2243054a5
|
builtin: fix memory corruption in array .clone() and .repeat() (#10394)
|
2021-06-08 23:23:28 +03:00 |
|
yuyi
|
7f81702d81
|
builtin: optimize array sort (#9570)
|
2021-04-03 12:16:18 +02:00 |
|
yuyi
|
3637bac716
|
cgen: fix rune array sort (#9561)
|
2021-04-02 16:28:27 +02:00 |
|
Delyan Angelov
|
ea3d1405ee
|
ci: fix failing -Werror job with tcc
|
2021-03-19 09:34:41 +02:00 |
|
Delyan Angelov
|
09802707b1
|
tests: move rlock and shared array tests from builtin to sync
|
2021-03-18 19:51:11 +02:00 |
|
yuyi
|
2b9ffbda42
|
cgen: fix array_sort by different order of a/b (#9106)
|
2021-03-04 11:19:02 +01:00 |
|
yuyi
|
177c8bfc78
|
builtin/array: merge array_eq_test.v into array_test.v (#8796)
|
2021-02-17 20:44:44 +01:00 |
|
Delyan Angelov
|
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 |
|
Nick Treleaven
|
9e751f72c4
|
doc, fmt: use map{key: value} syntax for map literals (#8623)
|
2021-02-08 16:57:42 +02:00 |
|
BigBlack
|
c5e7956eb5
|
checker: fix generic_mutable_arrays in functions (#8445)
|
2021-01-30 18:35:03 +01:00 |
|
Lukas Neubert
|
75d85403a6
|
fmt: better ternary concat wrapping (#8379)
|
2021-01-28 11:23:48 +01:00 |
|
zakuro
|
22847d1ec3
|
fmt: assert (a == b) -> assert a == b (#8351)
|
2021-01-26 10:36:21 +01:00 |
|
Delyan Angelov
|
dbaccd4272
|
vfmt: shorten main.const_name to just const_name
|
2021-01-25 20:57:33 +02:00 |
|
Alexander Medvednikov
|
29d6e40f29
|
all: vfmt (new const rule)
|
2021-01-24 10:54:27 +01:00 |
|
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
|
yuyi
|
242c5760f1
|
array: fix array_clone (fix #8220) (#8238)
|
2021-01-21 10:17:00 +01:00 |
|
Delyan Angelov
|
d9532eda30
|
checker: error on a.slice(x,y) outside builtin
|
2021-01-19 15:55:52 +02:00 |
|
yuyi
|
1d28c4de2a
|
cgen: fix multi fixed arrays with default init (fix #8038) (#8064)
|
2021-01-13 22:57:33 +02:00 |
|
yuyi
|
39bb6f0491
|
array: fix array of multi filter/map in one assignment (fix #7858) (#7976)
|
2021-01-10 21:08:45 +01:00 |
|
yuyi
|
704f38d87f
|
parser: fix multi fixed arrays init (#7996)
|
2021-01-10 06:58:31 +01:00 |
|
Uwe Krüger
|
cbe7740d97
|
fmt: do not generate import statements for auto imports (#7966)
|
2021-01-08 17:42:40 +01:00 |
|
yuyi
|
34c89258a4
|
cgen: fix array of array/map init (fix #7597) (#7671)
|
2020-12-29 11:50:25 +01:00 |
|
Swastik Baranwal
|
2795f929fa
|
checker: update check for arr=arr1 (#7651)
|
2020-12-28 18:35:34 +01:00 |
|
yuyi
|
9631eac9c5
|
cgen: fix array.index() of ref struct (#7652)
|
2020-12-28 18:33:57 +01:00 |
|
yuyi
|
d46b930c71
|
cgen: fix in array_of_ref_structs (fix #7623) (#7640)
|
2020-12-28 12:29:56 +02:00 |
|
yuyi
|
07459a77e3
|
cgen: fix gen_array_equality_fn() (#7633)
|
2020-12-28 12:26:50 +02:00 |
|
Swastik Baranwal
|
d87011ab78
|
cgen: fix generic contains method (#7618)
|
2020-12-27 20:07:53 +02:00 |
|
yuyi
|
132807d5d1
|
cgen: implement generic array.index (#7501)
|
2020-12-23 19:10:16 +01:00 |
|
yuyi
|
70c136441b
|
cgen: fix in array of struct error (fix #7452) (#7463)
|
2020-12-23 02:32:19 +01:00 |
|
yuyi
|
21cd765eaa
|
cgen: fix in multi_array, generate .contains() (fix #7427) (#7448)
|
2020-12-21 16:59:43 +01:00 |
|
Alexander Medvednikov
|
6bf21c300a
|
checker: do not allow arr1=arr2 without cloning
|
2020-12-20 15:33:55 +01:00 |
|
Alexander Medvednikov
|
875f7a77a9
|
checker: arr1=arr2 warning
|
2020-12-20 10:42:46 +01:00 |
|
Alexander Medvednikov
|
4a5fb854e0
|
array: vfmt array_test.v
|
2020-12-20 10:34:19 +01:00 |
|
yuyi
|
e4973782b1
|
cgen: fix multi_array prepend/insert (#7381)
|
2020-12-19 07:28:15 +01:00 |
|
LilEnvy
|
0aacc9a80a
|
array: [].map(fn...) return type can be different than original type (#7300)
|
2020-12-13 03:29:48 +01:00 |
|
Uwe Krüger
|
fd689f5fdd
|
cgen: optimize array op assign (#7178)
|
2020-12-07 17:13:19 +01:00 |
|
Enzo
|
d8b8aca51e
|
gen: fix arr.last().field (#7076)
|
2020-12-02 04:35:00 +01:00 |
|
Delyan Angelov
|
1891f55c72
|
builtin: add voidptr.vbytes(len) and byteptr.vbytes(len)
|
2020-11-27 18:18:46 +02:00 |
|
Alexander Medvednikov
|
f8827c3fe5
|
builtin: clone the strings correctly in array.push
|
2020-11-22 13:22:42 +01:00 |
|
Henrixounez
|
8152b86652
|
checker: detect correct len expression for multidimensional array init (#6521)
|
2020-10-02 03:12:33 +02:00 |
|
Alexander Medvednikov
|
c01d17fcc4
|
tests: fix array_test.v
|
2020-08-27 13:12:04 +02:00 |
|
Maciej Obarski
|
e8e0d9fa42
|
all: [direct_array_access] tag (#6203)
|
2020-08-24 09:04:50 +02:00 |
|
Nick Treleaven
|
bab5c21224
|
parser: warn when fixed-size ArrayInit doesn't have trailing {} . (#6137)
|
2020-08-16 04:54:05 +02:00 |
|
Alexander Medvednikov
|
f8be2110ec
|
sort: fix sorting by struct fields
|
2020-08-12 18:43:41 +02:00 |
|
Alexander Medvednikov
|
e5e31f7210
|
sort: handle .sort(a.field > b.field)
|
2020-08-12 06:11:40 +02:00 |
|
Alexander Medvednikov
|
4bc0dde413
|
all: new .sort(a < b) syntax
|
2020-08-12 05:54:51 +02:00 |
|
Delyan Angelov
|
cf7d03bda6
|
builtin: implement array.pop()
|
2020-07-14 20:01:39 +03:00 |
|