mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
all: update attributes to use new syntax
This commit is contained in:
parent
dd81cb98c6
commit
757929392e
739 changed files with 2982 additions and 2982 deletions
|
@ -105,7 +105,7 @@ pub fn (mut a array) trim(index int) {
|
|||
#return result;
|
||||
#}
|
||||
|
||||
[unsafe]
|
||||
@[unsafe]
|
||||
pub fn (a array) repeat_to_depth(count int, depth int) array {
|
||||
if count < 0 {
|
||||
panic('array.repeat: count is negative: ${count}')
|
||||
|
@ -297,7 +297,7 @@ pub fn (mut a array) prepend(val voidptr) {
|
|||
}
|
||||
|
||||
// prepend_many prepends another array to this array.
|
||||
[unsafe]
|
||||
@[unsafe]
|
||||
pub fn (mut a array) prepend_many(val voidptr, size int) {
|
||||
unsafe { a.insert_many(0, val, size) }
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ pub fn (mut a array) delete_last() {
|
|||
#a.val.arr.arr.pop();
|
||||
}
|
||||
|
||||
[unsafe]
|
||||
@[unsafe]
|
||||
pub fn (a &array) free() {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue