move bitfield booleans to Eina_Bool.

using one bit with integers will just have room for 0 and -1, not 0 and 1.



SVN revision: 46412
This commit is contained in:
Gustavo Sverzut Barbieri 2010-02-23 22:49:15 +00:00
parent 0c24c76c5a
commit 18b1bf46d7
4 changed files with 11 additions and 11 deletions

View File

@ -17,21 +17,21 @@ struct _Ecore_Event_Handler
EINA_INLIST; EINA_INLIST;
ECORE_MAGIC; ECORE_MAGIC;
int type; int type;
int delete_me : 1;
int (*func) (void *data, int type, void *event); int (*func) (void *data, int type, void *event);
void *data; void *data;
Eina_Bool delete_me : 1;
}; };
struct _Ecore_Event_Filter struct _Ecore_Event_Filter
{ {
EINA_INLIST; EINA_INLIST;
ECORE_MAGIC; ECORE_MAGIC;
int delete_me : 1;
void *(*func_start) (void *data); void *(*func_start) (void *data);
int (*func_filter) (void *data, void *loop_data, int type, void *event); int (*func_filter) (void *data, void *loop_data, int type, void *event);
void (*func_end) (void *data, void *loop_data); void (*func_end) (void *data, void *loop_data);
void *loop_data; void *loop_data;
void *data; void *data;
Eina_Bool delete_me : 1;
}; };
struct _Ecore_Event struct _Ecore_Event
@ -40,9 +40,9 @@ struct _Ecore_Event
ECORE_MAGIC; ECORE_MAGIC;
int type; int type;
void *event; void *event;
int delete_me : 1;
void (*func_free) (void *data, void *ev); void (*func_free) (void *data, void *ev);
void *data; void *data;
Eina_Bool delete_me : 1;
}; };

View 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_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_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 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. */ int start_bytes, end_bytes, start_lines, end_lines; /* Number of bytes/lines to auto pipe at start/end of stdout/stderr. */

View File

@ -79,8 +79,8 @@ struct _Ecore_Exe
int data_size; int data_size;
int pending; int pending;
} pipe_error; } pipe_error;
int close_stdin; Eina_Bool close_stdin : 1;
int is_suspended : 1; Eina_Bool is_suspended : 1;
void (*pre_free_cb)(void *data, const Ecore_Exe *exe); void (*pre_free_cb)(void *data, const Ecore_Exe *exe);
}; };

View File

@ -48,16 +48,16 @@ struct _Ecore_Fd_Handler
ECORE_MAGIC; ECORE_MAGIC;
int fd; int fd;
Ecore_Fd_Handler_Flags flags; 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); int (*func) (void *data, Ecore_Fd_Handler *fd_handler);
void *data; void *data;
int (*buf_func) (void *data, Ecore_Fd_Handler *fd_handler); int (*buf_func) (void *data, Ecore_Fd_Handler *fd_handler);
void *buf_data; void *buf_data;
void (*prep_func) (void *data, Ecore_Fd_Handler *fd_handler); void (*prep_func) (void *data, Ecore_Fd_Handler *fd_handler);
void *prep_data; 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 #ifdef _WIN32
@ -68,7 +68,7 @@ struct _Ecore_Win32_Handler
HANDLE h; HANDLE h;
int (*func) (void *data, Ecore_Win32_Handler *win32_handler); int (*func) (void *data, Ecore_Win32_Handler *win32_handler);
void *data; void *data;
int delete_me : 1; Eina_Bool delete_me : 1;
}; };
#endif #endif