diff options
author | Richard PALO <richard@NetBSD.org> | 2015-09-05 13:08:15 +0200 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2015-09-21 11:13:25 -0400 |
commit | 6b1aed11aada50610fd9f5a9e033c24ca7ee5f0c (patch) | |
tree | 44aebe8c499e932547cd8d4b793e75bec2c5f629 /usr/src/uts/common/sys/kobj_lex.h | |
parent | 228fe137d4532f2991e203d0fd551ac158452f94 (diff) | |
download | illumos-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.h | 12 |
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) == '-') |