aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-04-22 19:28:00 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-04-22 19:28:00 +0000
commit1067694a52b1cb7b5508c1240cc1d58bc71113d4 (patch)
tree0004496cf3900a93b9e0ad258622e9c33e36e97d /gcc/cppmacro.c
parent45aca21f40ea1aad7cf94857e064fa0cd9ea1a93 (diff)
downloadgcc-1067694a52b1cb7b5508c1240cc1d58bc71113d4.zip
gcc-1067694a52b1cb7b5508c1240cc1d58bc71113d4.tar.gz
gcc-1067694a52b1cb7b5508c1240cc1d58bc71113d4.tar.bz2
c-lex.c (c_lex): Handle CPP_OTHER differently.
* c-lex.c (c_lex): Handle CPP_OTHER differently. * cppexp.c (_cpp_parse_expr): Similarly. * cpplex.c (SPELL_CHAR): Remove. (_cpp_lex_direct): Stray chars are saved as byte strings. (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't handle SPELL_CHAR. (cpp_avoid_paste): Update handling of CPP_OTHER. * cpplib.h: Spell CPP_OTHER like a number. (struct cpp_token): Remove member c. * cppmacro.c (stringify_arg): Update handling of CPP_OTHER. From-SVN: r65951
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 0898dac..84692f3 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -395,7 +395,7 @@ stringify_arg (pfile, arg)
else
dest = cpp_spell_token (pfile, token, dest);
- if (token->type == CPP_OTHER && token->val.c == '\\')
+ if (token->type == CPP_OTHER && token->val.str.text[0] == '\\')
backslash_count++;
else
backslash_count = 0;