summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:08:55 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:08:55 +0000
commit197b96d06916887c4c167a3ee25edfdb3631ac71 (patch)
treea80b97e630d7ad60e5479022aef34f3ace3105ab /src/wc.c
parentb3e1ad7a5d972ee947831e9d943a12c239864e72 (diff)
downloadcoreutils-197b96d06916887c4c167a3ee25edfdb3631ac71.tar.xz
Adjust to today's renaming changes in system.h.
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/wc.c b/src/wc.c
index 1da5373e3..f533b7ca6 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -38,14 +38,10 @@
#endif
#if !defined iswspace && !HAVE_ISWSPACE
# define iswspace(wc) \
- ((wc) == to_uchar (wc) && ISSPACE (to_uchar (wc)))
+ ((wc) == to_uchar (wc) && isspace (to_uchar (wc)))
#endif
-/* Include this after wctype.h so that we `#undef' ISPRINT
- (from Solaris's euc.h, from widec.h, from wctype.h) before
- redefining and using it. */
#include "system.h"
-
#include "error.h"
#include "inttostr.h"
#include "quote.h"
@@ -474,10 +470,10 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
in_word = false;
break;
default:
- if (ISPRINT (to_uchar (p[-1])))
+ if (isprint (to_uchar (p[-1])))
{
linepos++;
- if (ISSPACE (to_uchar (p[-1])))
+ if (isspace (to_uchar (p[-1])))
goto word_separator;
in_word = true;
}