Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_apps.c
Log Message:
ecore_list looping isn't optimal, IMHO
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- e_apps.c 14 Apr 2005 10:52:13 -0000 1.27
+++ e_apps.c 14 Apr 2005 13:31:16 -0000 1.28
@@ -565,7 +565,7 @@
while (fgets(buf, sizeof(buf), f))
{
int len;
-
+
len = strlen(buf);
if (len > 0)
{
@@ -576,7 +576,8 @@
}
if (len > 0)
{
- while ((file = ecore_list_next(files)))
+ ecore_list_goto_first(files);
+ while ((file = ecore_list_current(files)))
{
if (!strcmp(buf, file))
{
@@ -584,6 +585,7 @@
free(file);
break;
}
+ ecore_list_next(files);
}
ecore_list_append(files2, strdup(buf));
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs