From c4fb3aa93a59c14966eda3d8910feb40dd9a003b Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 28 Jan 2005 17:15:40 +0000 Subject: [PATCH] bison 1.875c now requires parens within the macro args --- dtool/src/cppparser/cppBisonDefs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dtool/src/cppparser/cppBisonDefs.h b/dtool/src/cppparser/cppBisonDefs.h index f28c306e32..e1ebaf84b7 100644 --- a/dtool/src/cppparser/cppBisonDefs.h +++ b/dtool/src/cppparser/cppBisonDefs.h @@ -120,8 +120,8 @@ struct cppyyltype { // last_column, whereas here we use the struct assignment operator to // copy all the members of the structure). #define YYLLOC_DEFAULT(Current, Rhs, N) \ - Current = Rhs[1]; \ - Current.last_line = Rhs[N].last_line; \ - Current.last_column = Rhs[N].last_column; + (Current) = (Rhs)[1]; \ + (Current).last_line = (Rhs)[N].last_line; \ + (Current).last_column = (Rhs)[N].last_column; #endif