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:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user