/* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)defines.h 5.2 (Berkeley) 8/28/85 */ /* * defines.h * * Global definitions for the first pass of the f77 compiler, Unix 4.3 BSD. * * University of Utah CS Dept modification history: * * $Log: defines.h,v $ * Revision 5.2 85/08/10 05:11:20 donn * Added comment header; added Jerry Berkman's changes to delete INTRCNST * and to ifdef 66 code. * */ #define INTERDATA 2 #define GCOS 3 #define PDP11 4 #define IBM 5 #define CMACH 6 #define VAX 7 #define DMR 2 #define PCC 3 #ifndef FAMILY FAMILY NOT DEFINED !!! Family = FAMILY #endif #ifndef HERE HERE NOT DEFINED !!!! Here = HERE #endif #define M(x) (1<tag==TCONST && ISINT(z->constblock.vtype)) #define ISCHAR(z) (z->headblock.vtype==TYCHAR) #define ISINT(z) ONEOF(z, MSKINT) #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) ) #ifdef ONLY66 #define NO66(s) if(no66flag) err66(s) #define NOEXT(s) if(noextflag) errext(s) #else #define NO66(s) #define NOEXT(s) #endif /* round a up to a multiple of b */ #define roundup(a,b) ( b * ( (a+b-1)/b) ) /* optimization buffer slot types */ #define SKNULL 0 #define SKIFN 1 #define SKGOTO 2 #define SKLABEL 3 #define SKEQ 4 #define SKCALL 5 #define SKCMGOTO 6 #define SKSTOP 7 #define SKDOHEAD 8 #define SKENDDO 9 #define SKARIF 10 #define SKRETURN 11 #define SKASGOTO 12 #define SKPAUSE 13 #define SKASSIGN 14 #define SKIOIFN 15 #define SKFRTEMP 16