* src/output.c (pack_vector): Use assert, not berror.

* src/main.c (berror): Remove, unused.
This commit is contained in:
Akim Demaille
2001-12-05 09:43:21 +00:00
parent 4316896018
commit 3843c413d0
3 changed files with 8 additions and 15 deletions

View File

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

View File

@@ -41,8 +41,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[])
{ {
@@ -126,12 +124,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 ();
}

View File

@@ -104,7 +104,6 @@
#include "conflicts.h" #include "conflicts.h"
#include "muscle_tab.h" #include "muscle_tab.h"
extern void berror PARAMS((const char *));
static int nvectors; static int nvectors;
static int nentries; static int nentries;
@@ -789,8 +788,8 @@ pack_vector (int vector)
} }
} }
berror ("pack_vector"); assert (!"pack_vector");
return 0; /* JF keep lint happy */ return 0;
} }
@@ -988,7 +987,7 @@ output_master_parser (void)
else else
skeleton = skeleton_find ("BISON_SIMPLE", BISON_SIMPLE); skeleton = skeleton_find ("BISON_SIMPLE", BISON_SIMPLE);
} }
muscle_insert ("skeleton", skeleton); muscle_insert ("skeleton", skeleton);
output_parser (skeleton, &table_obstack); output_parser (skeleton, &table_obstack);
} }