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

builtin: add drafts for __new_array_noscan, __new_array_with_default_noscan, __new_array_with_array_default_noscan for array_notd_gcboehm_opt.v

This commit is contained in:
Delyan Angelov 2022-07-12 10:00:58 +03:00
parent 62d800a775
commit a4e0e0fa57
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -6,5 +6,13 @@ module builtin
// this is needed in `string.v`
fn __new_array_noscan(mylen int, cap int, elm_size int) array {
return array{}
return __new_array(mylen, cap, elm_size)
}
fn __new_array_with_default_noscan(mylen int, cap int, elm_size int, val voidptr) array {
return __new_array_with_default(mylen, cap, elm_size, val)
}
fn __new_array_with_array_default_noscan(mylen int, cap int, elm_size int, val array) array {
return __new_array_with_array_default(mylen, cap, elm_size, val)
}