Re: [Evolution-hackers] Why a bitfield in CamelOfflineFolder?



On Thu, 2006-11-30 at 09:43 +0100, Jules Colding wrote:
> Is this really necessary?  
> 
> struct _CamelOfflineFolder {
>         CamelFolder parent_object;
> 
>         unsigned int sync_offline:1;
> };
> 
> Wouldn't it be much better/simpler/cleaner simply to do:
> 
> struct _CamelOfflineFolder {
>         CamelFolder parent_object;
> 
>         gboolean sync_offline;
> };

gtypes.h says:

typedef gint   gboolean;

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]