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