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

table: TypeCategory; freetype: remove C code; [typedef] C structs;

Objective-C interfaces
This commit is contained in:
Alexander Medvednikov
2019-08-20 14:34:29 +03:00
parent c8da79d785
commit eb5fcafa77
8 changed files with 247 additions and 213 deletions

View File

@ -195,7 +195,7 @@ pub fn (n int) hex() string {
} else {
11
}
hex := malloc(len) // 0x + \n
hex := malloc(len) // 0x + \n
count := int(C.sprintf(hex, '0x%x', n))
return tos(hex, count)
}
@ -245,14 +245,14 @@ pub fn (c byte) str() string {
}
pub fn (c byte) is_capital() bool {
return c >= `A` && c <= `Z`
}
return c >= `A` && c <= `Z`
}
pub fn (b []byte) clone() []byte {
mut res := [byte(0); b.len]
mut res := [byte(0); b.len]
for i := 0; i < b.len; i++ {
res[i] = b[i]
}
return res
}
res[i] = b[i]
}
return res
}