Skip to content

Can not call function pointers to C functions #6194

Closed
@mstewartgallus

Description

@mstewartgallus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions