Skip to content
Snippets Groups Projects
Commit 5a6943c7 authored by Neil Booth's avatar Neil Booth Committed by Neil Booth
Browse files

* include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.

From-SVN: r46470
parent 173a000e
No related branches found
No related tags found
No related merge requests found
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> 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libiberty.h (hex_init): Revert delete. * libiberty.h (hex_init): Revert delete.
......
...@@ -63,7 +63,9 @@ enum { ...@@ -63,7 +63,9 @@ enum {
_sch_isalnum = _sch_isalpha|_sch_isdigit, /* A-Za-z0-9 */ _sch_isalnum = _sch_isalpha|_sch_isdigit, /* A-Za-z0-9 */
_sch_isidnum = _sch_isidst|_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_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. */ /* Character classification. */
...@@ -86,6 +88,7 @@ extern const unsigned short _sch_istable[256]; ...@@ -86,6 +88,7 @@ extern const unsigned short _sch_istable[256];
#define ISIDNUM(c) _sch_test(c, _sch_isidnum) #define ISIDNUM(c) _sch_test(c, _sch_isidnum)
#define ISIDST(c) _sch_test(c, _sch_isidst) #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_VSPACE(c) _sch_test(c, _sch_isvsp)
#define IS_NVSPACE(c) _sch_test(c, _sch_isnvsp) #define IS_NVSPACE(c) _sch_test(c, _sch_isnvsp)
#define IS_SPACE_OR_NUL(c) _sch_test(c, _sch_iscppsp) #define IS_SPACE_OR_NUL(c) _sch_test(c, _sch_iscppsp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment