bison 1.875c now requires parens within the macro args

This commit is contained in:
David Rose 2005-01-28 17:15:40 +00:00
parent 091754663b
commit c4fb3aa93a
1 changed files with 3 additions and 3 deletions

View File

@ -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