18 Mar
2007
18 Mar
'07
5:51 p.m.
On Sat, 2007-03-17 at 01:39 +0100, Václav Haisman wrote:
uint8_t flags;
- uint8_t uid_broken:1;
- uint8_t expunged:1;
- uint8_t pseudo:1;
- uint32_t uid_broken:1;
- uint32_t expunged:1;
- uint32_t pseudo:1; Maybe the whole chunk starting from uint8_t flags; could be like this instead:
uint32_t flags:8; uint32_t uid_broken:1; uint32_t expunged:1; uint32_t pseudo:1;
Right, I didn't think of that. But that feels a bit ugly :) I don't think it saves much memory anyway, so I'll keep it as uint8_t flags.