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