This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Tweak struct cpp_token
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: cpplib: Tweak struct cpp_token
- From: Neil Booth <NeilB at earthling dot net>
- Date: Mon, 6 Nov 2000 18:46:36 +0000
- References: <20001106184201.A17804@daikokuya.demon.co.uk>
Neil Booth wrote:-
> - return (a->type != CPP_MACRO_ARG || a->val.aux == b->val.aux);
> + return (a->type != CPP_MACRO_ARG || a->val.c == b->val.c);
Oops, a typo.
Neil.
* cpplex.c (_cpp_equiv_tokens): Check arg_no in the
CPP_MACRO_ARG case.
Index: cpplex.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cpplex.c,v
retrieving revision 1.112
diff -u -p -r1.112 cpplex.c
--- cpplex.c 2000/11/06 18:43:30 1.112
+++ cpplex.c 2000/11/06 18:45:19
@@ -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: