summaryrefslogtreecommitdiff
path: root/src/join.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/join.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/join.c')
-rw-r--r--src/join.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/join.c b/src/join.c
index 2399ad4ac..c826df824 100644
--- a/src/join.c
+++ b/src/join.c
@@ -19,23 +19,12 @@
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
-#include <ctype.h>
-#ifndef isblank
-#define isblank(c) ((c) == ' ' || (c) == '\t')
-#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
#include "system.h"
-#ifdef isascii
-#define ISSPACE(c) (isascii(c) && isspace(c))
-#define ISDIGIT(c) (isascii(c) && isdigit(c))
-#else
-#define ISSPACE(c) isspace(c)
-#define ISDIGIT(c) isdigit(c)
-#endif
-
char *xmalloc ();
char *xrealloc ();
void error ();
@@ -526,7 +515,7 @@ add_field_list (str)
for (; *str; str++)
{
- if (*str == ',' || isblank (*str))
+ if (*str == ',' || ISBLANK (*str))
{
added += add_field (file, field);
file = field = -1;