From: Akim Demaille Date: Tue, 21 Oct 2008 22:08:52 +0000 (-0500) Subject: Prepare easier M4 changes. X-Git-Tag: v2.7.90~1188 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/91ba8a55b1b61c105222fc054c8565683757a828?ds=inline Prepare easier M4 changes. * data/lalr1.cc: Use escaped [] instead of literals to prepare future changes. --- diff --git a/ChangeLog b/ChangeLog index ca2c184f..8f7f37b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-03 Akim Demaille + + Prepare easier M4 changes. + * data/lalr1.cc: Use escaped [] instead of literals to prepare + future changes. + 2008-11-02 Joel E. Denny Initiate further development. diff --git a/data/lalr1.cc b/data/lalr1.cc index ca1dfccd..07a301ff 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -664,9 +664,9 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[; This behavior is undocumented and Bison users should not rely upon it. */ if (yylen) - yyval = yysemantic_stack_[yylen - 1]; + yyval = yysemantic_stack_@{yylen - 1@}; else - yyval = yysemantic_stack_[0]; + yyval = yysemantic_stack_@{0@}; { slice slice (yylocation_stack_, yylen);