Difference for random_maps/style.c from version 1.22 to 1.23


version 1.22 version 1.23
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_style_c =   * static char *rcsid_style_c =
  *   "$Id: style.c,v 1.22 2005/08/12 13:46:34 ryo_saeba Exp $";   *   "$Id: style.c,v 1.23 2005/10/29 22:03:43 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 37
 
Line 37
 #endif /* win32 */  #endif /* win32 */
   
   
   static int pointer_strcmp(const void *p1, const void *p2)
   {
       const char *s1 = *(const char **)p1;
       const char *s2 = *(const char **)p2;
   
       return(strcmp(s1, s2));
   }
   
 /* This is our own version of scandir/select_regular_files/sort.  /* This is our own version of scandir/select_regular_files/sort.
  * To support having subdirectories in styles, we need to know   * To support having subdirectories in styles, we need to know
  * if in fact the directory we read is a subdirectory.  However,   * if in fact the directory we read is a subdirectory.  However,
Line 82
 
Line 90
     }      }
     (void) closedir (dp);      (void) closedir (dp);
   
     qsort(rn, entries, sizeof(char*), (int(*)(const void*, const void*))strcmp);      qsort(rn, entries, sizeof(char*), pointer_strcmp);
   
     *namelist = rn;      *namelist = rn;
     return entries;      return entries;


Legend:
line(s) removed in v.1.22 
line(s) changed
 line(s) added in v.1.23

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:58