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

Can not call function pointers to C functions #6194

Closed
mstewartgallus opened this issue May 2, 2013 · 2 comments
Closed

Can not call function pointers to C functions #6194

mstewartgallus opened this issue May 2, 2013 · 2 comments
Labels
A-ffi Area: Foreign Function Interface (FFI)

Comments

@mstewartgallus
Copy link
Contributor

The FFI for C has been around for a while now so I was unhappy to find out that calling pointers to C functions is not implemented yet. Because of this issue in the test case for the code here: http://gitorious.org/rust-dlfcn/rust-dlfcn/blobs/master/dlfcn.rs . I must use incorrect code, and use extern fn, instead of extern "C" fn for the type of the cosine function pointer. I understand that this is okay for C functions which do not use up that much stack space but in general one would want to use the extern "C" fn type.

@catamorphism
Copy link
Contributor

Related to #3678

@thestinger
Copy link
Contributor

This is now implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ffi Area: Foreign Function Interface (FFI)
Projects
None yet
Development

No branches or pull requests

3 participants