summaryrefslogtreecommitdiff
path: root/gcc/scan.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-06 12:56:58 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-06 12:56:58 +0000
commitcc404a47ac04231b68a1f1efb7b82621f2bdf54a (patch)
tree4be0ba56ed3d601b4b5711c8247791d8c7acf4b1 /gcc/scan.c
parentbf02c19b0eac251543ecbdd501cc77a68abadd25 (diff)
downloadgcc-cc404a47ac04231b68a1f1efb7b82621f2bdf54a.tar.gz
* c-common.c: Convert to using ctype macros defined in system.h.
* c-lex.c: Likewise. * cccp.c: Likewise. * collect2.c: Likewise. * rs6000.c: Likewise. * cpplib.c: Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * gen-protos.c: Likewise. * pexecute.c: Likewise. * protoize.c: Likewise. * rtl.c: Likewise. * scan.c: Likewise. * stmt.c: Likewise. * tlink.c: Likewise. * toplev.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19579 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/scan.c')
-rw-r--r--gcc/scan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/scan.c b/gcc/scan.c
index 9f89d67b034..63e24708ff6 100644
--- a/gcc/scan.c
+++ b/gcc/scan.c
@@ -65,13 +65,13 @@ scan_ident (fp, s, c)
int c;
{
s->ptr = s->base;
- if (isalpha(c) || c == '_')
+ if (ISALPHA(c) || c == '_')
{
for (;;)
{
SSTRING_PUT(s, c);
c = getc (fp);
- if (c == EOF || !(isalnum(c) || c == '_'))
+ if (c == EOF || !(ISALNUM(c) || c == '_'))
break;
}
}
@@ -210,18 +210,18 @@ get_token (fp, s)
}
if (c == EOF)
return EOF;
- if (isdigit (c))
+ if (ISDIGIT (c))
{
do
{
SSTRING_PUT(s, c);
c = getc (fp);
- } while (c != EOF && isdigit(c));
+ } while (c != EOF && ISDIGIT(c));
ungetc (c, fp);
c = INT_TOKEN;
goto done;
}
- if (isalpha (c) || c == '_')
+ if (ISALPHA (c) || c == '_')
{
c = scan_ident (fp, s, c);
ungetc (c, fp);