xref: /original-bsd/old/pcc/lint/lpass1/macdefs.h (revision bff54947)
1 /*	@(#)macdefs.h	1.6	(Berkeley)	05/22/88	*/
2 
3 #if defined(pdp11) || defined(vax)
4 #define makecc(val,i)  lastcon |= val<<(8*i);  /* pdp-11 womp next char  */
5 #else
6 #define makecc(val,i)	lastcon = i ? (val<<8)|lastcon : val
7 #endif
8 
9 # define  ARGINIT 288 /* initial offset for arguments */
10 # define  AUTOINIT 0   /* initial automatic offset */
11 extern int  SZCHAR;
12 extern int  SZINT;
13 extern int  SZFLOAT;
14 extern int  SZDOUBLE;
15 extern int  SZLONG;
16 extern int  SZSHORT;
17 extern int SZPOINT;
18 extern int ALCHAR;
19 extern int ALINT;
20 extern int ALFLOAT;
21 extern int ALDOUBLE;
22 extern int ALLONG;
23 extern int ALSHORT;
24 extern int ALPOINT;
25 extern int ALSTRUCT;
26 # define SAVEADJUST 0 /* bits of adjustment required for stackframe */
27 
28 
29 /* type (INT OR LONG) big enough to hold pointers */
30 
31 
32 /*	size in which constants are converted */
33 /*	should be long if feasable */
34 
35 # define CONSZ long
36 # define U_CONSZ unsigned long
37 # define CONFMT "%Ld"
38 # define CONOFMT "%Lo"
39 # define LABFMT	"L%d"
40 
41 /*	size in which offsets are kept
42 /*	should be large enough to cover address space in bits
43 */
44 
45 # define OFFSZ long
46 
47 /* 	character set macro */
48 
49 # define  CCTRANS(x) x
50 
51 /*	register cookie for stack pointer */
52 
53 # define STKREG 9
54 
55 /*	maximum and minimum register variable values */
56 
57 # define MAXRVAR 1000
58 # define MINRVAR 1
59 
60 /* macros carried over from the PCC */
61 # define ncopy(q, p)	((q)->in = (p)->in)
62 
63 /* many macro definitions for functions irrelevant to lint */
64 
65 # define locctr(n) 0
66 # define getlab() 10
67 # define genswitch( x,y)
68 # define bccode()
69 # define cendarg()
70 # define incode(a,s) (inoff += (s))
71 # define fincode(a,s) (inoff += (s) )
72 # define vfdzero(n) (inoff += (n))
73 # define aobeg()
74 # define aoend()
75 # define econvert(p)
76 
77 # ifndef unix
78 # define NOFORTRAN  {extern int pflag; if(pflag) werror( "fortran keyword nonportable" );}
79 # else
80 # define NOFORTRAN { werror( "fortran keyword nonportable" ); }
81 # endif
82 
83 # define LINT
84