[Dovecot] 1.0.rc27 released - Compiling on AIX - brovke bitfield in mbox-sync-private.h

Timo Sirainen tss at iki.fi
Sun Mar 18 17:51:11 EET 2007


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070318/33f6255b/attachment.pgp 


More information about the dovecot mailing list