aboutsummaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-06-09 02:12:21 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-06-09 02:12:21 +0000
commit1f8e46828a49664e245a474f5c0c4ebd5c7bc213 (patch)
tree170774d1e0ee75302e10ef8351ebd90910123e80 /gcc/genautomata.c
parentf210d2390da5b25abee4bd86e4263e3d3bc5395f (diff)
downloadgcc-1f8e46828a49664e245a474f5c0c4ebd5c7bc213.zip
gcc-1f8e46828a49664e245a474f5c0c4ebd5c7bc213.tar.gz
gcc-1f8e46828a49664e245a474f5c0c4ebd5c7bc213.tar.bz2
genautomata.c: Don't include ctype.h or limits.h.
* genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE, not isspace. * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in lieu of isspace/IDchar. * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum. * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or ISSPACE. From-SVN: r54392
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 900cfb6..f2235f3 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -106,18 +106,13 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "obstack.h"
#include "errors.h"
-#include <ctype.h>
#include <math.h>
#include "hashtab.h"
#include "varray.h"
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#else
#ifndef CHAR_BIT
#define CHAR_BIT 8
#endif
-#endif
#include "genattrtab.h"
@@ -1301,7 +1296,7 @@ next_sep_el (pstr, sep, par_flag)
int n_spaces;
/* Remove leading whitespaces. */
- while (isspace ((int) **pstr))
+ while (ISSPACE ((int) **pstr))
(*pstr)++;
if (**pstr == '\0')
@@ -1316,7 +1311,7 @@ next_sep_el (pstr, sep, par_flag)
pars_num--;
else if (pars_num == 0 && *p == sep)
break;
- if (pars_num == 0 && isspace ((int) *p))
+ if (pars_num == 0 && ISSPACE ((int) *p))
n_spaces++;
else
{