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
This commit is contained in:
Neil Booth 2000-11-06 18:47:21 +00:00 committed by Neil Booth
parent 6c53ebffc5
commit 56051c0abd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1433,7 +1433,7 @@ _cpp_equiv_tokens (a, b)
case SPELL_CHAR:
return a->val.c == b->val.c; /* Character. */
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:
return a->val.node == b->val.node;
case SPELL_STRING: