move bitfield booleans to Eina_Bool.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Feb 2010 22:49:15 +0000 (22:49 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Feb 2010 22:49:15 +0000 (22:49 +0000)
using one bit with integers will just have room for 0 and -1, not 0 and 1.

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

src/lib/ecore/ecore_events.c
src/lib/ecore/ecore_exe.c
src/lib/ecore/ecore_exe_win32.c
src/lib/ecore/ecore_main.c

index 9ff4e7d..a92dd97 100644 (file)
@@ -17,21 +17,21 @@ struct _Ecore_Event_Handler
    EINA_INLIST;
    ECORE_MAGIC;
    int type;
-   int delete_me : 1;
    int (*func) (void *data, int type, void *event);
    void  *data;
+   Eina_Bool delete_me : 1;
 };
 
 struct _Ecore_Event_Filter
 {
    EINA_INLIST;
    ECORE_MAGIC;
-   int delete_me : 1;
    void *(*func_start) (void *data);
    int (*func_filter) (void *data, void *loop_data, int type, void *event);
    void (*func_end) (void *data, void *loop_data);
    void *loop_data;
    void *data;
+   Eina_Bool delete_me : 1;
 };
 
 struct _Ecore_Event
@@ -40,9 +40,9 @@ struct _Ecore_Event
    ECORE_MAGIC;
    int type;
    void *event;
-   int delete_me : 1;
    void (*func_free) (void *data, void *ev);
    void *data;
+   Eina_Bool delete_me : 1;
 };
 
 
index 79f62ac..3366fa6 100644 (file)
@@ -114,7 +114,7 @@ struct _Ecore_Exe
    int child_fd_write_x;       /* fd to write TO to send data to the child */
    int child_fd_read_x;        /* fd to read FROM when child has sent us (the parent) data */
    int child_fd_error_x;       /* fd to read FROM when child has sent us (the parent) errors */
-   int close_stdin;
+   Eina_Bool close_stdin : 1;
 
    int start_bytes, end_bytes, start_lines, end_lines; /* Number of bytes/lines to auto pipe at start/end of stdout/stderr. */
 
index 00a42b8..688dfe1 100644 (file)
@@ -79,8 +79,8 @@ struct _Ecore_Exe
       int    data_size;
       int pending;
    } pipe_error;
-   int    close_stdin;
-   int    is_suspended : 1;
+   Eina_Bool    close_stdin : 1;
+   Eina_Bool    is_suspended : 1;
 
    void (*pre_free_cb)(void *data, const Ecore_Exe *exe);
 };
index b585f08..9bfeb37 100644 (file)
@@ -48,16 +48,16 @@ struct _Ecore_Fd_Handler
    ECORE_MAGIC;
    int                      fd;
    Ecore_Fd_Handler_Flags   flags;
-   int                      read_active : 1;
-   int                      write_active : 1;
-   int                      error_active : 1;
-   int                      delete_me : 1;
    int                    (*func) (void *data, Ecore_Fd_Handler *fd_handler);
    void                    *data;
    int                    (*buf_func) (void *data, Ecore_Fd_Handler *fd_handler);
    void                    *buf_data;
    void                   (*prep_func) (void *data, Ecore_Fd_Handler *fd_handler);
    void                    *prep_data;
+   Eina_Bool                read_active : 1;
+   Eina_Bool                write_active : 1;
+   Eina_Bool                error_active : 1;
+   Eina_Bool                delete_me : 1;
 };
 
 #ifdef _WIN32
@@ -68,7 +68,7 @@ struct _Ecore_Win32_Handler
    HANDLE         h;
    int          (*func) (void *data, Ecore_Win32_Handler *win32_handler);
    void          *data;
-   int            delete_me : 1;
+   Eina_Bool      delete_me : 1;
 };
 #endif