summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:05:33 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:05:33 +0000
commit2b001e3490474177119f7668dddf3a8d17073d9a (patch)
tree5e9dffafb88a0b8aca9af2168eca259638ce5f69
parentc7a6c4014f2f487f180a05159ef4a5dfbf2ac9e6 (diff)
downloadcoreutils-2b001e3490474177119f7668dddf3a8d17073d9a.tar.xz
(is_blank): Remove; no longer needed. All uses
replaced by isblank (to_uchar (...)).
-rw-r--r--src/join.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/join.c b/src/join.c
index 7851b3160..77a389604 100644
--- a/src/join.c
+++ b/src/join.c
@@ -174,14 +174,6 @@ E.g., use `sort -k 1b,1' if `join' has no options.\n\
exit (status);
}
-/* Return true if C is a blank (a default input field separator). */
-
-static inline bool
-is_blank (unsigned char c)
-{
- return ISBLANK (c) != 0;
-}
-
/* Record a field in LINE, with location FIELD and size LEN. */
static void
@@ -216,19 +208,19 @@ xfields (struct line *line)
else
{
/* Skip leading blanks before the first field. */
- while (is_blank (*ptr))
+ while (isblank (to_uchar (*ptr)))
if (++ptr == lim)
return;
do
{
char *sep;
- for (sep = ptr + 1; sep != lim && ! is_blank (*sep); sep++)
+ for (sep = ptr + 1; sep != lim && ! isblank (to_uchar (*sep)); sep++)
continue;
extract_field (line, ptr, sep - ptr);
if (sep == lim)
return;
- for (ptr = sep + 1; ptr != lim && is_blank (*ptr); ptr++)
+ for (ptr = sep + 1; ptr != lim && isblank (to_uchar (*ptr)); ptr++)
continue;
}
while (ptr != lim);