From 60491a948b9339a6f68fafb63b51e9899d4e6aad Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 27 Jun 2002 12:08:20 +0000 Subject: [PATCH] * data/bison.simple, data/bison.c++: Rename as... * data/yacc.c, data/lalr1.cc: these. * doc/bison.texinfo (Environment Variables): Remove. --- ChangeLog | 6 ++++++ data/Makefile.am | 2 +- data/{bison.c++ => lalr1.cc} | 19 +++++++++++++++++++ data/{bison.simple => yacc.c} | 18 ++++++++++++++++++ doc/bison.texinfo | 18 ------------------ src/output.c | 2 +- 6 files changed, 45 insertions(+), 20 deletions(-) rename data/{bison.c++ => lalr1.cc} (96%) rename data/{bison.simple => yacc.c} (97%) diff --git a/ChangeLog b/ChangeLog index fe51f376..f38f8b9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-06-27 Akim Demaille + + * data/bison.simple, data/bison.c++: Rename as... + * data/yacc.c, data/lalr1.cc: these. + * doc/bison.texinfo (Environment Variables): Remove. + 2002-06-25 Raja R Harinath * src/getargs.c (report_argmatch): Initialize strtok(). diff --git a/data/Makefile.am b/data/Makefile.am index 57d89ac3..605d5918 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -15,7 +15,7 @@ ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ## 02111-1307 USA -dist_pkgdata_DATA = bison.simple bison.c++ +dist_pkgdata_DATA = yacc.c lalr1.cc m4sugardir = $(pkgdatadir)/m4sugar dist_m4sugar_DATA = m4sugar/m4sugar.m4 m4sugar/version.m4 diff --git a/data/bison.c++ b/data/lalr1.cc similarity index 96% rename from data/bison.c++ rename to data/lalr1.cc index d95e7936..4aa3689b 100644 --- a/data/bison.c++ +++ b/data/lalr1.cc @@ -1,5 +1,24 @@ m4_divert(-1) +# C++ skeleton for Bison +# Copyright (C) 2002 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA + + # b4_sint_type(MAX) # ----------------- # Return the smallest signed int type able to handle the number MAX. diff --git a/data/bison.simple b/data/yacc.c similarity index 97% rename from data/bison.simple rename to data/yacc.c index 5a4091e5..3b885221 100644 --- a/data/bison.simple +++ b/data/yacc.c @@ -1,5 +1,23 @@ m4_divert(-1) -*- C -*- +# Yacc compatible skeleton for Bison +# Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA + # b4_sint_type(MAX) # ----------------- # Return the smallest signed int type able to handle the number MAX. diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 0d3ce7d5..2441d0d1 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -5532,7 +5532,6 @@ will produce @file{output.c++} and @file{outfile.h++}. @menu * Bison Options:: All the options described in detail, in alphabetical order by short options. -* Environment Variables:: Variables which affect Bison execution. * Option Cross Key:: Alphabetical list of long options. * VMS Invocation:: Bison command syntax on VMS. @end menu @@ -5681,23 +5680,6 @@ difference is that it has an optionnal argument which is the name of the output graph filename. @end table -@node Environment Variables -@section Environment Variables -@cindex environment variables -@cindex BISON_SIMPLE - -Here is a list of environment variables which affect the way Bison -runs. - -@table @samp -@item BISON_SIMPLE -Much of the parser generated by Bison is copied verbatim from a file -called @file{bison.simple}. If Bison cannot find that file, or if you -would like to direct Bison to use a different copy, setting the -environment variable @code{BISON_SIMPLE} to the path of the file will -cause Bison to use that copy instead. -@end table - @node Option Cross Key @section Option Cross Key diff --git a/src/output.c b/src/output.c index dd3db47b..afe11323 100644 --- a/src/output.c +++ b/src/output.c @@ -1140,7 +1140,7 @@ prepare (void) /* Find the right skeleton file. */ if (!skeleton) - skeleton = "bison.simple"; + skeleton = "yacc.c"; /* Parse the skeleton file and output the needed parsers. */ muscle_insert ("skeleton", skeleton); -- 2.49.0