Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_file
Modified Files:
ecore_file.c
Log Message:
Don't use dlist
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore_file.c 14 Apr 2005 10:52:58 -0000 1.5
+++ ecore_file.c 14 Apr 2005 13:35:50 -0000 1.6
@@ -188,11 +188,11 @@
{
DIR *dirp;
struct dirent *dp;
- Ecore_DList *list;
+ Ecore_List *list;
dirp = opendir(dir);
if (!dirp) return NULL;
- list = ecore_dlist_new();
+ list = ecore_list_new();
while ((dp = readdir(dirp)))
{
if ((strcmp(dp->d_name, ".")) && (strcmp(dp->d_name, "..")))
@@ -200,27 +200,27 @@
char *file, *f;
/* insertion sort */
- ecore_dlist_goto_first(list);
- while ((file = ecore_dlist_next(list)))
+ ecore_list_goto_first(list);
+ while ((file = ecore_list_current(list)))
{
if (strcmp(file, dp->d_name) > 0)
{
- ecore_dlist_previous(list);
f = strdup(dp->d_name);
- ecore_dlist_insert(list, f);
+ ecore_list_insert(list, f);
break;
}
+ ecore_list_next(list);
}
/* nowhwre to go? just append it */
if (!file)
{
f = strdup(dp->d_name);
- ecore_dlist_append(list, f);
+ ecore_list_append(list, f);
}
}
}
closedir(dirp);
- ecore_dlist_goto_first(list);
- return ECORE_LIST(list);
+ ecore_list_goto_first(list);
+ return list;
}
-------------------------------------------------------
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