summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-12-07 04:54:04 +0000
committerJim Meyering <jim@meyering.net>1992-12-07 04:54:04 +0000
commitd179df1b06718b950b54963c0c11b619e28ba016 (patch)
treedc0cab0f46a3bf082ae42a20d8eeeea84bb7aece /src/fold.c
parent57e56eb7ecaf708b248af8faebd972a0ce6f03c1 (diff)
downloadcoreutils-d179df1b06718b950b54963c0c11b619e28ba016.tar.xz
Remove inclusion of <ctype.h> and definitions of is* ctype macros to system.h.
Change a few more uses of is* ctype macros to (protected) upper case versions.
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fold.c b/src/fold.c
index 3cd471596..fcdd885b1 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -19,10 +19,7 @@
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
-#include <ctype.h>
-#ifndef isblank
-#define isblank(c) ((c) == ' ' || (c) == '\t')
-#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
@@ -169,7 +166,7 @@ fold_file (filename, width)
for (logical_end = offset_out - 1; logical_end >= 0;
logical_end--)
- if (isblank (line_out[logical_end]))
+ if (ISBLANK (line_out[logical_end]))
break;
if (logical_end >= 0)
{