diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-11 16:03:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-11 16:03:13 +0000 |
| commit | fdcdc8fd46547a7cd77010db6b57f9cc9f4f51d1 (patch) | |
| tree | e7cfd7b774e59fe9b2092ede165e3dd058a20955 /src/filename_match.cxx | |
| parent | 6905f61c2c00bd2e6777b0ab9d843fbe1a46dcc4 (diff) | |
Multiple fixes from Sebastien.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/filename_match.cxx')
| -rw-r--r-- | src/filename_match.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/filename_match.cxx b/src/filename_match.cxx index a9e6d57a2..69ac82245 100644 --- a/src/filename_match.cxx +++ b/src/filename_match.cxx @@ -1,5 +1,5 @@ // -// "$Id: filename_match.cxx,v 1.5.2.4 2001/01/22 15:13:40 easysw Exp $" +// "$Id: filename_match.cxx,v 1.5.2.4.2.1 2001/12/11 16:03:13 easysw Exp $" // // Pattern matching routines for the Fast Light Tool Kit (FLTK). // @@ -89,25 +89,20 @@ int filename_match(const char *s, const char *p) { case 0: // end of pattern return !*s; -#if defined(WIN32) && !defined(__CYGWIN__) case '\\': // quote next character if (*p) p++; - if (*s++ != *(p-1)) return 0; - break; default: +#if defined(WIN32) || defined(__CYGWIN__) || defined(__APPLE__) if (tolower(*s) != tolower(*(p-1))) return 0; s++; #else - case '\\': // quote next character - if (*p) p++; - default : if (*s++ != *(p-1)) return 0; - break; #endif + break; } } } // -// End of "$Id: filename_match.cxx,v 1.5.2.4 2001/01/22 15:13:40 easysw Exp $". +// End of "$Id: filename_match.cxx,v 1.5.2.4.2.1 2001/12/11 16:03:13 easysw Exp $". // |
