forked from enlightenment/efl
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:
parent
0c24c76c5a
commit
18b1bf46d7
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue