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]
Other format: [Raw text]

Re: Patch: remove ObjC-related globals from C FE


Tom Tromey wrote:
> -static int objc_need_raw_identifier = 0;
> -#define OBJC_NEED_RAW_IDENTIFIER(VAL)		\
> +#define OBJC_NEED_RAW_IDENTIFIER(PARSER, VAL)	\
>    do {						\
>      if (c_dialect_objc ())			\
> -      objc_need_raw_identifier = VAL;		\
> +      parser->objc_need_raw_identifier = VAL;	\
>    } while (0)

s/parser/PARSER/

Of course, it happens to work because everywhere you're calling it,
your argument is actually called 'parser', but you obviously intended
to use parameter substitution, not magic names.


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