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:
parent
62d800a775
commit
a4e0e0fa57
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user