From: Akim Demaille Date: Sun, 12 Mar 2006 15:26:05 +0000 (+0000) Subject: * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Fix the definition X-Git-Tag: v2.3b~428 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/5cf61e933db01235b658733d1d9efcb81af7c6ca?ds=sidebyside * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Fix the definition of AT_NAME_PREFIX when %name-prefix is not used. --- diff --git a/ChangeLog b/ChangeLog index e81dcc52..6b7f71d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-12 Akim Demaille + + * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Fix the definition + of AT_NAME_PREFIX when %name-prefix is not used. + 2006-03-12 Akim Demaille Apply --prefix to C++ skeletons too: they change the namespace. diff --git a/tests/local.at b/tests/local.at index 3f6de195..55ba8249 100644 --- a/tests/local.at +++ b/tests/local.at @@ -64,7 +64,9 @@ m4_pushdef([AT_PURE_AND_LOC_IF], m4_pushdef([AT_GLR_OR_PARAM_IF], [m4_bmatch([$3], [%glr-parser\|%parse-param], [$1], [$2])]) m4_pushdef([AT_NAME_PREFIX], -[m4_bregexp([$3], [name-prefix="\([^"]*\)"], [\1])]) +[m4_bmatch([$3], [%name-prefix=".*"], + [m4_bregexp([$3], [name-prefix="\([^"]*\)"], [\1])], + [yy])]) # yyerror receives the location if %location & %pure & (%glr or %parse-param). m4_pushdef([AT_YYERROR_ARG_LOC_IF], [AT_GLR_OR_PARAM_IF([AT_PURE_AND_LOC_IF([$1], [$2])],