BSD 4_4 release
[unix-history] / usr / src / old / ratfor / r.h
CommitLineData
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
22extern 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
31extern int contfld; /* column for continuation char */
32extern int contchar;
33extern int dbg;
34extern int yyval;
35extern int *yypv;
36extern int yylval;
37extern int errorflag;
38
39extern char comment[]; /* save input comments here */
40extern int comptr; /* next free slot in comment */
41extern int printcom; /* print comments, etc., if on */
42extern int indent; /* level of nesting for indenting */
43
44extern char ibuf[];
45extern char *ip;
46
47extern FILE *outfil; /* output file id */
48extern FILE *infile[];
49extern char *curfile[];
50extern int infptr;
51extern int linect[];
52
53extern char fcname[];
54
55extern int svargc;
56extern char **svargv;
57
58#define EOS 0
59#define HSHSIZ 101
60struct nlist {
61 char *name;
62 char *def;
63 int ydef;
64 struct nlist *next;
65};
66
67struct nlist *lookup();
68char *install();
69char *malloc();
70extern char *fcnloc;
71
72extern char type[];