DStep - Bindings Generator 0.0.1
Jacob Carlborg
doob at me.com
Tue Jul 10 23:26:01 PDT 2012
On 2012-07-11 02:38, Jonathan Andrew wrote:
> OK, as far as the empty struct-s, it looks like it has to do with
> typedef struct.
> -------------------------------------------------------
> //Test.h:
>
> typedef struct _Booger Booger;
>
> //Results in:
>
> -------------------------------------------------------
> //Test.d:
>
> extern (C):
>
> alias _Booger Booger;
>
> struct _Booger
> {
> }
>
Reported as: https://github.com/jacob-carlborg/dstep/issues/4
>
> If the .h has:
>
> typedef struct _Booger Booger;
>
> struct Booger
> {
> int a;
> };
>
> The .d will have both the incorrect empty struct and the correct one
> with the "int a;" declaration.
> extern (C):
>
> alias _Booger Booger;
>
> struct _Booger
> {
> }
>
> struct _Booger
> {
> int a;
> }
This is a known issue, it's on the todo list. I've reported it to github
as well: https://github.com/jacob-carlborg/dstep/issues/5
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list