* objcopy.c (setup_section): Copy entsize.
[binutils-gdb.git] / include / safe-ctype.h
index 8f3f00ae2b03746e8b671bcbef7b5c22ee3e3e2c..b2ad8490bd0454abadb28f1ad694c6a242bf36f4 100644 (file)
@@ -1,6 +1,6 @@
 /* <ctype.h> replacement macros.
 
-   Copyright 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    Contributed by Zack Weinberg <zackw@stanford.edu>.
 
 This file is part of the libiberty library.
@@ -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)