Reply to post: Re: What am I missing?

Keen to go _ExtInt? LLVM Clang compiler adds support for custom width integers

sed gawk Silver badge

Re: What am I missing?

Nearly ;) You can't name zero width bit-fields

typedef struct {

unsigned char flag:1;

unsigned int :0;

unsigned char nibble:4;

unsigned int :0;

unsigned char munch:2;

unsigned int :0;

unsigned int mouthful:18;

unsigned int :0;

} someStructure;

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2021