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);
|
int line);
|
||||||
|
|
||||||
#define E_IF_NO_ERRNO(result, foo, ok) \
|
#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)
|
if (ok)
|
||||||
|
|
||||||
#define E_NO_ERRNO(result, foo, 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) \
|
#define E_IF_NO_ERRNO_NOLOOP(result, foo, ok) \
|
||||||
if (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)))
|
if (((ok) = _ecore_exe_check_errno((result) = (foo), __FILE__, __LINE__)))
|
||||||
|
@ -1108,8 +1110,8 @@ _ecore_exe_exec_it(const char *exe_cmd,
|
||||||
errno = 0;
|
errno = 0;
|
||||||
execl(shell, shell, "-c", exe_cmd, (char *)NULL);
|
execl(shell, shell, "-c", exe_cmd, (char *)NULL);
|
||||||
}
|
}
|
||||||
else
|
else /* We can run this directly. */
|
||||||
{ /* We can run this directly. */
|
{
|
||||||
if (!args)
|
if (!args)
|
||||||
{
|
{
|
||||||
ERR("arg[0] is NULL!");
|
ERR("arg[0] is NULL!");
|
||||||
|
@ -1209,8 +1211,8 @@ _ecore_exe_data_generic_handler(void *data,
|
||||||
inbuf = temp;
|
inbuf = temp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else /* No more data to read. */
|
||||||
{ /* No more data to read. */
|
{
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
{
|
{
|
||||||
Ecore_Exe_Event_Data *e;
|
Ecore_Exe_Event_Data *e;
|
||||||
|
@ -1375,3 +1377,4 @@ _ecore_exe_dead_attach(Ecore_Exe *obj)
|
||||||
exe->doomsday_clock_dead = dead;
|
exe->doomsday_clock_dead = dead;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue