Displaying 1 result from an estimated 1 matches for "u_strcmp".
2003 Oct 01
1
PATCH: option to ignore case in filenames
...Tue Sep 30 18:16:35 2003
@@ -1137,6 +1137,13 @@
**/
int file_compare(struct file_struct **f1, struct file_struct **f2)
{
+ extern int ignore_case;
+ int (*cf)(const char *, const char *);
+ if (ignore_case)
+ cf = strcasecmp;
+ else
+ cf = u_strcmp;
+
if (!(*f1)->basename && !(*f2)->basename)
return 0;
if (!(*f1)->basename)
@@ -1144,8 +1151,8 @@
if (!(*f2)->basename)
return 1;
if ((*f1)->dirname == (*f2)->dirname)
- return u_strcmp((*f1)-&g...