summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/kobj_lex.h
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2015-09-05 13:08:15 +0200
committerRichard Lowe <richlowe@richlowe.net>2015-09-21 11:13:25 -0400
commit6b1aed11aada50610fd9f5a9e033c24ca7ee5f0c (patch)
tree44aebe8c499e932547cd8d4b793e75bec2c5f629 /usr/src/uts/common/sys/kobj_lex.h
parent228fe137d4532f2991e203d0fd551ac158452f94 (diff)
downloadillumos-gate-6b1aed11aada50610fd9f5a9e033c24ca7ee5f0c.tar.gz
6201 cleanup issues between sys/ctype.h and sys/kobj_lex.h when both included
Reviewed by: Josef Sipek <jeffpc@josefsipek.net> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/uts/common/sys/kobj_lex.h')
-rw-r--r--usr/src/uts/common/sys/kobj_lex.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr/src/uts/common/sys/kobj_lex.h b/usr/src/uts/common/sys/kobj_lex.h
index 27f77be335..ca6ef40f6a 100644
--- a/usr/src/uts/common/sys/kobj_lex.h
+++ b/usr/src/uts/common/sys/kobj_lex.h
@@ -22,12 +22,14 @@
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2015 PALO, Richard. All rights reserved.
*/
#ifndef _SYS_KOBJ_LEX_H
#define _SYS_KOBJ_LEX_H
-#pragma ident "%Z%%M% %I% %E% SMI"
+#include <sys/ctype.h>
#ifdef __cplusplus
extern "C" {
@@ -48,14 +50,6 @@ extern "C" {
#define isnewline(ch) ((ch) == '\n' || (ch) == '\r' || (ch) == '\f')
-#define isdigit(ch) ((ch) >= '0' && (ch) <= '9')
-
-#define isxdigit(ch) (isdigit(ch) || ((ch) >= 'a' && (ch) <= 'f') || \
- ((ch) >= 'A' && (ch) <= 'F'))
-
-#define isalpha(ch) (((ch) >= 'a' && (ch) <= 'z') || \
- ((ch) >= 'A' && (ch) <= 'Z'))
-
#define isalphanum(ch) (isalpha(ch) || isdigit(ch))
#define isnamechar(ch) (isalphanum(ch) || (ch) == '_' || (ch) == '-')