mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
* src/print.h: New file.
Propagate its use. * src/print.c: Formatting and ordering changes. (verbose, terse): Replace with... (print_results): this new function. Adjust dependencies.
This commit is contained in:
11
src/main.c
11
src/main.c
@@ -30,6 +30,7 @@
|
||||
#include "lalr.h"
|
||||
#include "reduce.h"
|
||||
#include "nullable.h"
|
||||
#include "print.h"
|
||||
|
||||
#if 0 /* XXX currently unused. */
|
||||
/* Nonzero means failure has been detected; don't write a parser file. */
|
||||
@@ -46,8 +47,6 @@ extern char *printable_version PARAMS ((int));
|
||||
extern void generate_states PARAMS ((void));
|
||||
extern void initialize_conflicts PARAMS ((void));
|
||||
extern void finalize_conflicts PARAMS ((void));
|
||||
extern void verbose PARAMS ((void));
|
||||
extern void terse PARAMS ((void));
|
||||
|
||||
|
||||
/* VMS complained about using `int'. */
|
||||
@@ -96,12 +95,8 @@ main (int argc, char *argv[])
|
||||
declarations. */
|
||||
initialize_conflicts ();
|
||||
|
||||
/* Print information about results, if requested. In file print.
|
||||
*/
|
||||
if (verboseflag)
|
||||
verbose ();
|
||||
else
|
||||
terse ();
|
||||
/* Print information about results, if requested. */
|
||||
print_results ();
|
||||
|
||||
/* Output the tables and the parser to ftable. In file output. */
|
||||
output ();
|
||||
|
||||
Reference in New Issue
Block a user