summaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-09 02:12:21 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-09 02:12:21 +0000
commit748634526fb74b0849a550b00ba88a44d3f81f28 (patch)
tree170774d1e0ee75302e10ef8351ebd90910123e80 /gcc/genautomata.c
parent5f0cd095b322a62b9229242705d610da9baa2d7c (diff)
downloadgcc-748634526fb74b0849a550b00ba88a44d3f81f28.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54392 138bc75d-0d04-0410-961f-82ee72b054a4
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 900cfb610c3..f2235f368ff 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
{