[Pyrex] How to declare the structure with bit-fields in pyrex?
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Apr 20 00:55:01 CEST 2008
Yong Sun wrote:
> struct Test {
> unsigned int head : 4
> unsigned int tail : 28
> };
>
> How could I declare it in pyrex?
Currently, you can't. However, if the struct is defined
in an external header, you don't need to -- just leave
the bit fields out in the Pyrex declaration. The C
compiler will see the actual definition in the header.
--
Greg
More information about the Pyrex
mailing list