]> Dogcows Code - chaz/tar/commitdiff
fileutils 4.0.35
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Nov 2000 08:44:01 +0000 (08:44 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Nov 2000 08:44:01 +0000 (08:44 +0000)
lib/fnmatch.c

index 8499a462d2b7c714b7e093c72005accf7ee25a6f..9bff8c220a2f1aaa03f54d7599aa390f3c083eca 100644 (file)
 #include <fnmatch.h>
 #include <ctype.h>
 
-# if defined STDC_HEADERS || !defined isascii
-#  define IN_CTYPE_DOMAIN(c) 1
-# else
-#  define IN_CTYPE_DOMAIN(c) isascii (c)
-# endif
+#if defined STDC_HEADERS || !defined isascii
+# define IN_CTYPE_DOMAIN(c) 1
+#else
+# define IN_CTYPE_DOMAIN(c) isascii (c)
+#endif
 
-# define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c))
+#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c))
 
 
-# ifndef errno
+#ifndef errno
 extern int errno;
-# endif
+#endif
 
 /* Match STRING against the filename pattern PATTERN, returning zero if
    it matches, nonzero if not.  */
@@ -49,9 +49,9 @@ fnmatch (const char *pattern, const char *string, int flags)
   register char c;
 
 /* Note that this evaluates C many times.  */
-# define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER ((unsigned char) (c)) \
-                  ? tolower ((unsigned char) (c)) \
-                  : (c))
+#define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER ((unsigned char) (c)) \
+                 ? tolower ((unsigned char) (c)) \
+                 : (c))
 
   while ((c = *p++) != '\0')
     {
@@ -226,5 +226,5 @@ fnmatch (const char *pattern, const char *string, int flags)
 
   return FNM_NOMATCH;
 
-# undef FOLD
+#undef FOLD
 }
This page took 0.025127 seconds and 4 git commands to generate.