mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
* src/complain.c: No longer try to be standalone: use system.h.
Don't assume __STDC__ is defined to 1. Just test if it is defined. * src/complain.h: Likewise. * src/reduce.c (useless_nonterminals, inaccessable_symbols): Remove the unused variable `n'. From Albert Chin-A-Young.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,12 @@
|
|||||||
|
2001-09-20 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/complain.c: No longer try to be standalone: use system.h.
|
||||||
|
Don't assume __STDC__ is defined to 1. Just test if it is defined.
|
||||||
|
* src/complain.h: Likewise.
|
||||||
|
* src/reduce.c (useless_nonterminals, inaccessable_symbols):
|
||||||
|
Remove the unused variable `n'.
|
||||||
|
From Albert Chin-A-Young.
|
||||||
|
|
||||||
2001-09-18 Marc Autret <autret_m@epita.fr>
|
2001-09-18 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
* doc/bison.1: Update.
|
* doc/bison.1: Update.
|
||||||
@@ -15,9 +24,9 @@
|
|||||||
* src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
|
* src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
|
||||||
do that.
|
do that.
|
||||||
Reported by Keith Browne.
|
Reported by Keith Browne.
|
||||||
|
|
||||||
2001-09-18 Marc Autret <autret_m@epita.fr>
|
2001-09-18 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
* tests/output.at: Add tests for --defines and --graph.
|
* tests/output.at: Add tests for --defines and --graph.
|
||||||
|
|
||||||
2001-09-18 Marc Autret <autret_m@epita.fr>
|
2001-09-18 Marc Autret <autret_m@epita.fr>
|
||||||
|
|||||||
1
THANKS
1
THANKS
@@ -2,6 +2,7 @@ Bison was originally written by Robert Corbett. It would not be what
|
|||||||
it is today without the invaluable help of these people:
|
it is today without the invaluable help of these people:
|
||||||
|
|
||||||
Akim Demaille akim@epita.fr
|
Akim Demaille akim@epita.fr
|
||||||
|
Albert Chin-A-Young china@thewrittenword.com
|
||||||
Daniel Hagerty hag@gnu.org
|
Daniel Hagerty hag@gnu.org
|
||||||
David J. MacKenzie djm@gnu.org
|
David J. MacKenzie djm@gnu.org
|
||||||
Fabrice Bauzac noon@cote-dazur.com
|
Fabrice Bauzac noon@cote-dazur.com
|
||||||
|
|||||||
@@ -19,14 +19,10 @@
|
|||||||
/* Based on error.c and error.h,
|
/* Based on error.c and error.h,
|
||||||
written by David MacKenzie <djm@gnu.ai.mit.edu>. */
|
written by David MacKenzie <djm@gnu.ai.mit.edu>. */
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#include "system.h"
|
||||||
# include <config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
|
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
|
||||||
# if __STDC__
|
# ifdef __STDC__
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
# define VA_START(args, lastarg) va_start(args, lastarg)
|
# define VA_START(args, lastarg) va_start(args, lastarg)
|
||||||
# else
|
# else
|
||||||
@@ -119,7 +115,7 @@ int error_one_per_line;
|
|||||||
`--------------------------------*/
|
`--------------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
#if defined VA_START && __STDC__
|
#if defined VA_START && defined __STDC__
|
||||||
warn (const char *message, ...)
|
warn (const char *message, ...)
|
||||||
#else
|
#else
|
||||||
warn (message, va_alist)
|
warn (message, va_alist)
|
||||||
@@ -171,7 +167,7 @@ warn (message, va_alist)
|
|||||||
`-----------------------------------------------------------*/
|
`-----------------------------------------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
#if defined VA_START && __STDC__
|
#if defined VA_START && defined __STDC__
|
||||||
complain (const char *message, ...)
|
complain (const char *message, ...)
|
||||||
#else
|
#else
|
||||||
complain (message, va_alist)
|
complain (message, va_alist)
|
||||||
@@ -221,7 +217,7 @@ complain (message, va_alist)
|
|||||||
`-------------------------------------------------*/
|
`-------------------------------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
#if defined VA_START && __STDC__
|
#if defined VA_START && defined __STDC__
|
||||||
fatal (const char *message, ...)
|
fatal (const char *message, ...)
|
||||||
#else
|
#else
|
||||||
fatal (message, va_alist)
|
fatal (message, va_alist)
|
||||||
@@ -259,7 +255,7 @@ fatal (message, va_alist)
|
|||||||
`------------------------------------------------------------------*/
|
`------------------------------------------------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
#if defined VA_START && __STDC__
|
#if defined VA_START && defined __STDC__
|
||||||
error (int status, int errnum,
|
error (int status, int errnum,
|
||||||
const char *message, ...)
|
const char *message, ...)
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (__STDC__) && __STDC__
|
#ifdef __STDC__
|
||||||
|
|
||||||
/* Informative messages, but we proceed. */
|
/* Informative messages, but we proceed. */
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ static void
|
|||||||
useless_nonterminals (void)
|
useless_nonterminals (void)
|
||||||
{
|
{
|
||||||
BSet Np, Ns;
|
BSet Np, Ns;
|
||||||
int i, n;
|
int i;
|
||||||
|
|
||||||
/* N is set as built. Np is set being built this iteration. P is
|
/* N is set as built. Np is set being built this iteration. P is
|
||||||
set of all productions which have a RHS all in N. */
|
set of all productions which have a RHS all in N. */
|
||||||
@@ -140,7 +140,6 @@ useless_nonterminals (void)
|
|||||||
saved to be used when finding useful productions: only
|
saved to be used when finding useful productions: only
|
||||||
productions in this set will appear in the final grammar. */
|
productions in this set will appear in the final grammar. */
|
||||||
|
|
||||||
n = 0;
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
for (i = WORDSIZE (nvars) - 1; i >= 0; i--)
|
for (i = WORDSIZE (nvars) - 1; i >= 0; i--)
|
||||||
@@ -171,7 +170,7 @@ static void
|
|||||||
inaccessable_symbols (void)
|
inaccessable_symbols (void)
|
||||||
{
|
{
|
||||||
BSet Vp, Vs, Pp;
|
BSet Vp, Vs, Pp;
|
||||||
int i, n;
|
int i;
|
||||||
short t;
|
short t;
|
||||||
rule r;
|
rule r;
|
||||||
|
|
||||||
@@ -207,7 +206,6 @@ inaccessable_symbols (void)
|
|||||||
|
|
||||||
SETBIT (V, start_symbol);
|
SETBIT (V, start_symbol);
|
||||||
|
|
||||||
n = 0;
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
for (i = WORDSIZE (nsyms) - 1; i >= 0; i--)
|
for (i = WORDSIZE (nsyms) - 1; i >= 0; i--)
|
||||||
|
|||||||
Reference in New Issue
Block a user