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
};

?
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to