summaryrefslogtreecommitdiff
path: root/lib/exclude.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 16:59:05 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 16:59:05 +0000
commitcb052e4f6cc723bc408f32963e921705f3286c94 (patch)
treed6f6172f7cff8f5c44f9ae557a525e4b1baf277b /lib/exclude.c
parent28edf6a75ef4f95e18da5b506bdcf122a53ca3ec (diff)
downloadcoreutils-cb052e4f6cc723bc408f32963e921705f3286c94.tar.xz
Update from gnulib.
Diffstat (limited to 'lib/exclude.c')
-rw-r--r--lib/exclude.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/exclude.c b/lib/exclude.c
index 6bd7339f4..f5978a966 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -43,18 +43,6 @@
# include "unlocked-io.h"
#endif
-#if STDC_HEADERS || (! defined isascii && ! HAVE_ISASCII)
-# define IN_CTYPE_DOMAIN(c) true
-#else
-# define IN_CTYPE_DOMAIN(c) isascii (c)
-#endif
-
-static inline bool
-is_space (unsigned char c)
-{
- return IN_CTYPE_DOMAIN (c) && isspace (c);
-}
-
/* Non-GNU systems lack these options, so we don't need to check them. */
#ifndef FNM_CASEFOLD
# define FNM_CASEFOLD 0
@@ -244,12 +232,12 @@ add_exclude_file (void (*add_func) (struct exclude *, char const *, int),
{
char *pattern_end = p;
- if (is_space (line_end))
+ if (isspace ((unsigned char) line_end))
{
for (; ; pattern_end--)
if (pattern_end == pattern)
goto next_pattern;
- else if (! is_space (pattern_end[-1]))
+ else if (! isspace ((unsigned char) pattern_end[-1]))
break;
}