summaryrefslogtreecommitdiff
path: root/gcc/genextract.c
diff options
context:
space:
mode:
authorLinas Vepstas <linas@linas.org>1999-09-08 06:51:23 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-09-07 23:51:23 -0700
commitf3ad1f9c0d8f61ccd729b0b9687944856dd9cf07 (patch)
treed3da13fb9f076103bbf7f7786f2153feff6380a3 /gcc/genextract.c
parenta2b368b6e91a83e3b8d48d86fcd55614b54f40aa (diff)
downloadgcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.tar.gz
Linas Vepstas <linas@linas.org>
* c-common.c: Use ISGRAPH, ISLOWER, toupper. * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c, genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise. * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC. * defaults.h (TARGET_ESC): Add default. From-SVN: r29192
Diffstat (limited to 'gcc/genextract.c')
-rw-r--r--gcc/genextract.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/genextract.c b/gcc/genextract.c
index 7caec63ae84..e5c528bc19e 100644
--- a/gcc/genextract.c
+++ b/gcc/genextract.c
@@ -321,9 +321,9 @@ print_path (path)
for (i = len - 1; i >=0 ; i--)
{
- if (path[i] >= 'a' && path[i] <= 'z')
+ if (ISLOWER(path[i]))
printf ("XVECEXP (");
- else if (path[i] >= '0' && path[i] <= '9')
+ else if (ISDIGIT(path[i]))
printf ("XEXP (");
else
abort ();
@@ -333,9 +333,9 @@ print_path (path)
for (i = 0; i < len; i++)
{
- if (path[i] >= 'a' && path[i] <= 'z')
+ if (ISLOWER(path[i]))
printf (", 0, %d)", path[i] - 'a');
- else if (path[i] >= '0' && path[i] <= '9')
+ else if (ISDIGIT(path[i]))
printf (", %d)", path[i] - '0');
else
abort ();