mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check (mut f Foo)
syntax
This commit is contained in:
@ -47,17 +47,17 @@ pub fn (a array) repeat(nr_repeats int) array {
|
||||
return a
|
||||
}
|
||||
|
||||
pub fn (a mut array) sort_with_compare(compare voidptr) {
|
||||
pub fn (mut a array) sort_with_compare(compare voidptr) {
|
||||
}
|
||||
|
||||
pub fn (a mut array) insert(i int, val voidptr) {
|
||||
pub fn (mut a array) insert(i int, val voidptr) {
|
||||
}
|
||||
|
||||
pub fn (a mut array) prepend(val voidptr) {
|
||||
pub fn (mut a array) prepend(val voidptr) {
|
||||
a.insert(0, val)
|
||||
}
|
||||
|
||||
pub fn (a mut array) delete_elm(idx int) {
|
||||
pub fn (mut a array) delete_elm(idx int) {
|
||||
}
|
||||
|
||||
/*
|
||||
@ -132,7 +132,7 @@ pub fn (b []byte) hex() string {
|
||||
return 'sdf'
|
||||
}
|
||||
|
||||
pub fn (arr mut array) push_many(val voidptr, size int) {
|
||||
pub fn (mut arr array) push_many(val voidptr, size int) {
|
||||
}
|
||||
|
||||
pub fn free(voidptr) {
|
||||
|
@ -10,7 +10,7 @@ pub struct map {
|
||||
obj voidptr
|
||||
}
|
||||
|
||||
//fn (m mut map) insert(n mut mapnode, key string, val voidptr) {
|
||||
//fn (mut m map) insert(n mut mapnode, key string, val voidptr) {
|
||||
//}
|
||||
|
||||
//////fn (n & mapnode) find(key string, out voidptr, element_size int) bool{
|
||||
@ -26,7 +26,7 @@ pub struct map {
|
||||
//return 0
|
||||
//}
|
||||
|
||||
pub fn (m mut map) keys() []string {
|
||||
pub fn (mut m map) keys() []string {
|
||||
return ['']
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ fn (m map) get(key string, out voidptr) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
pub fn (m mut map) delete(key string) {
|
||||
pub fn (mut m map) delete(key string) {
|
||||
}
|
||||
|
||||
fn (m map) exists(key string) bool {
|
||||
|
@ -23,8 +23,8 @@ pub fn tos(s byteptr) string {
|
||||
return string{
|
||||
str: s
|
||||
len: len
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// string.clone_static returns an independent copy of a given array
|
||||
// It should be used only in -autofree generated code.
|
||||
@ -209,14 +209,14 @@ pub fn (s string) trim_right(cutset string) string {
|
||||
// fn print_cur_thread() {
|
||||
// //C.printf("tid = %08x \n", pthread_self());
|
||||
// }
|
||||
pub fn (s mut []string) sort() {
|
||||
|
||||
pub fn (mut s []string) sort() {
|
||||
|
||||
}
|
||||
|
||||
pub fn (s mut []string) sort_ignore_case() {
|
||||
pub fn (mut s []string) sort_ignore_case() {
|
||||
}
|
||||
|
||||
pub fn (s mut []string) sort_by_len() {
|
||||
pub fn (mut s []string) sort_by_len() {
|
||||
}
|
||||
|
||||
fn (s string) at(idx int) byte {
|
||||
|
Reference in New Issue
Block a user