Commit | Line | Data |
---|---|---|
6ae7c017 | 1 | /*- |
ad787160 C |
2 | * This module is believed to contain source code proprietary to AT&T. |
3 | * Use and redistribution is subject to the Berkeley Software License | |
4 | * Agreement and your Software Agreement with AT&T (Western Electric). | |
6ae7c017 | 5 | * |
ad787160 | 6 | * @(#)r.h 8.1 (Berkeley) 6/6/93 |
6ae7c017 | 7 | */ |
476fcd16 | 8 | |
1945cd56 CC |
9 | #include <stdio.h> |
10 | #include "y.tab.h" | |
11 | ||
12 | # | |
13 | #define putbak(c) *ip++ = c | |
14 | /* #define getchr() (ip>ibuf?*--ip: getc(infile[infptr])) */ | |
15 | ||
16 | #define LET 1 | |
17 | #define DIG 2 | |
18 | #define CRAP 3 | |
19 | #define COMMENT '#' | |
20 | #define QUOTE '"' | |
21 | ||
22 | extern int transfer; | |
23 | ||
24 | #define INDENT 3 /* indent delta */ | |
25 | #ifdef gcos | |
26 | #define CONTFLD 6 | |
27 | #endif | |
28 | #ifdef unix | |
29 | #define CONTFLD 1 | |
30 | #endif | |
31 | extern int contfld; /* column for continuation char */ | |
32 | extern int contchar; | |
33 | extern int dbg; | |
34 | extern int yyval; | |
35 | extern int *yypv; | |
36 | extern int yylval; | |
37 | extern int errorflag; | |
38 | ||
39 | extern char comment[]; /* save input comments here */ | |
40 | extern int comptr; /* next free slot in comment */ | |
41 | extern int printcom; /* print comments, etc., if on */ | |
42 | extern int indent; /* level of nesting for indenting */ | |
43 | ||
44 | extern char ibuf[]; | |
45 | extern char *ip; | |
46 | ||
47 | extern FILE *outfil; /* output file id */ | |
48 | extern FILE *infile[]; | |
49 | extern char *curfile[]; | |
50 | extern int infptr; | |
51 | extern int linect[]; | |
52 | ||
53 | extern char fcname[]; | |
54 | ||
55 | extern int svargc; | |
56 | extern char **svargv; | |
57 | ||
58 | #define EOS 0 | |
59 | #define HSHSIZ 101 | |
60 | struct nlist { | |
61 | char *name; | |
62 | char *def; | |
63 | int ydef; | |
64 | struct nlist *next; | |
65 | }; | |
66 | ||
67 | struct nlist *lookup(); | |
68 | char *install(); | |
69 | char *malloc(); | |
70 | extern char *fcnloc; | |
71 | ||
72 | extern char type[]; |