summaryrefslogtreecommitdiff
path: root/include/safe-ctype.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-10-24 20:32:09 +0000
committerDJ Delorie <dj@delorie.com>2001-10-24 20:32:09 +0000
commit1d6fe6c4a6ca737fe0259cb2c71a5459efcf1e79 (patch)
tree85b2b5a7a78010433071b1526261c7fab10f9fde /include/safe-ctype.h
parent1f86af9130ed1ba590940af32971357269c64075 (diff)
downloadbinutils-redhat-1d6fe6c4a6ca737fe0259cb2c71a5459efcf1e79.tar.gz
merge from gcc
Diffstat (limited to 'include/safe-ctype.h')
-rw-r--r--include/safe-ctype.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/safe-ctype.h b/include/safe-ctype.h
index ccacda5b31..b2ad8490bd 100644
--- a/include/safe-ctype.h
+++ b/include/safe-ctype.h
@@ -63,7 +63,9 @@ enum {
_sch_isalnum = _sch_isalpha|_sch_isdigit, /* A-Za-z0-9 */
_sch_isidnum = _sch_isidst|_sch_isdigit, /* A-Za-z0-9_ */
_sch_isgraph = _sch_isalnum|_sch_ispunct, /* isprint and not space */
- _sch_iscppsp = _sch_isvsp|_sch_isnvsp /* isspace + \0 */
+ _sch_iscppsp = _sch_isvsp|_sch_isnvsp, /* isspace + \0 */
+ _sch_isbasic = _sch_isprint|_sch_iscppsp /* basic charset of ISO C
+ (plus ` and @) */
};
/* Character classification. */
@@ -86,6 +88,7 @@ extern const unsigned short _sch_istable[256];
#define ISIDNUM(c) _sch_test(c, _sch_isidnum)
#define ISIDST(c) _sch_test(c, _sch_isidst)
+#define IS_ISOBASIC(c) _sch_test(c, _sch_isbasic)
#define IS_VSPACE(c) _sch_test(c, _sch_isvsp)
#define IS_NVSPACE(c) _sch_test(c, _sch_isnvsp)
#define IS_SPACE_OR_NUL(c) _sch_test(c, _sch_iscppsp)