diff options
author | Graham Stott <grahams@redhat.com> | 2002-01-10 08:49:21 +0000 |
---|---|---|
committer | Graham Stott <grahams@gcc.gnu.org> | 2002-01-10 08:49:21 +0000 |
commit | 8fabd4e2138e4f95ec13a4e6394a325f8d23bfb5 (patch) | |
tree | 629c147a32620745735778eb45d99526dfd035c7 /gcc | |
parent | e16233999b6a5bdbe15090785fe43a333369f6ad (diff) | |
download | gcc-8fabd4e2138e4f95ec13a4e6394a325f8d23bfb5.zip gcc-8fabd4e2138e4f95ec13a4e6394a325f8d23bfb5.tar.gz gcc-8fabd4e2138e4f95ec13a4e6394a325f8d23bfb5.tar.bz2 |
spew.c (YYCHAR): Uppercase macro parameter and add parenthesis.
* spew.c (YYCHAR): Uppercase macro parameter and add
parenthesis.
(YYCODE): Likewise.
(NAME): Uppercase macro parameter.
From-SVN: r48717
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/spew.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b414e27..b4cc634 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2002-01-20 Graham Stott <grahams@redhat.com> + + * spew.c (YYCHAR): Uppercase macro parameter and add + parenthesis. + (YYCODE): Likewise. + (NAME): Uppercase macro parameter. + 2002-01-09 Graham Stott <grahams@redhat.com> * decl.h ( grokdeclarator): Wrap long line. diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index 138e23e..9f36d06 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -1,6 +1,6 @@ /* Type Analyzer for GNU C++. Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Hacked... nay, bludgeoned... by Mark Eichin (eichin@cygnus.com) This file is part of GNU CC. @@ -261,8 +261,8 @@ read_token (t) switch (last_token) { -#define YYCHAR(yy) t->yychar = yy; break; -#define YYCODE(c) t->yylval.code = c; +#define YYCHAR(YY) t->yychar = (YY); break; +#define YYCODE(C) t->yylval.code = (C); case CPP_EQ: YYCHAR('='); case CPP_NOT: YYCHAR('!'); @@ -1465,7 +1465,7 @@ debug_yychar (yy) #endif -#define NAME(type) cpp_type2name (type) +#define NAME(TYPE) cpp_type2name (TYPE) void yyerror (msgid) |