Re: broken oop ?



Tim Janik <timj@gtk.org> el día Mon, 17 May 1999 07:00:46 +0200 (CEST), 
escribió:

>On Sun, 16 May 1999, Elliot Lee wrote:
>
>> typedef struct {
>> 	GtkWidget widget;
>> 	GTK_PUBLIC gboolean myfield, myfield2 : 1;
>> } GtkMine;
>
><nit picking>
>gboolean is signed int, bit fields should always be declared
>as unsigned, thus guint myfield : 1; guint myfield2 : 1;
></nit picking>

Hmmm...  this is not helping much...

how about: typedef gbit enum { 0, 1}  ??   (the syntax is correct ?)

Sergio



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