diff options
author | Jim Meyering <jim@meyering.net> | 1992-12-07 04:54:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-12-07 04:54:04 +0000 |
commit | d179df1b06718b950b54963c0c11b619e28ba016 (patch) | |
tree | dc0cab0f46a3bf082ae42a20d8eeeea84bb7aece /src/uniq.c | |
parent | 57e56eb7ecaf708b248af8faebd972a0ce6f03c1 (diff) | |
download | coreutils-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/uniq.c')
-rw-r--r-- | src/uniq.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/uniq.c b/src/uniq.c index 1b8e8e4d3..944727f81 100644 --- a/src/uniq.c +++ b/src/uniq.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> @@ -249,9 +246,9 @@ find_field (line) for (count = 0; count < skip_fields && i < size; count++) { - while (i < size && isblank (lp[i])) + while (i < size && ISBLANK (lp[i])) i++; - while (i < size && !isblank (lp[i])) + while (i < size && !ISBLANK (lp[i])) i++; } |