Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c2v cannot process: void (**implementation)(void) #189

Open
finomeng opened this issue Dec 22, 2024 · 2 comments
Open

c2v cannot process: void (**implementation)(void) #189

finomeng opened this issue Dec 22, 2024 · 2 comments

Comments

@finomeng
Copy link

hi team,
I want to wrap the headers for wayland-client.so
but seem c2v cannot process: **

int wl_proxy_add_listener(struct wl_proxy proxy, void (**implementation)(void), voiddata);

the file is /usr/include/wayland-client-core.h , on Ubuntu 24.04

log:

$ v translate wayland-client.h
wayland-client.v:571:63: error: unexpected token `(`, expecting `,`
  569 | fn wl_proxy_destroy(proxy &Wl_proxy)
  570 | 
  571 | fn wl_proxy_add_listener(proxy &Wl_proxy, implementation Void (**)(void), data voidptr) int
      |                                                               ^
  572 | 
  573 | fn wl_proxy_set_user_data(proxy &Wl_proxy, user_data voidptr)

Internal vfmt error while formatting file: /projects/_KodGraf_/kodgraf/wayland/h/wayland-client.v.

Thanks.
BR fino

@finomeng
Copy link
Author

I got new finding,
if I use c2v wrapper waydland-client.h, there is no error happen. so I got confused.

tail of log:

c2v: translate_file() DONE

VVVV len=0
{}
 c2v translate_file() took   292 ms ; output .v file: wayland-client.v

@finomeng
Copy link
Author

it seems c2v wrapper is the same cmd with v translate wrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant