-
Notifications
You must be signed in to change notification settings - Fork 68
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
Definitions of function pointer types should appear before their first use #410
Comments
#408 is wrong. The original behavior is right. It looks like the author got confused with a typedef-ed function pointer and a typedef-ed function prototype. There is another way to fix what #408 is supposed to solve. Sorry, I should have read JuliaParallel/MPI.jl#688 more carefully. cc @t-bltg |
Hum sorry about this. Let me have a second look a it. |
MPI.jl is a bit more problematic, I will try to submit a PR there after fixing Clang.jl. |
Many thanks for the quick fix |
Clang.jl 0.17.0 makes nice type definitions for function pointers instead of
Ptr{Cvoid}
, which is much appreciated.These definitions in the generated julia code can appear after their first use in e.g. a struct, causing an error in julia when trying to use the generated wrapper.
Example:
https://github.com/marcom/ViennaRNA.jl
in the
gen/
directory, bump Clang.jl compat to 0.17 and julia compat to 1.7 and runThe generated bindings cannot be loaded anymore:
The text was updated successfully, but these errors were encountered: