mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Do not use
local variables whose names begin with 'yy'. * tests/calc.at (_AT_DATA_CALC_Y): Likewise.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2005-09-21 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Do not use
|
||||
local variables whose names begin with 'yy'.
|
||||
* tests/calc.at (_AT_DATA_CALC_Y): Likewise.
|
||||
Trivial changes from Joel E. Denny.
|
||||
|
||||
* bootstrap (gnulib_modules): Remove alloca. Bison doesn't need
|
||||
it itself.
|
||||
* src/main.c (main) [C_ALLOCA]: Don't flush alloca'ed memory; we
|
||||
|
||||
@@ -72,7 +72,7 @@ static int power (int base, int exponent);
|
||||
[/* yyerror receives the location if:
|
||||
- %location & %pure & %glr
|
||||
- %location & %pure & %yacc & %parse-param. */
|
||||
static void yyerror (AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])
|
||||
static void yyerror (AT_YYERROR_ARG_LOC_IF([YYLTYPE *llocp, ])
|
||||
AT_PARAM_IF([semantic_value *result, int *count, ])
|
||||
const char *s
|
||||
);])[
|
||||
@@ -145,7 +145,7 @@ yyparse (AT_PARAM_IF([semantic_value *result, int *count]))
|
||||
}
|
||||
],
|
||||
[static void
|
||||
yyerror (AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])
|
||||
yyerror (AT_YYERROR_ARG_LOC_IF([YYLTYPE *llocp, ])
|
||||
AT_PARAM_IF([semantic_value *result, int *count, ])
|
||||
const char *s)
|
||||
{
|
||||
|
||||
@@ -79,14 +79,14 @@ m4_pushdef([AT_PURE_LEX_IF],
|
||||
[AT_LALR1_CC_IF([$1], [$2])])])
|
||||
|
||||
AT_PURE_LEX_IF(
|
||||
[m4_pushdef([AT_LOC], [(*yylloc)])
|
||||
m4_pushdef([AT_VAL], [(*yylval)])
|
||||
[m4_pushdef([AT_LOC], [(*llocp)])
|
||||
m4_pushdef([AT_VAL], [(*lvalp)])
|
||||
m4_pushdef([AT_LEX_FORMALS],
|
||||
[YYSTYPE *yylval[]AT_LOCATION_IF([, YYLTYPE *yylloc])])
|
||||
[YYSTYPE *lvalp[]AT_LOCATION_IF([, YYLTYPE *llocp])])
|
||||
m4_pushdef([AT_LEX_ARGS],
|
||||
[yylval[]AT_LOCATION_IF([, yylloc])])
|
||||
[lvalp[]AT_LOCATION_IF([, llocp])])
|
||||
m4_pushdef([AT_USE_LEX_ARGS],
|
||||
[(void) yylval;AT_LOCATION_IF([(void) yylloc])])
|
||||
[(void) lvalp;AT_LOCATION_IF([(void) llocp])])
|
||||
m4_pushdef([AT_LEX_PRE_FORMALS],
|
||||
[AT_LEX_FORMALS, ])
|
||||
m4_pushdef([AT_LEX_PRE_ARGS],
|
||||
|
||||
Reference in New Issue
Block a user