ecore: reformat ecore_exe_posix.c
This commit is contained in:
parent
9f3edead9d
commit
7cdbe6e029
|
@ -76,11 +76,13 @@ static int _ecore_exe_check_errno(int result,
|
|||
int line);
|
||||
|
||||
#define E_IF_NO_ERRNO(result, foo, ok) \
|
||||
while (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)) == -1) sleep(1); \
|
||||
while (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)) == -1) \
|
||||
sleep(1); \
|
||||
if (ok)
|
||||
|
||||
#define E_NO_ERRNO(result, foo, ok) \
|
||||
while (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)) == -1) sleep(1)
|
||||
while (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)) == -1) \
|
||||
sleep(1)
|
||||
|
||||
#define E_IF_NO_ERRNO_NOLOOP(result, foo, ok) \
|
||||
if (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)))
|
||||
|
@ -1108,8 +1110,8 @@ _ecore_exe_exec_it(const char *exe_cmd,
|
|||
errno = 0;
|
||||
execl(shell, shell, "-c", exe_cmd, (char *)NULL);
|
||||
}
|
||||
else
|
||||
{ /* We can run this directly. */
|
||||
else /* We can run this directly. */
|
||||
{
|
||||
if (!args)
|
||||
{
|
||||
ERR("arg[0] is NULL!");
|
||||
|
@ -1209,8 +1211,8 @@ _ecore_exe_data_generic_handler(void *data,
|
|||
inbuf = temp;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ /* No more data to read. */
|
||||
else /* No more data to read. */
|
||||
{
|
||||
if (inbuf)
|
||||
{
|
||||
Ecore_Exe_Event_Data *e;
|
||||
|
@ -1375,3 +1377,4 @@ _ecore_exe_dead_attach(Ecore_Exe *obj)
|
|||
exe->doomsday_clock_dead = dead;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue