mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
http: remove libcurl dependency; replace it with a simple OpenSSL backend
This commit is contained in:
parent
69932758db
commit
bea8f6d7e5
10 changed files with 203 additions and 411 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue