spew.c (YYCHAR): Uppercase macro parameter and add parenthesis.
authorGraham Stott <grahams@redhat.com>
Thu, 10 Jan 2002 08:49:21 +0000 (08:49 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Thu, 10 Jan 2002 08:49:21 +0000 (08:49 +0000)
        * spew.c (YYCHAR): Uppercase macro parameter and add
        parenthesis.
        (YYCODE): Likewise.
        (NAME): Uppercase macro parameter.

From-SVN: r48717

gcc/cp/ChangeLog
gcc/cp/spew.c

index b414e27b54c92913a85e01a3f6f172c2383c7b3e..b4cc6343876cec217f86f3c5578d9433ff96358c 100644 (file)
@@ -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.
index 138e23e6145c60c9410a71ce9f64fd9b917d9c66..9f36d06b42bab73e23f6770759ec0066051c6155 100644 (file)
@@ -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)