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

http: remove libcurl dependency; replace it with a simple OpenSSL backend

This commit is contained in:
Alexander Medvednikov
2019-08-06 05:54:47 +02:00
parent 69932758db
commit bea8f6d7e5
10 changed files with 203 additions and 411 deletions

View File

@ -1540,8 +1540,14 @@ fn (p mut Parser) name_expr() string {
return p.struct_init(name, is_c_struct_init)
}
}
// C fn
if is_c {
// C const (`C.GLFW_KEY_LEFT`)
if p.peek() != .lpar {
p.gen(name)
p.next()
return 'int'
}
// C fn
f := Fn {
name: name// .replace('c_', '')
is_c: true

View File

@ -234,6 +234,7 @@ fn (p mut Parser) register_global(name, typ string) {
is_const: true
is_global: true
mod: p.mod
is_mut: true
}
}