[cffi-devel] Bit based structs

Roger Sen Montero rogersm at rogersm.net
Tue Feb 7 17:24:43 UTC 2006


Hi all!!

  Does defcstruct support bit fields? I've been looking the docs and 
code but found nothing.

  Supose I need to support a struct like:

typedef struct ilovebits {

	int one:1;
	int two:1;
	int three:1;
	int four:1;
	int rest:4;
} lovely;

  What should I do?

  Regards,
rogersm.



More information about the cffi-devel mailing list