tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7cbfa52dd5f33c0e77ff060640bf1d638ae5141e

commit 7cbfa52dd5f33c0e77ff060640bf1d638ae5141e
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Aug 26 15:21:05 2014 +0100

    Ecore exe: Fix compilation on windows (fix inlist usage).
    
    Hopefully. I don't have a winodws box to test it on. Go Jenkins go.
---
 src/lib/ecore/ecore_exe_win32.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index fcda3e7..cd042a5 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -40,7 +40,7 @@ typedef enum
    ECORE_EXE_WIN32_SIGKILL
 } Ecore_Exe_Win32_Signal;
 
-static Ecore_Exe *exes = NULL;
+static Eina_List *exes = NULL;
 
 static int run_pri = NORMAL_PRIORITY_CLASS;
 
@@ -393,7 +393,10 @@ _ecore_exe_init(void)
 void
 _ecore_exe_shutdown(void)
 {
-   while (exes)
+   Eina_List *l1, *l2;
+   Ecore_Exe *exe;
+
+   EINA_LIST_FOREACH_SAFE(exes, l1, l2, exe)
      ecore_exe_free(exes);
 }
 
@@ -625,8 +628,7 @@ ecore_exe_pipe_run(const char     *exe_cmd,
         goto delete_h_close;
      }
 
-   exes = (Ecore_Exe *)eina_inlist_append(EINA_INLIST_GET(exes),
-                                          EINA_INLIST_GET(obj));
+   exes = eina_list_append(exes, obj);
 
    e = (Ecore_Exe_Event_Add *)calloc(1, sizeof(Ecore_Exe_Event_Add));
    if (!e) goto delete_h_close;
@@ -896,7 +898,7 @@ ecore_exe_free(Ecore_Exe *obj)
      CloseHandle(exe->pipe_read.child_pipe_x);
    free(exe->cmd);
 
-   exes = (Ecore_Exe *)eina_inlist_remove(EINA_INLIST_GET(exes), 
EINA_INLIST_GET(exe));
+   exes = eina_list_remove(exes, obj);
    IF_FREE(exe->tag);
    eo_del(exe);
 

-- 


Reply via email to