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

WARNING: Skipping VarArg Function CLCursor (Clang.cindex.FunctionDecl) #146

Closed
mmacedoeu opened this issue Nov 4, 2015 · 2 comments · Fixed by #315
Closed

WARNING: Skipping VarArg Function CLCursor (Clang.cindex.FunctionDecl) #146

mmacedoeu opened this issue Nov 4, 2015 · 2 comments · Fixed by #315

Comments

@mmacedoeu
Copy link

WARNING: Skipping VarArg Function CLCursor (Clang.cindex.FunctionDecl) amqp_login(amqp_connection_state_t, const char *, int, int, int, amqp_sasl_method_enum, ...)

But it is mandatory to call this to use the library. Is there some workaround way to call amqp_login, even manually editing the generated file to include the missing function, does julialang support it ??https://github.com/alanxz/rabbitmq-c/blob/master/librabbitmq/amqp.h

@ihnorton
Copy link
Collaborator

ihnorton commented Nov 4, 2015

Julia does not support vararg C functions.
JuliaLang/julia#6661

On Wed, Nov 4, 2015 at 2:53 PM, mmacedoeu notifications@github.com wrote:

WARNING: Skipping VarArg Function CLCursor (Clang.cindex.FunctionDecl) amqp_login(amqp_connection_state_t, const char *, int, int, int, amqp_sasl_method_enum, ...)

But it is mandatory to call this to use the library. Is there some
workaround way to call amqp_login, even manually editing the generated file
to include the missing function, does julialang support it ??
https://github.com/alanxz/rabbitmq-c/blob/master/librabbitmq/amqp.h


Reply to this email directly or view it on GitHub
#146.

@ihnorton
Copy link
Collaborator

ihnorton commented Nov 5, 2015

You might be able to get away with using a cdecl ccall. I believe this
should match the expected ABI (args on-stack). YMMV, test thorougly, etc.

Looking at the docs for that function, if you do this you will need to
write different ccalls specific to the argument count and types for any
given authentication method. But that can (and should) be dispatched on the
Julia side first.

On Wed, Nov 4, 2015 at 3:00 PM, Isaiah Norton isaiah.norton@gmail.com
wrote:

Julia does not support vararg C functions.
JuliaLang/julia#6661

On Wed, Nov 4, 2015 at 2:53 PM, mmacedoeu notifications@github.com
wrote:

WARNING: Skipping VarArg Function CLCursor (Clang.cindex.FunctionDecl) amqp_login(amqp_connection_state_t, const char *, int, int, int, amqp_sasl_method_enum, ...)

But it is mandatory to call this to use the library. Is there some
workaround way to call amqp_login, even manually editing the generated file
to include the missing function, does julialang support it ??
https://github.com/alanxz/rabbitmq-c/blob/master/librabbitmq/amqp.h


Reply to this email directly or view it on GitHub
#146.

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

Successfully merging a pull request may close this issue.

3 participants