[Pyrex] unnamed stucts

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 8 03:01:32 CEST 2008


Brad Schick wrote:
> If I extract the nested stuct declarations and give them names, I assume
> the generated C would not compile correctly since it will #include the
> original nameless C declaration.

It should work okay as long as you don't use the names for
anything other than declaring the nested struct members.
The C code for accessing members of the inner structs is
the same whether they're declared in a nested manner or not.

-- 
Greg



More information about the Pyrex mailing list