-
Notifications
You must be signed in to change notification settings - Fork 707
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
Bindgen gets parameter names wrong in callbacks #1535
Labels
Comments
I'll take a look at this. |
flowbish
added a commit
to flowbish/rust-bindgen
that referenced
this issue
Mar 9, 2019
flowbish
added a commit
to flowbish/rust-bindgen
that referenced
this issue
Mar 9, 2019
Thanks @flowbish! |
flowbish
added a commit
to flowbish/rust-bindgen
that referenced
this issue
Mar 10, 2019
emilio
added a commit
that referenced
this issue
Mar 11, 2019
Fix issue #1535: use correct names for function parameters in function pointer arguments.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C/C++ Header
Input is the c-ares header ares.h.
Relevant fragment is:
Bindgen Invocation
Actual Results
Output like this:
Expected Results
As you can see, the names of the parameters for the callback functions are wrong - they should be
size
, thenptr
, thenptr
andsize
. But instead they areflags
, thenflags
, and thenflags
andamalloc
.That is, the parameter names for the surrounding function have been injected into the callbacks!
This is a regression at 1092778 - prior to that, the output was as expected. @flowbish.
The text was updated successfully, but these errors were encountered: