mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 13:53:03 +00:00
* src/state.h (nstates, final_state, first_state, first_shift)
(first_reduction): Move their exportation from here... * src/LR0.h: to here. Adjust dependencies. * src/getargs.c (statisticsflag): New variable. Add support for `--statistics'. Adjust dependencies. Remove a lot of now useless `extern' statements in most files.
This commit is contained in:
10
src/reduce.c
10
src/reduce.c
@@ -32,10 +32,8 @@
|
||||
#include "alloc.h"
|
||||
#include "complain.h"
|
||||
#include "reduce.h"
|
||||
|
||||
extern char **tags; /* reader.c */
|
||||
static int statisticsflag; /* XXXXXXX */
|
||||
extern int fixed_outfiles;
|
||||
#include "reader.h"
|
||||
#include "getargs.h"
|
||||
|
||||
typedef unsigned *BSet;
|
||||
typedef short *rule;
|
||||
@@ -545,8 +543,8 @@ reduce_grammar (void)
|
||||
dump_grammar ();
|
||||
}
|
||||
#endif
|
||||
statisticsflag = FALSE; /* someday getopts should handle this */
|
||||
if (statisticsflag == TRUE)
|
||||
|
||||
if (statisticsflag)
|
||||
fprintf (stderr, _("reduced %s defines %d terminal%s, %d nonterminal%s\
|
||||
, and %d production%s.\n"),
|
||||
infile,
|
||||
|
||||
Reference in New Issue
Block a user