summaryrefslogtreecommitdiff
path: root/src/tr.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/tr.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/tr.c')
-rw-r--r--src/tr.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/tr.c b/src/tr.c
index e943903f8..8ba07d0a7 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -19,33 +19,6 @@
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
-#include <ctype.h>
-
-#ifndef isascii
-#define isascii(c) 1
-#endif
-
-#ifdef isblank
-#define ISBLANK(c) (isascii (c) isblank (c))
-#else
-#define ISBLANK(c) ((c) == ' ' || (c) == '\t')
-#endif
-#ifdef isgraph
-#define ISGRAPH(c) (isascii (c) isgraph (c))
-#else
-#define ISGRAPH(c) (isascii (c) isprint (c) && !isspace (c))
-#endif
-
-#define ISPRINT(c) (isascii (c) isprint (c))
-#define ISDIGIT(c) (isascii (c) isdigit (c))
-#define ISALNUM(c) (isascii (c) isalnum (c))
-#define ISALPHA(c) (isascii (c) isalpha (c))
-#define ISCNTRL(c) (isascii (c) iscntrl (c))
-#define ISLOWER(c) (isascii (c) islower (c))
-#define ISPUNCT(c) (isascii (c) ispunct (c))
-#define ISSPACE(c) (isascii (c) isspace (c))
-#define ISUPPER(c) (isascii (c) isupper (c))
-#define ISXDIGIT(c) (isascii (c) isxdigit (c))
#include <stdio.h>
#include <assert.h>