* 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

@@ -34,14 +34,11 @@ int noparserflag = 0;
int rawtoknumflag = 0;
int toknumflag = 0;
int verboseflag = 0;
extern int fixed_outfiles;/* for -y */
int statisticsflag = 0;
int fixed_outfiles = 0;/* for -y */
extern char *program_name;
extern void warns PARAMS((char *, char *)); /* main.c */
extern void getargs PARAMS((int argc, char *[]));
static struct option longopts[] =
{
{"debug", 0, &debugflag, 1},
@@ -59,6 +56,7 @@ static struct option longopts[] =
{"verbose", 0, &verboseflag, 1},
{"version", 0, 0, 'V'},
{"yacc", 0, &fixed_outfiles, 1},
{"statistics", 0, &statisticsflag, 1},
{0, 0, 0, 0}
};