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

Handle typedef of opaque structs #107

Closed
biozic opened this issue Jan 15, 2017 · 2 comments
Closed

Handle typedef of opaque structs #107

biozic opened this issue Jan 15, 2017 · 2 comments
Labels

Comments

@biozic
Copy link
Contributor

biozic commented Jan 15, 2017

When an opaque struct is defined in a C header like that:

    typedef struct foo foo;

no symbols are generated in the .d file. It only works if the name of the struct is not the same as the typedef. The output should be:

   struct foo;
@ciechowoj
Copy link
Contributor

Yeah, that's embarrassing.

@ciechowoj
Copy link
Contributor

I should fix it in a moment.

ciechowoj added a commit to ciechowoj/dstep that referenced this issue Jan 15, 2017
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Jan 15, 2017
jacob-carlborg added a commit that referenced this issue Jan 16, 2017
Fix #107: Handle typedef of opaque structs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants