X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/722c4bfec27f80609a197337ae42bf5d88c31322..74ffbcb6bf2b471ef16c485830a3084978fa29f7:/src/main.c diff --git a/src/main.c b/src/main.c index 80704466..1a3911d2 100644 --- a/src/main.c +++ b/src/main.c @@ -41,8 +41,6 @@ /* The name this program was run with, for messages. */ char *program_name; -extern void berror PARAMS((const char *)); - int main (int argc, char *argv[]) { @@ -64,8 +62,7 @@ main (int argc, char *argv[]) if (complain_message_count) exit (1); - /* Find useless nonterminals and productions and reduce the grammar. - In file reduce.c. */ + /* Find useless nonterminals and productions and reduce the grammar. */ reduce_grammar (); /* Record other info about the grammar. In files derives and @@ -127,12 +124,3 @@ main (int argc, char *argv[]) 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 (); -}