1*34415Sbostic /* @(#)macdefs.h 1.6 (Berkeley) 05/22/88 */ 27991Srrh 311819Ssam #if defined(pdp11) || defined(vax) 411819Ssam #define makecc(val,i) lastcon |= val<<(8*i); /* pdp-11 womp next char */ 511819Ssam #else 611819Ssam #define makecc(val,i) lastcon = i ? (val<<8)|lastcon : val 711819Ssam #endif 811819Ssam 97991Srrh # define ARGINIT 288 /* initial offset for arguments */ 107991Srrh # define AUTOINIT 0 /* initial automatic offset */ 117991Srrh extern int SZCHAR; 127991Srrh extern int SZINT; 137991Srrh extern int SZFLOAT; 147991Srrh extern int SZDOUBLE; 157991Srrh extern int SZLONG; 167991Srrh extern int SZSHORT; 177991Srrh extern int SZPOINT; 187991Srrh extern int ALCHAR; 197991Srrh extern int ALINT; 207991Srrh extern int ALFLOAT; 217991Srrh extern int ALDOUBLE; 227991Srrh extern int ALLONG; 237991Srrh extern int ALSHORT; 247991Srrh extern int ALPOINT; 257991Srrh extern int ALSTRUCT; 267991Srrh # define SAVEADJUST 0 /* bits of adjustment required for stackframe */ 277991Srrh 287991Srrh 297991Srrh /* type (INT OR LONG) big enough to hold pointers */ 307991Srrh 317991Srrh 327991Srrh /* size in which constants are converted */ 337991Srrh /* should be long if feasable */ 347991Srrh 357991Srrh # define CONSZ long 36*34415Sbostic # define U_CONSZ unsigned long 377991Srrh # define CONFMT "%Ld" 387991Srrh # define CONOFMT "%Lo" 3918600Sralph # define LABFMT "L%d" 407991Srrh 417991Srrh /* size in which offsets are kept 427991Srrh /* should be large enough to cover address space in bits 437991Srrh */ 447991Srrh 457991Srrh # define OFFSZ long 467991Srrh 477991Srrh /* character set macro */ 487991Srrh 497991Srrh # define CCTRANS(x) x 507991Srrh 517991Srrh /* register cookie for stack pointer */ 527991Srrh 537991Srrh # define STKREG 9 547991Srrh 557991Srrh /* maximum and minimum register variable values */ 567991Srrh 577991Srrh # define MAXRVAR 1000 587991Srrh # define MINRVAR 1 597991Srrh 6024460Smckusick /* macros carried over from the PCC */ 6124460Smckusick # define ncopy(q, p) ((q)->in = (p)->in) 6224460Smckusick 637991Srrh /* many macro definitions for functions irrelevant to lint */ 647991Srrh 657991Srrh # define locctr(n) 0 667991Srrh # define getlab() 10 677991Srrh # define genswitch( x,y) 687991Srrh # define bccode() 697991Srrh # define cendarg() 707991Srrh # define incode(a,s) (inoff += (s)) 717991Srrh # define fincode(a,s) (inoff += (s) ) 727991Srrh # define vfdzero(n) (inoff += (n)) 737991Srrh # define aobeg() 747991Srrh # define aoend() 7525758Sdonn # define econvert(p) 767991Srrh 777991Srrh # ifndef unix 787991Srrh # define NOFORTRAN {extern int pflag; if(pflag) werror( "fortran keyword nonportable" );} 797991Srrh # else 807991Srrh # define NOFORTRAN { werror( "fortran keyword nonportable" ); } 817991Srrh # endif 827991Srrh 837991Srrh # define LINT 84