This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: safe-ctype.h tweak
DJ Delorie wrote:-
> Can we call it IS_ISOBASIC or something more descriptive?
Of course! OK for this?
Neil.
* include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.
Index: safe-ctype.h
===================================================================
RCS file: /cvs/gcc/gcc/include/safe-ctype.h,v
retrieving revision 1.3
diff -u -p -r1.3 safe-ctype.h
--- safe-ctype.h 2001/03/02 01:17:23 1.3
+++ safe-ctype.h 2001/10/24 18:25:08
@@ -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
#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)