* 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> 2002-07-03 Akim Demaille <akim@epita.fr>
* src/output.c (froms, tos): Are state_number_t. * 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. */ [/* A Bison parser, made from b4_filename, by GNU bison b4_version. */
/* $1, /* $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 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 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 b4_epilogue
m4_if(b4_defines_flag, 0, [], 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]) [1984, 1989, 1990, 2000, 2001, 2002])
#output "b4_output_header_name"
#ifndef b4_header_guard #ifndef b4_header_guard
# define b4_header_guard # define b4_header_guard

View File

@@ -1,9 +1,7 @@
/* A Bison parser, made from parse-gram.y /* A Bison parser, made from parse-gram.y, by GNU bison 1.49b. */
by GNU bison 1.49b. */
/* Skeleton output parser for Bison, /* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
Foundation, Inc.
This program is free software; you can redistribute it and/or modify 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 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 This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */ in version 1.24 of Bison. */
/* This is the parser code that is written into each bison parser when /* Written by Richard Stallman by simplifying the original so called
the %semantic_parser declaration is not specified in the grammar. ``semantic'' parser. */
It was written by Richard Stallman by simplifying the original so
called ``semantic'' parser. */
/* All symbols defined below should begin with yy or YY, to avoid /* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local infringing on user name space. This should be done even for local
@@ -236,8 +232,8 @@ typedef union {
char *string; char *string;
associativity assoc; associativity assoc;
} yystype; } yystype;
/* Line 272 of /usr/local/share/bison/yacc.c. */ /* Line 187 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
#line 241 "parse-gram.c" #line 237 "parse-gram.c"
# define YYSTYPE yystype # define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_TRIVIAL 1
#endif #endif
@@ -257,8 +253,8 @@ typedef struct yyltype
/* Copy the second part of user declarations. */ /* Copy the second part of user declarations. */
/* Line 292 of /usr/local/share/bison/yacc.c. */ /* Line 207 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
#line 262 "parse-gram.c" #line 258 "parse-gram.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE #if ! defined (yyoverflow) || YYERROR_VERBOSE
@@ -1520,8 +1516,8 @@ yyreduce:
} }
/* Line 1040 of /usr/local/share/bison/yacc.c. */ /* Line 955 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
#line 1525 "parse-gram.c" #line 1521 "parse-gram.c"
yyvsp -= yylen; yyvsp -= yylen;
yyssp -= 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 #ifndef BISON_PARSE_GRAM_H
# define BISON_PARSE_GRAM_H # define BISON_PARSE_GRAM_H
@@ -111,8 +136,8 @@ typedef union {
char *string; char *string;
associativity assoc; associativity assoc;
} yystype; } yystype;
/* Line 1353 of /usr/local/share/bison/yacc.c. */ /* Line 1271 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
#line 116 "y.tab.h" #line 141 "y.tab.h"
# define YYSTYPE yystype # define YYSTYPE yystype
#endif #endif