This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: Tweak struct cpp_token


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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]