diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-06 18:43:32 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-06 18:43:32 +0000 |
commit | 6c53ebffc53b500722f4de9ad4c225ee199c5ca6 (patch) | |
tree | 7c3e54eeed36fe96129f61bda5ccc8088000d6e9 /gcc/cpplex.c | |
parent | d1877a9b13bf14c010facc0618e57ba7a789e468 (diff) | |
download | gcc-6c53ebffc53b500722f4de9ad4c225ee199c5ca6.zip gcc-6c53ebffc53b500722f4de9ad4c225ee199c5ca6.tar.gz gcc-6c53ebffc53b500722f4de9ad4c225ee199c5ca6.tar.bz2 |
c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or tok.val.arg_no as appropriate.
* c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
tok.val.arg_no as appropriate.
* cppexp.c (lex): Similarly.
* cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
* cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
cpp_macro_definition): Similarly.
* cpplib.h (struct cpp_token): Replace aux with c and arg_no.
From-SVN: r37276
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 86dbf5a..c77ed91 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1241,7 +1241,7 @@ _cpp_lex_token (pfile, result) random_char: default: result->type = CPP_OTHER; - result->val.aux = c; + result->val.c = c; break; } } @@ -1321,7 +1321,7 @@ cpp_spell_token (pfile, token, buffer) break; case SPELL_CHAR: - *buffer++ = token->val.aux; + *buffer++ = token->val.c; break; case SPELL_NONE: @@ -1410,7 +1410,7 @@ cpp_output_token (token, fp) break; case SPELL_CHAR: - putc (token->val.aux, fp); + putc (token->val.c, fp); break; case SPELL_NONE: @@ -1431,9 +1431,9 @@ _cpp_equiv_tokens (a, b) case SPELL_OPERATOR: return 1; case SPELL_CHAR: - return a->val.aux == b->val.aux; /* Character. */ + return a->val.c == b->val.c; /* Character. */ case SPELL_NONE: - return (a->type != CPP_MACRO_ARG || a->val.aux == b->val.aux); + return (a->type != CPP_MACRO_ARG || a->val.c == b->val.c); case SPELL_IDENT: return a->val.node == b->val.node; case SPELL_STRING: @@ -1565,7 +1565,7 @@ cpp_can_paste (pfile, token1, token2, digraph) break; case CPP_OTHER: - if (CPP_OPTION (pfile, objc) && token1->val.aux == '@') + if (CPP_OPTION (pfile, objc) && token1->val.c == '@') { if (b == CPP_NAME) return CPP_NAME; if (b == CPP_STRING) return CPP_OSTRING; @@ -1627,7 +1627,7 @@ cpp_avoid_paste (pfile, token1, token2) case CPP_NUMBER: return (b == CPP_NUMBER || b == CPP_NAME || c == '.' || c == '+' || c == '-'); case CPP_OTHER: return (CPP_OPTION (pfile, objc) - && token1->val.aux == '@' + && token1->val.c == '@' && (b == CPP_NAME || b == CPP_STRING)); default: break; } |