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

parser: do not allow duplicate fns; cgen: move fn code to fn.v

This commit is contained in:
Alexander Medvednikov
2020-04-13 19:59:57 +02:00
parent fb4cfa72cd
commit 24958df565
7 changed files with 193 additions and 178 deletions

View File

@@ -13,11 +13,12 @@ struct C.cJSON {
}
pub fn decode() voidptr {
return 0
}
pub fn encode() voidptr {
pub fn encode(x voidptr) string {
// compiler implementation
return ''
}
fn jsdecode_int(root &C.cJSON) int {