mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
* src/output.c (pack_vector): Use assert, not berror.
* src/main.c (berror): Remove, unused.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-05 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/output.c (pack_vector): Use assert, not berror.
|
||||||
|
* src/main.c (berror): Remove, unused.
|
||||||
|
|
||||||
2001-12-05 Akim Demaille <akim@epita.fr>
|
2001-12-05 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
New experimental feature: if --verbose --trace output all the
|
New experimental feature: if --verbose --trace output all the
|
||||||
|
|||||||
12
src/main.c
12
src/main.c
@@ -1,5 +1,5 @@
|
|||||||
/* Top level entry point of bison,
|
/* Top level entry point of bison,
|
||||||
Copyright 1984, 1986, 1989, 1992, 1995, 2000
|
Copyright 1984, 1986, 1989, 1992, 1995, 2000, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
@@ -40,7 +40,6 @@
|
|||||||
/* The name this program was run with, for messages. */
|
/* The name this program was run with, for messages. */
|
||||||
char *program_name;
|
char *program_name;
|
||||||
|
|
||||||
extern void berror PARAMS((const char *));
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
@@ -124,12 +123,3 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
|
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Abort for an internal error denoted by string S. */
|
|
||||||
|
|
||||||
void
|
|
||||||
berror (const char *s)
|
|
||||||
{
|
|
||||||
fprintf (stderr, _("%s: internal error: %s\n"), program_name, s);
|
|
||||||
abort ();
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -103,9 +103,6 @@
|
|||||||
#include "reader.h"
|
#include "reader.h"
|
||||||
#include "conflicts.h"
|
#include "conflicts.h"
|
||||||
|
|
||||||
extern void berror PARAMS((const char *));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static int nvectors;
|
static int nvectors;
|
||||||
static int nentries;
|
static int nentries;
|
||||||
@@ -980,8 +977,8 @@ pack_vector (int vector)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
berror ("pack_vector");
|
assert (!"pack_vector");
|
||||||
return 0; /* JF keep lint happy */
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user