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

Typedefs for pointers to opaque structs #30

Closed
dmlary opened this issue Sep 7, 2014 · 0 comments
Closed

Typedefs for pointers to opaque structs #30

dmlary opened this issue Sep 7, 2014 · 0 comments

Comments

@dmlary
Copy link
Contributor

dmlary commented Sep 7, 2014

A typedef for a pointer to an opaque struct results in invalid ruby being generated.

Given the following C code:

typedef struct opaque_struct* opaque_pointer;
opaque_pointer func(void);

ffi-swig-generator outputs the following ruby:

attach_function :func, :func, [  ], :opaque_pointer

The line defining the :opaque_pointer as a :pointer is missing. The output should be as follows:

typedef :pointer, :opaque_pointer
attach_function :func, :func, [  ], :opaque_pointer
@dmlary dmlary closed this as completed in eaa7c00 Sep 7, 2014
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

No branches or pull requests

1 participant