X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/47621762e2dee2321ca27787ee4435da3c5f94b9..31cef89cb428866f787983e68246030321893df4:/usr/src/cmd/f77/defines diff --git a/usr/src/cmd/f77/defines b/usr/src/cmd/f77/defines index 288addfa1a..663ee6ceda 100644 --- a/usr/src/cmd/f77/defines +++ b/usr/src/cmd/f77/defines @@ -21,15 +21,23 @@ Here = HERE #define M(x) (1<headblock.tag==TCONST && ISINT(z->headblock.vtype)) +#define ISICON(z) (z->tag==TCONST && ISINT(z->constblock.vtype)) #define ISCHAR(z) (z->headblock.vtype==TYCHAR) #define ISINT(z) ONEOF(z, MSKINT) -#define ISCONST(z) (z->headblock.tag==TCONST) -#define ISERROR(z) (z->headblock.tag==TERROR) -#define ISPLUSOP(z) (z->headblock.tag==TEXPR && z->exprblock.opcode==OPPLUS) -#define ISSTAROP(z) (z->headblock.tag==TEXPR && z->exprblock.opcode==OPSTAR) +#define ISCONST(z) (z->tag==TCONST) +#define ISERROR(z) (z->tag==TERROR) +#define ISPLUSOP(z) (z->tag==TEXPR && z->exprblock.opcode==OPPLUS) +#define ISSTAROP(z) (z->tag==TEXPR && z->exprblock.opcode==OPSTAR) #define ISONE(z) (ISICON(z) && z->constblock.const.ci==1) #define INT(z) ONEOF(z, MSKINT|MSKCHAR) #define ICON(z) mkintcon( (ftnint)(z) ) -#define CHCON(z) mkstrcon(strlen(z), z) - -#if HERE == PDP11 - /* not enough space in compiler for checks */ -# define NO66(s) -# define NOEXT(s) -#else -# define NO66(s) if(no66flag) err66(s) -# define NOEXT(s) if(noextflag) errext(s) -#endif + +#define NO66(s) if(no66flag) err66(s) +#define NOEXT(s) if(noextflag) errext(s) /* round a up to a multiple of b */ #define roundup(a,b) ( b * ( (a+b-1)/b) )