Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        ecore_list.c 


Log Message:
- change find to leave the list pointing to the found item instead of the
  next item in the list

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_list.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- ecore_list.c        9 Jan 2007 21:21:29 -0000       1.27
+++ ecore_list.c        10 Jan 2007 21:56:11 -0000      1.28
@@ -1051,8 +1051,11 @@
   if (!list || !function) return NULL;
 
   _ecore_list_goto_first(list);
-  while ((value = _ecore_list_next(list)) != NULL)
+  while ((value = _ecore_list_current(list)) != NULL)
+  {
     if (!function(value, user_data)) return value;
+    ecore_list_next(list);
+  }
 
   return NULL;
 }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to