X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffnmatch.c;h=bd413588526dde66bf048e7cb76eb4d7557c17c7;hb=1c01f30b6b6a4b087e613f7122095058bfa36c54;hp=4fc19b4fe0caeb5e6414d7a47620e733a913e05f;hpb=4fde4952d5a3db51a122f96a31bfcd6879399fea;p=gnulib.git diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 4fc19b4fe..bd4135885 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -86,15 +86,8 @@ extern int fnmatch (const char *pattern, const char *string, int flags); #if defined _LIBC || !defined __GNU_LIBRARY__ || !HAVE_FNMATCH_GNU -# ifdef isblank -# define ISBLANK(c) isblank (c) -# else -# define ISBLANK(c) ((c) == ' ' || (c) == '\t') -# endif -# ifdef isgraph -# define ISGRAPH(c) isgraph (c) -# else -# define ISGRAPH(c) (isprint (c) && !isspace (c)) +# if ! (defined isblank || HAVE_DECL_ISBLANK) +# define isblank(c) ((c) == ' ' || (c) == '\t') # endif # define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) @@ -152,11 +145,7 @@ static int posixly_correct; # endif /* Note that this evaluates C many times. */ -# ifdef _LIBC -# define FOLD(c) ((flags & FNM_CASEFOLD) ? tolower (c) : (c)) -# else -# define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c)) -# endif +# define FOLD(c) ((flags & FNM_CASEFOLD) ? tolower (c) : (c)) # define CHAR char # define UCHAR unsigned char # define INT int