1 /* @(#)r.h 1.1 (Berkeley) 12/15/82 */ 2 #include <stdio.h> 3 #include "y.tab.h" 4 5 # 6 #define putbak(c) *ip++ = c 7 /* #define getchr() (ip>ibuf?*--ip: getc(infile[infptr])) */ 8 9 #define LET 1 10 #define DIG 2 11 #define CRAP 3 12 #define COMMENT '#' 13 #define QUOTE '"' 14 15 extern int transfer; 16 17 #define INDENT 3 /* indent delta */ 18 #ifdef gcos 19 #define CONTFLD 6 20 #endif 21 #ifdef unix 22 #define CONTFLD 1 23 #endif 24 extern int contfld; /* column for continuation char */ 25 extern int contchar; 26 extern int dbg; 27 extern int yyval; 28 extern int *yypv; 29 extern int yylval; 30 extern int errorflag; 31 32 extern char comment[]; /* save input comments here */ 33 extern int comptr; /* next free slot in comment */ 34 extern int printcom; /* print comments, etc., if on */ 35 extern int indent; /* level of nesting for indenting */ 36 37 extern char ibuf[]; 38 extern char *ip; 39 40 extern FILE *outfil; /* output file id */ 41 extern FILE *infile[]; 42 extern char *curfile[]; 43 extern int infptr; 44 extern int linect[]; 45 46 extern char fcname[]; 47 48 extern int svargc; 49 extern char **svargv; 50 51 #define EOS 0 52 #define HSHSIZ 101 53 struct nlist { 54 char *name; 55 char *def; 56 int ydef; 57 struct nlist *next; 58 }; 59 60 struct nlist *lookup(); 61 char *install(); 62 char *malloc(); 63 extern char *fcnloc; 64 65 extern char type[]; 66