Commit 56051c0a by Neil Booth Committed by Neil Booth

cpplex.c (_cpp_equiv_tokens): Check arg_no in the CPP_MACRO_ARG case.

	* cpplex.c (_cpp_equiv_tokens): Check arg_no in the
	CPP_MACRO_ARG case.

From-SVN: r37277
parent 6c53ebff
2000-11-06 Neil Booth <neilb@earthling.net> 2000-11-06 Neil Booth <neilb@earthling.net>
* cpplex.c (_cpp_equiv_tokens): Check arg_no in the
CPP_MACRO_ARG case.
2000-11-06 Neil Booth <neilb@earthling.net>
* c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
tok.val.arg_no as appropriate. tok.val.arg_no as appropriate.
* cppexp.c (lex): Similarly. * cppexp.c (lex): Similarly.
......
...@@ -1433,7 +1433,7 @@ _cpp_equiv_tokens (a, b) ...@@ -1433,7 +1433,7 @@ _cpp_equiv_tokens (a, b)
case SPELL_CHAR: case SPELL_CHAR:
return a->val.c == b->val.c; /* Character. */ return a->val.c == b->val.c; /* Character. */
case SPELL_NONE: case SPELL_NONE:
return (a->type != CPP_MACRO_ARG || a->val.c == b->val.c); return (a->type != CPP_MACRO_ARG || a->val.arg_no == b->val.arg_no);
case SPELL_IDENT: case SPELL_IDENT:
return a->val.node == b->val.node; return a->val.node == b->val.node;
case SPELL_STRING: case SPELL_STRING:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment