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

Out of order typedefs of structs #5

Closed
jacob-carlborg opened this issue Jul 11, 2012 · 1 comment
Closed

Out of order typedefs of structs #5

jacob-carlborg opened this issue Jul 11, 2012 · 1 comment

Comments

@jacob-carlborg
Copy link
Owner

Out of order typedefs of structs results in duplicated structs.

The following code:

typedef struct _Foo Foo;

struct _Foo
{
    int x;
};

Results in:

extern (C):

alias _Foo Foo;

struct _Foo
{
}

struct _Foo
{
    int x;
}

Should be:

extern (C):

alias _Foo Foo;

struct _Foo
{
    int x;
}
jacob-carlborg added a commit that referenced this issue Jul 11, 2013
Fix issue #5 : forward declaration of structures
@jacob-carlborg
Copy link
Owner Author

Fixed in 8b8ceb7.

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