diff options
author | Linas Vepstas <linas@linas.org> | 1999-09-08 06:51:23 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-09-07 23:51:23 -0700 |
commit | f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07 (patch) | |
tree | d3da13fb9f076103bbf7f7786f2153feff6380a3 /gcc/c-lex.c | |
parent | a2b368b6e91a83e3b8d48d86fcd55614b54f40aa (diff) | |
download | gcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.zip gcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.tar.gz gcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.tar.bz2 |
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/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ccb113f..96a4b73 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -1015,7 +1015,7 @@ readescape (ignore_ptr) case 'E': if (pedantic) pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c); - return 033; + return TARGET_ESC; case '?': return c; @@ -1053,7 +1053,7 @@ yyerror (msgid) error ("%s before string constant", string); else if (token_buffer[0] == '\'') error ("%s before character constant", string); - else if (token_buffer[0] < 040 || (unsigned char) token_buffer[0] >= 0177) + else if (!ISGRAPH(token_buffer[0])) error ("%s before character 0%o", string, (unsigned char) token_buffer[0]); else error ("%s before `%s'", string, token_buffer); |