mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12: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:
27
src/reader.c
27
src/reader.c
@@ -29,6 +29,17 @@
|
||||
#include "gram.h"
|
||||
#include "complain.h"
|
||||
#include "output.h"
|
||||
#include "reader.h"
|
||||
|
||||
extern bucket *symval;
|
||||
extern int numval;
|
||||
extern int expected_conflicts;
|
||||
extern char *token_buffer;
|
||||
extern int maxtoken;
|
||||
|
||||
extern void tabinit PARAMS ((void));
|
||||
extern void free_symtab PARAMS ((void));
|
||||
extern char *printable_version PARAMS ((int));
|
||||
|
||||
#define LTYPESTR "\
|
||||
\n\
|
||||
@@ -55,16 +66,6 @@ typedef\n\
|
||||
/* Number of slots allocated (but not necessarily used yet) in `rline' */
|
||||
static int rline_allocated;
|
||||
|
||||
extern bucket *symval;
|
||||
extern int numval;
|
||||
extern int expected_conflicts;
|
||||
extern char *token_buffer;
|
||||
extern int maxtoken;
|
||||
|
||||
extern void tabinit PARAMS ((void));
|
||||
extern void free_symtab PARAMS ((void));
|
||||
extern char *printable_version PARAMS ((int));
|
||||
|
||||
typedef struct symbol_list
|
||||
{
|
||||
struct symbol_list *next;
|
||||
@@ -73,10 +74,6 @@ typedef struct symbol_list
|
||||
}
|
||||
symbol_list;
|
||||
|
||||
|
||||
extern void reader PARAMS ((void));
|
||||
extern void reader_output_yylsp PARAMS ((FILE *));
|
||||
|
||||
int lineno;
|
||||
char **tags;
|
||||
short *user_toknums;
|
||||
@@ -1667,7 +1664,7 @@ output_token_defines (FILE *file)
|
||||
|
||||
/*------------------------------------------------------------------.
|
||||
| Assign symbol numbers, and write definition of token names into |
|
||||
| fdefines. Set up vectors tags and sprec of names and precedences |
|
||||
| FDEFINES. Set up vectors TAGS and SPREC of names and precedences |
|
||||
| of symbols. |
|
||||
`------------------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user