diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-03 08:44:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-03 08:44:06 +0000 |
commit | 8dc1b2caf43a2d2dd686ad0a6bf24af6900ca8b3 (patch) | |
tree | 64823582d93c1f2ade28bce875c82f898e804d87 /lib | |
parent | d19f92165331863fee23f2d048dfbfb9b72c5b7b (diff) | |
download | coreutils-8dc1b2caf43a2d2dd686ad0a6bf24af6900ca8b3.tar.xz |
cppi
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fnmatch.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 8499a462d..9bff8c220 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -27,18 +27,18 @@ #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 } |