* 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:
Akim Demaille
2000-10-02 08:22:23 +00:00
parent 403b315bb1
commit b2ca4022ea
16 changed files with 120 additions and 109 deletions

View File

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