b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison],
[2002, 2003, 2004, 2005])
dnl FIXME: This is wrong, we want computed header guards.
-dnl FIXME: I don\'t know why the macros are missing now. :(
+dnl FIXME: I do not know why the macros are missing now. :(
[
#ifndef PARSER_HEADER_H
# define PARSER_HEADER_H
yy::]b4_parser_class_name[::yysymprint_ (int yytype,
const semantic_type* yyvaluep, const location_type* yylocationp)
{
- /* Pacify ``unused variable'' warnings. */
- (void) yyvaluep;
- (void) yylocationp;
/* Backward compatibility, but should be removed eventually. */
std::ostream& cdebug_ = *yycdebug_;
- (void) cdebug_;
+
+ /* Suppress unused-variable warnings. */
+ if (false)
+ yysymprint_ (yytype + !&cdebug_, yyvaluep, yylocationp);
*yycdebug_ << (yytype < yyntokens_ ? "token" : "nterm")
<< ' ' << yytname_[yytype] << " ("
yy::]b4_parser_class_name[::yydestruct_ (const char* yymsg,
int yytype, semantic_type* yyvaluep, location_type* yylocationp)
{
- /* Pacify ``unused variable'' warnings. */
- (void) yymsg;
- (void) yyvaluep;
- (void) yylocationp;
+ /* Suppress unused-variable warnings. */
+ if (false)
+ yydestruct_ (yymsg, yytype, yyvaluep, yylocationp);
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
]b4_epilogue
dnl
-@output stack.hh
+@output b4_dir_prefix[]stack.hh
b4_copyright([stack handling for Bison C++ parsers], [2002, 2003, 2004, 2005])[
#ifndef BISON_STACK_HH