diff options
author | DJ Delorie <dj@redhat.com> | 2001-10-24 20:32:09 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2001-10-24 20:32:09 +0000 |
commit | 1dd695651f77dafbe2e71f008fc43924a50ad534 (patch) | |
tree | b23dee9597d7d275572caf06f15c8ab412fea978 | |
parent | 3077277874b3dc7fdb716bf57bf11e16d5c9f8b3 (diff) | |
download | cygnal-1dd695651f77dafbe2e71f008fc43924a50ad534.tar.gz cygnal-1dd695651f77dafbe2e71f008fc43924a50ad534.tar.bz2 cygnal-1dd695651f77dafbe2e71f008fc43924a50ad534.zip |
merge from gcc
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/safe-ctype.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 67caa96ee..3ca7b8db6 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2001-10-24 Neil Booth <neil@daikokuya.demon.co.uk> + + * include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New. + 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * libiberty.h (hex_init): Revert delete. diff --git a/include/safe-ctype.h b/include/safe-ctype.h index ccacda5b3..b2ad8490b 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) |