mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
fl_filename_match() was not doing a case-insensitive comparison on UNIX
(only OSX and Windows...) This makes cross-platform patterns complicated... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.1
|
CHANGES IN FLTK 1.1.1
|
||||||
|
|
||||||
|
- fl_filename_match() was inconsistently doing case-
|
||||||
|
insensitive matching.
|
||||||
- Fl_Button redraw fix for bug #620979 (focus boxes and
|
- Fl_Button redraw fix for bug #620979 (focus boxes and
|
||||||
check buttons).
|
check buttons).
|
||||||
- Fl_Text_Display fix for bug #620633 (crash on
|
- Fl_Text_Display fix for bug #620633 (crash on
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: filename_match.cxx,v 1.5.2.4.2.3 2002/03/25 21:08:42 easysw Exp $"
|
// "$Id: filename_match.cxx,v 1.5.2.4.2.4 2002/10/11 02:12:15 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Pattern matching routines for the Fast Light Tool Kit (FLTK).
|
// Pattern matching routines for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -92,17 +92,13 @@ int fl_filename_match(const char *s, const char *p) {
|
|||||||
case '\\': // quote next character
|
case '\\': // quote next character
|
||||||
if (*p) p++;
|
if (*p) p++;
|
||||||
default:
|
default:
|
||||||
#if defined(WIN32) || defined(__CYGWIN__) || defined(__APPLE__)
|
|
||||||
if (tolower(*s) != tolower(*(p-1))) return 0;
|
if (tolower(*s) != tolower(*(p-1))) return 0;
|
||||||
s++;
|
s++;
|
||||||
#else
|
|
||||||
if (*s++ != *(p-1)) return 0;
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: filename_match.cxx,v 1.5.2.4.2.3 2002/03/25 21:08:42 easysw Exp $".
|
// End of "$Id: filename_match.cxx,v 1.5.2.4.2.4 2002/10/11 02:12:15 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user