[Asterisk-Dev] ast_flags question
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Sat Jan 8 15:16:09 MST 2005
On January 8, 2005 03:34 am, Holger Schurig wrote:
> I'm wondering why nobody uses the c-compiler feature of bitmask handling.
> struct bitstruct {
> int b : 1;
> };
> struct bitstruct b;
> ...
> b.b = 1;
I too wondered why this wasn't used. It's ANSI C, it is clear, concise and
the *compiler* worries about how many bits are used, not the programmers.
It's certainly not too late to change the flags bits again.
-A.
More information about the asterisk-dev
mailing list