From: Akim Demaille Date: Tue, 9 Jul 2002 09:43:22 +0000 (+0000) Subject: * data/yacc.c: Output the copyright notive in the header. X-Git-Tag: BISON-1_49b~84 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/c76e14da4bf475d4f85090d5fdde85d8dddb5833?ds=sidebyside * data/yacc.c: Output the copyright notive in the header. --- diff --git a/ChangeLog b/ChangeLog index f153d48c..916644a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-07-09 Akim Demaille + + * data/yacc.c: Output the copyright notive in the header. + 2002-07-03 Akim Demaille * src/output.c (froms, tos): Are state_number_t. diff --git a/data/c.m4 b/data/c.m4 index 969edf78..0405d979 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -29,7 +29,7 @@ m4_define([b4_copyright], [/* A Bison parser, made from b4_filename, by GNU bison b4_version. */ /* $1, - Copyright $2 Free Software Foundation, Inc. + Copyright (C) $2 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 diff --git a/data/yacc.c b/data/yacc.c index fff62912..e69311c3 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -1230,9 +1230,10 @@ m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl b4_epilogue m4_if(b4_defines_flag, 0, [], -[b4_copyright([Skeleton parser for Yacc-like parsing with Bison], +[#output "b4_output_header_name" +b4_copyright([Skeleton parser for Yacc-like parsing with Bison], [1984, 1989, 1990, 2000, 2001, 2002]) -#output "b4_output_header_name" + #ifndef b4_header_guard # define b4_header_guard diff --git a/src/parse-gram.c b/src/parse-gram.c index 81116268..dc6887d1 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -1,9 +1,7 @@ -/* A Bison parser, made from parse-gram.y - by GNU bison 1.49b. */ +/* A Bison parser, made from parse-gram.y, by GNU bison 1.49b. */ -/* Skeleton output parser for Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software - Foundation, Inc. +/* Skeleton parser for Yacc-like parsing with 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 @@ -25,10 +23,8 @@ This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ -/* This is the parser code that is written into each bison parser when - the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the original so - called ``semantic'' parser. */ +/* Written by Richard Stallman by simplifying the original so called + ``semantic'' parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local @@ -236,8 +232,8 @@ typedef union { char *string; associativity assoc; } yystype; -/* Line 272 of /usr/local/share/bison/yacc.c. */ -#line 241 "parse-gram.c" +/* Line 187 of /home/lrde/prof/akim/src/bison/data/yacc.c. */ +#line 237 "parse-gram.c" # define YYSTYPE yystype # define YYSTYPE_IS_TRIVIAL 1 #endif @@ -257,8 +253,8 @@ typedef struct yyltype /* Copy the second part of user declarations. */ -/* Line 292 of /usr/local/share/bison/yacc.c. */ -#line 262 "parse-gram.c" +/* Line 207 of /home/lrde/prof/akim/src/bison/data/yacc.c. */ +#line 258 "parse-gram.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE @@ -1520,8 +1516,8 @@ yyreduce: } -/* Line 1040 of /usr/local/share/bison/yacc.c. */ -#line 1525 "parse-gram.c" +/* Line 955 of /home/lrde/prof/akim/src/bison/data/yacc.c. */ +#line 1521 "parse-gram.c" yyvsp -= yylen; yyssp -= yylen; diff --git a/src/parse-gram.h b/src/parse-gram.h index f1abdd84..d6f10980 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -1,3 +1,28 @@ +/* A Bison parser, made from parse-gram.y, by GNU bison 1.49b. */ + +/* Skeleton parser for Yacc-like parsing with 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, 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. */ + +/* As a special exception, when this file is copied by Bison into a + Bison output file, you may use that output file without restriction. + This special exception was added by the Free Software Foundation + in version 1.24 of Bison. */ + #ifndef BISON_PARSE_GRAM_H # define BISON_PARSE_GRAM_H @@ -111,8 +136,8 @@ typedef union { char *string; associativity assoc; } yystype; -/* Line 1353 of /usr/local/share/bison/yacc.c. */ -#line 116 "y.tab.h" +/* Line 1271 of /home/lrde/prof/akim/src/bison/data/yacc.c. */ +#line 141 "y.tab.h" # define YYSTYPE yystype #endif