[Pyrex] Anonymous union inside struct
Jonne
jmickelin at gmail.com
Sun Jun 8 23:24:12 CEST 2008
Hi!
I have the following c-code:
typedef struct expansion_t {
int type;
union {
struct nunchuk_t nunchuk;
struct classic_ctrl_t classic;
struct guitar_hero_3_t gh3;
};
} expansion_t;
Where all the structures in the union are of a different size.
Now, I know that pyrex can't nest ctypedefs, but is it possible to convert
this code to pyrex, so
that I can refer to both exp.type and exp.gh3, if object is an expansion_t?
J. Mickelin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20080608/0b24b97c/attachment.html
More information about the Pyrex
mailing list