summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b2a836b)
b4_defines_flag is set. This fixes two bugs reported by
Tim Van Holder in
<http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00071.html>
and <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00073.html>.
m4_divert(-1)
# C++ skeleton for Bison
m4_divert(-1)
# C++ skeleton for Bison
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# We do want M4 expansion after # for CPP macros.
m4_changecom()
m4_divert(0)dnl
# We do want M4 expansion after # for CPP macros.
m4_changecom()
m4_divert(0)dnl
-@output @output_header_name@
+m4_if(b4_defines_flag, 0, [],
+[@output @output_header_name@
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison],
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison],
/* FIXME: This is wrong, we want computed header guards.
I don't know why the macros are missing now. :( */
#ifndef PARSER_HEADER_H
/* FIXME: This is wrong, we want computed header guards.
I don't know why the macros are missing now. :( */
#ifndef PARSER_HEADER_H
}
#endif /* ! defined PARSER_HEADER_H */]
}
#endif /* ! defined PARSER_HEADER_H */]
@output @output_parser_name@
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison],
@output @output_parser_name@
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison],
-#include @output_header_name@
+m4_if(b4_defines_flag, 0, [], [#include @output_header_name@])[
/* Enable debugging if requested. */
#if YYDEBUG
/* Enable debugging if requested. */
#if YYDEBUG
]b4_epilogue
dnl
@output stack.hh
]b4_epilogue
dnl
@output stack.hh
+b4_copyright([2002, 2003])[
#ifndef BISON_STACK_HH
# define BISON_STACK_HH
#ifndef BISON_STACK_HH
# define BISON_STACK_HH
#endif // not BISON_STACK_HH]
dnl
@output location.hh
#endif // not BISON_STACK_HH]
dnl
@output location.hh
+b4_copyright([2002, 2003])[
#ifndef BISON_LOCATION_HH
# define BISON_LOCATION_HH
#ifndef BISON_LOCATION_HH
# define BISON_LOCATION_HH