Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : libs/ecore

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


Modified Files:
        ecore_file.c 


Log Message:
Directory list should sort case-insensitive. Anything else is counter-intuitive 
and annoying. :)

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- ecore_file.c        7 Sep 2005 08:57:08 -0000       1.14
+++ ecore_file.c        12 Sep 2005 02:42:39 -0000      1.15
@@ -247,7 +247,7 @@
             ecore_list_goto_first(list);
             while ((file = ecore_list_current(list)))
               {
-                 if (strcmp(file, dp->d_name) > 0)
+                 if (strcasecmp(file, dp->d_name) > 0)
                    {
                       f = strdup(dp->d_name);
                       ecore_list_insert(list, f);
@@ -259,7 +259,7 @@
             if (!file)
               {
                  f = strdup(dp->d_name);
-                 ecore_list_append(list, f);
+                 ecore_list_insert(list, f);
               }
          }
      }




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to