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