mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
Use YYFPRINTF instead of fprintf where appropriate. Reported by
Sbastien Fricker at <http://lists.gnu.org/archive/html/bug-bison/2007-02/msg00035.html>. * THANKS: Add Sbastien Fricker. * data/glr.c, data/push.c, data/yacc.c (yy_reduce_print): Implement. * doc/bison.texinfo (Tracing): Make it clearer that YYFPRINTF must accept a variable number of arguments.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
2007-02-24 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
Use YYFPRINTF instead of fprintf where appropriate. Reported by
|
||||
Sébastien Fricker at
|
||||
<http://lists.gnu.org/archive/html/bug-bison/2007-02/msg00035.html>.
|
||||
* THANKS: Add Sébastien Fricker.
|
||||
* data/glr.c, data/push.c, data/yacc.c (yy_reduce_print): Implement.
|
||||
* doc/bison.texinfo (Tracing): Make it clearer that YYFPRINTF must
|
||||
accept a variable number of arguments.
|
||||
|
||||
2007-02-19 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
* bootstrap: Remove occurrences of .#bootmp from lib/Makefile.
|
||||
|
||||
1
THANKS
1
THANKS
@@ -70,6 +70,7 @@ Raja R Harinath harinath@cs.umn.edu
|
||||
Richard Stallman rms@gnu.org
|
||||
Robert Anisko anisko_r@epita.fr
|
||||
Satya Kiran Popuri satyakiran@gmail.com
|
||||
Sébastien Fricker sebastien.fricker@gmail.com
|
||||
Shura debil_urod@ngs.ru
|
||||
Steve Murphy murf@parsetree.com
|
||||
Tim Josling tej@melbpc.org.au
|
||||
|
||||
@@ -1442,12 +1442,12 @@ yy_reduce_print (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
|
||||
/* The symbols being reduced. */
|
||||
for (yyi = 0; yyi < yynrhs; yyi++)
|
||||
{
|
||||
fprintf (stderr, " $%d = ", yyi + 1);
|
||||
YYFPRINTF (stderr, " $%d = ", yyi + 1);
|
||||
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
|
||||
&]b4_rhs_value(yynrhs, yyi + 1)[
|
||||
]b4_locations_if([, &]b4_rhs_location(yynrhs, yyi + 1))[]dnl
|
||||
b4_user_args[);
|
||||
fprintf (stderr, "\n");
|
||||
YYFPRINTF (stderr, "\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -750,12 +750,12 @@ do { \
|
||||
/* The symbols being reduced. */
|
||||
for (yyi = 0; yyi < yynrhs; yyi++)
|
||||
{
|
||||
fprintf (stderr, " $%d = ", yyi + 1);
|
||||
YYFPRINTF (stderr, " $%d = ", yyi + 1);
|
||||
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
|
||||
&]b4_rhs_value(yynrhs, yyi + 1)[
|
||||
]b4_locations_if([, &]b4_rhs_location(yynrhs, yyi + 1))[]dnl
|
||||
b4_user_args[);
|
||||
fprintf (stderr, "\n");
|
||||
YYFPRINTF (stderr, "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -714,12 +714,12 @@ do { \
|
||||
/* The symbols being reduced. */
|
||||
for (yyi = 0; yyi < yynrhs; yyi++)
|
||||
{
|
||||
fprintf (stderr, " $%d = ", yyi + 1);
|
||||
YYFPRINTF (stderr, " $%d = ", yyi + 1);
|
||||
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
|
||||
&]b4_rhs_value(yynrhs, yyi + 1)[
|
||||
]b4_locations_if([, &]b4_rhs_location(yynrhs, yyi + 1))[]dnl
|
||||
b4_user_args[);
|
||||
fprintf (stderr, "\n");
|
||||
YYFPRINTF (stderr, "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7236,7 +7236,7 @@ always possible.
|
||||
|
||||
The trace facility outputs messages with macro calls of the form
|
||||
@code{YYFPRINTF (stderr, @var{format}, @var{args})} where
|
||||
@var{format} and @var{args} are the usual @code{printf} format and
|
||||
@var{format} and @var{args} are the usual @code{printf} format and variadic
|
||||
arguments. If you define @code{YYDEBUG} to a nonzero value but do not
|
||||
define @code{YYFPRINTF}, @code{<stdio.h>} is automatically included
|
||||
and @code{YYFPRINTF} is defined to @code{fprintf}.
|
||||
|
||||
Reference in New Issue
Block a user