Enlightenment CVS committal Author : barbieri Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib Modified Files: Evas.h Log Message: Evas_Bool should be unsigned. This will help the use of Evas_Bool to define bitfield structs like in: struct s { Evas_Bool a:1; Evas_Bool b:1; Evas_Bool c:1; Evas_Bool d:1; Evas_Bool e:1; Evas_Bool f:1; Evas_Bool g:1; Evas_Bool h:1; Evas_Bool i:1; }; It must be unsigned or it would use the signal bit, having "a == 0" to be true anyway, as it would be just +0 and -0. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/Evas.h,v retrieving revision 1.116 retrieving revision 1.117 diff -u -3 -r1.116 -r1.117 --- Evas.h 11 Apr 2008 23:12:19 -0000 1.116 +++ Evas.h 24 Apr 2008 15:31:57 -0000 1.117 @@ -98,10 +98,10 @@ typedef struct _Evas_Native_Surface Evas_Native_Surface; /**< A generic datatype for engine specific native surface information */ typedef unsigned long long Evas_Modifier_Mask; /**< An Evas modifier mask type */ -typedef int Evas_Coord; -typedef int Evas_Font_Size; -typedef int Evas_Angle; -typedef char Evas_Bool; +typedef int Evas_Coord; +typedef int Evas_Font_Size; +typedef int Evas_Angle; +typedef unsigned char Evas_Bool; struct _Evas_List /** A linked list node */ { ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs