From 0653b94e4e5de2cc915c8a357964d59e78ca02c7 Mon Sep 17 00:00:00 2001 From: zack Date: Wed, 9 Aug 2000 19:41:12 +0000 Subject: * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE instead of extra_c_flags. (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags. * configure: Regenerate. * config.in: Regenerate. * cpperror.c (cpp_type2name): New function. * cpplex.c (lex_line): If we issued an error for an invalid preprocessing directive, discard that logical line. * cpplib.c (do_line): Call a hook function if the current file is renamed by #line. (do_ident): Pass the contents of the string, not the entire token, to the callback function. * cpplib.h (CPP_LAST_PUNCTUATOR): New #define. (cb.rename_file): New hook function. (cb.ident): Adjust prototype. (cpp_type2name): Prototype. * cppmacro.c (dump_macro_args): Correct precedence lossage. * cppmain.c (cb_ident): Update for changed interface. (cb_rename_file): New function. (main): Set rename callback. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35593 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppmacro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppmacro.c') diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index 00f2dfb3eef..ade67d70c31 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -595,7 +595,7 @@ dump_macro_args (fp, list) unsigned int len; len = ustrlen (param); - if (!list->flags & VAR_ARGS || ustrcmp (param, U"__VA_ARGS__")) + if (!(list->flags & VAR_ARGS) || ustrcmp (param, U"__VA_ARGS__")) ufputs (param, fp); if (i < list->paramc) fputs (", ", fp); -- cgit v1.2.3