Skip to content

wrap_c generating incorrect signature for typedef'ed pointers #190

@tk3369

Description

@tk3369

This is an issue similar to #152. See this discourse post for more details.

Example:

typedef struct {
    double x;
} FOO, *FOOP;

FOOP test1(double a, double b, FOOP c);

got wrapped as:

function test1(a::Cdouble, b::Cdouble, c::FOOP)
    ccall((:test1, test), FOOP, (Cdouble, Cdouble, FOOP), a, b, c)
end

Expected result should be:

function test1(a::Cdouble, b::Cdouble, c)
    ccall((:test1, test), FOOP, (Cdouble, Cdouble, FOOP), a, b, c)
end

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions