1*24460Smckusick /* @(#)macdefs.h 1.4 (Berkeley) 08/28/85 */ 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 367991Srrh # define CONFMT "%Ld" 377991Srrh # define CONOFMT "%Lo" 3818600Sralph # define LABFMT "L%d" 397991Srrh 407991Srrh /* size in which offsets are kept 417991Srrh /* should be large enough to cover address space in bits 427991Srrh */ 437991Srrh 447991Srrh # define OFFSZ long 457991Srrh 467991Srrh /* character set macro */ 477991Srrh 487991Srrh # define CCTRANS(x) x 497991Srrh 507991Srrh /* register cookie for stack pointer */ 517991Srrh 527991Srrh # define STKREG 9 537991Srrh 547991Srrh /* maximum and minimum register variable values */ 557991Srrh 567991Srrh # define MAXRVAR 1000 577991Srrh # define MINRVAR 1 587991Srrh 59*24460Smckusick /* macros carried over from the PCC */ 60*24460Smckusick # define ncopy(q, p) ((q)->in = (p)->in) 61*24460Smckusick 627991Srrh /* many macro definitions for functions irrelevant to lint */ 637991Srrh 647991Srrh # define locctr(n) 0 657991Srrh # define getlab() 10 667991Srrh # define genswitch( x,y) 677991Srrh # define bccode() 687991Srrh # define cendarg() 697991Srrh # define incode(a,s) (inoff += (s)) 707991Srrh # define fincode(a,s) (inoff += (s) ) 717991Srrh # define vfdzero(n) (inoff += (n)) 727991Srrh # define aobeg() 737991Srrh # define aoend() 747991Srrh 757991Srrh # ifndef unix 767991Srrh # define NOFORTRAN {extern int pflag; if(pflag) werror( "fortran keyword nonportable" );} 777991Srrh # else 787991Srrh # define NOFORTRAN { werror( "fortran keyword nonportable" ); } 797991Srrh # endif 807991Srrh 817991Srrh # define LINT 82