[racket] FFI bitfields

From: Клочков Роман (kalimehtar at mail.ru)
Date: Sun Jun 9 13:42:47 EDT 2013

 How to make in Racket FFI struct with bit fields
For example, such struct

struct box_props
{
     unsigned int opaque       : 1;
     unsigned int fill_color   : 3;
     unsigned int              : 4; // fill to 8 bits
     unsigned int show_border  : 1;
     unsigned int border_color : 3;
     unsigned int border_style : 2;
     unsigned int              : 2; // fill to 16 bits
};

?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130609/c80e87d4/attachment.html>

Posted on the users mailing list.