On Tue, Oct 30, 2007 at 04:02:25PM +0100, Richard Knutsson wrote:I just don't see the reason why expressing a boolean as an integer. Some advantage?
Matthew Wilcox wrote:
On Tue, Oct 30, 2007 at 11:54:22AM +0100, Richard Knutsson wrote:Well, yes. It is since it was defined to really be 8 bits before, and there is no reason why a boolean would be 8 bits and not 1 or 16.
Convert to use the generic boolean.Are you serious?
- u8 initialized;
- u8 in_use; /* is the management node open*/
+ bool initialized:8;
+ bool in_use:8; /* is the management node open*/
If it is overly cautious/not needed, then I don't mind removing the ':8'...
What's wrong with leaving it as 'u8'?