1: #include <stdio.h> 2: #include "../h/config.h" 3: 4: /* 5: * External definitions needed throughout translator. 6: */ 7: 8: extern int yychar; /* parser's current input token type */ 9: extern int yynerrs; /* number of errors in parse */ 10: extern int fatalerrs; /* total number of fatal errors */ 11: extern int warnings; /* total number of warnings */ 12: extern int nocode; /* true to suppress code generation */ 13: extern int implicit; /* implicit local/error */ 14: extern int silence; /* verbose/mute switch */ 15: extern int trace; /* initial setting of &trace */ 16: 17: extern int inline; /* current line number in input */ 18: extern int tline; /* line number of current token */ 19: extern int incol; /* current column number in input */ 20: extern int tcol; /* column number of current token */ 21: extern int peekc; /* one character look-ahead */ 22: extern char ctran[]; /* input translation table */ 23: extern char esctab[]; /* string literal escape table */ 24: extern FILE *infile; /* current input file */ 25: extern FILE *codefile; /* current icode output file */ 26: extern FILE *globfile; /* current global output file */ 27: extern char **filep; /* list of input file names */ 28: 29: extern int alclflg; /* counter for local table overflow */ 30: extern int alcgflg; /* counter for global table overflow */ 31: extern int alccflg; /* counter for constant table overflow */ 32: 33: extern char *strings; /* string space */ 34: extern char *send; /* end of string space */ 35: extern char *sfree; /* free pointer for string space */ 36: extern int ssize; /* initial size of string space */