summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_scanf.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-11-02 22:50:34 +0000
committerarchie <archie@FreeBSD.org>1999-11-02 22:50:34 +0000
commit379a856804bca45181540d407b067f13b50206fa (patch)
treeab819ec57aa1f139619750c38ba931be5abe584f /sys/kern/subr_scanf.c
parent71ff24eb062b0e46efa862cb9769dd91357344e4 (diff)
downloadFreeBSD-src-379a856804bca45181540d407b067f13b50206fa.zip
FreeBSD-src-379a856804bca45181540d407b067f13b50206fa.tar.gz
Consolidate some of the various ctype(3) macros in one location.
Diffstat (limited to 'sys/kern/subr_scanf.c')
-rw-r--r--sys/kern/subr_scanf.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/subr_scanf.c b/sys/kern/subr_scanf.c
index cd6d5af..d15fe10 100644
--- a/sys/kern/subr_scanf.c
+++ b/sys/kern/subr_scanf.c
@@ -84,14 +84,6 @@
#define CT_INT 3 /* integer, i.e., strtoq or strtouq */
typedef u_quad_t (*ccfntype)(const char *, const char **, int);
-#define isspace(c) ((c) == ' ' || (c) == '\t' || \
- (c) == '\r' || (c) == '\n')
-#define isascii(c) (((c) & ~0x7f) == 0)
-#define isupper(c) ((c) >= 'A' && (c) <= 'Z')
-#define islower(c) ((c) >= 'a' && (c) <= 'z')
-#define isalpha(c) (isupper(c) || (islower(c)))
-#define isdigit(c) ((c) >= '0' && (c) <= '9')
-
static const u_char *__sccl(char *, const u_char *);
int
OpenPOWER on IntegriCloud