1 |
/* Top level entry point of bison, |
/* Top level entry point of bison, |
2 |
Copyright 1984, 1986, 1989, 1992, 1995, 2000 |
Copyright 1984, 1986, 1989, 1992, 1995, 2000, 2001 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of Bison, the GNU Compiler Compiler. |
This file is part of Bison, the GNU Compiler Compiler. |
40 |
/* The name this program was run with, for messages. */ |
/* The name this program was run with, for messages. */ |
41 |
char *program_name; |
char *program_name; |
42 |
|
|
|
extern void berror PARAMS((const char *)); |
|
43 |
|
|
44 |
int |
int |
45 |
main (int argc, char *argv[]) |
main (int argc, char *argv[]) |
123 |
|
|
124 |
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS; |
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS; |
125 |
} |
} |
|
|
|
|
/* 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 (); |
|
|
} |
|