Hi!<br><br>I have the following c-code:<br><br>typedef struct expansion_t {
<br> int type;
<br> <br> union {
<br> struct nunchuk_t nunchuk;
<br> struct classic_ctrl_t classic;
<br> struct guitar_hero_3_t gh3;
<br> };
<br>} expansion_t;
<br><br><br>Where all the structures in the union are of a different size.<br><br>Now, I know that pyrex can't nest ctypedefs, but is it possible to convert this code to pyrex, so<br>that I can refer to both exp.type and exp.gh3, if object is an expansion_t?<br>
<br>J. Mickelin<br>