* data/yacc.c: Output the copyright notive in the header.

This commit is contained in:
Akim Demaille
2002-07-09 09:43:22 +00:00
parent 7db2ed2d82
commit c76e14da4b
5 changed files with 46 additions and 20 deletions

View File

@@ -1,3 +1,7 @@
2002-07-09 Akim Demaille <akim@epita.fr>
* data/yacc.c: Output the copyright notive in the header.
2002-07-03 Akim Demaille <akim@epita.fr>
* src/output.c (froms, tos): Are state_number_t.

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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