eina_bool is now an unsigned char.
authorbarbieri <barbieri>
Tue, 21 Oct 2008 15:21:37 +0000 (15:21 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 21 Oct 2008 15:21:37 +0000 (15:21 +0000)
This makes clear what size and if we have a signal or not in our type,
so no compilers have the right to choose different for us (like they
do with enum).

Also fixes compile of C++ programs with eina_rectangle.h, that
contains some inline code, the expression evaluates a boolean
expression and compiler does not know how to convert that to old
Eina_Bool.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@36939 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_types.h

index 49c12b3..6b904fe 100644 (file)
 # define FALSE 0
 #endif
 
-typedef enum {
+typedef unsigned char Eina_Bool;
+enum {
        EINA_FALSE = 0,
        EINA_TRUE = 1
-} Eina_Bool;
+};
 
 EAPI extern const unsigned int eina_prime_table[];