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