* data/lalr1.cc (YYLLOC_DEFAULT): Fix its definition: be based on

Location as is defined.
This commit is contained in:
Akim Demaille
2003-02-04 21:05:03 +00:00
parent fc049e9caf
commit 43a176ef35
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2003-02-04 Akim Demaille <akim@epita.fr>
* data/lalr1.cc (YYLLOC_DEFAULT): Fix its definition: be based on
Location as is defined.
2003-02-04 Akim Demaille <akim@epita.fr> 2003-02-04 Akim Demaille <akim@epita.fr>
* data/lalr1.cc: If YYDEBUG is not defined, don't depend upon * data/lalr1.cc: If YYDEBUG is not defined, don't depend upon

View File

@@ -140,8 +140,7 @@ b4_syncline([@oline@], [@ofile@])],
b4_syncline([@oline@], [@ofile@])[ b4_syncline([@oline@], [@ofile@])[
#ifndef YYLLOC_DEFAULT #ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \ # define YYLLOC_DEFAULT(Current, Rhs, N) \
Current.last_line = Rhs[N].last_line; \ Current.last = Rhs[N].last;
Current.last_column = Rhs[N].last_column;
#endif #endif
namespace yy namespace yy