/* manifest 4.3 85/01/18 */
/* manifest constant file for the lex/yacc interface */
/* the defines for ASOP, RELOP, EQUOP, DIVOP,
SHIFTOP, ICOP, UNOP, and STROP have been
/* reserved words, etc */
/* little symbols, etc. */
/* These defines are being moved to mfile1
to alleviate preprocessor problems with
second pass files: LP, RP, LC, RC */
/* left over tree building operators */
#define COMOP 62 /* , operator */
#define STREF 72 /* -> */
#define CALL 73 /* C function call */
#define FORTCALL 76 /* Fortran function call */
#define ULE 89 /* unsigned <= */
#define ULT 90 /* unsigned < */
#define UGE 91 /* unsigned >= */
#define UGT 92 /* unsigned > */
#define SETBIT 93 /* unused */
#define TESTBIT 94 /* unused */
#define RESETBIT 95 /* unused */
#define ARS 96 /* arithmetic >> */
#define REG 97 /* register */
#define OREG 98 /* offset from register */
#define CCODES 99 /* condition codes */
#define FREE 100 /* free node */
#define STASG 101 /* structure assignment */
#define STARG 102 /* structure parameter */
#define STCALL 103 /* call to function returning structure */
/* some conversion operators */
#define FLD 106 /* field */
#define SCONV 107 /* storage conversion */
#define PCONV 108 /* pointer conversion */
#define PMCONV 109 /* pointer multiply conversion (from +) */
#define PVCONV 110 /* pointer divide conversion (from -) */
/* special node operators, used for special contexts */
#define FORCE 111 /* force result, for return values */
#define CBRANCH 112 /* condition branch */
#define INIT 113 /* data initialization */
#define CAST 114 /* type cast */
/* DSIZE is the size of the dope array */
/* type names, used in symbol table building */
# define TNULL PTR /* pointer to UNDEF */
# define TVOID FTN /* function returning UNDEF (for void) */
/* type packing constants */
# define MODTYPE(x,y) x = ( (x)&(~BTMASK))|(y) /* set basic type of x to y */
# define BTYPE(x) ( (x)&BTMASK) /* basic type of x */
# define ISUNSIGNED(x) ((x)<=ULONG&&(x)>=UCHAR)
# define UNSIGNABLE(x) ((x)<=LONG&&(x)>=CHAR)
# define ENUNSIGN(x) ((x)+(UNSIGNED-INT))
# define DEUNSIGN(x) ((x)+(INT-UNSIGNED))
# define ISPTR(x) (( (x)&TMASK)==PTR)
# define ISFTN(x) (( (x)&TMASK)==FTN) /* is x a function type */
# define ISARY(x) (( (x)&TMASK)==ARY) /* is x an array type */
# define INCREF(x) ((( (x)&~BTMASK)<<TSHIFT)|PTR|( (x)&BTMASK))
# define DECREF(x) ((( (x)>>TSHIFT)&~BTMASK)|( (x)&BTMASK))
# define SETOFF(x,y) if( (x)%(y) != 0 ) (x) = ( ((x)/(y) + 1) * (y))
/* advance x to a multiple of y */
# define NOFIT(x,y,z) ( ( (x)%(z) + (y) ) > (z) )
/* can y bits be added to x without overflowing z */
/* pack and unpack field descriptors (size and offset) */
# define PKFIELD(s,o) (( (o)<<6)| (s) )
# define UPKFSZ(v) ( (v) &077)
# define UPKFOFF(v) ( (v) >>6)
/* operator information */
#define optype(o) (dope[o]&TYFLG)
#define asgop(o) (dope[o]&ASGFLG)
#define logop(o) (dope[o]&LOGFLG)
#define callop(o) (dope[o]&CALLFLG)
# define NCHNAM 8 /* number of characters in a name */
extern char *tstrbuf[], **curtstr;
#define freetstr() curtstr = tstrbuf, tstrused = 0
/* common defined variables */
extern int nerrors; /* number of errors seen so far */
typedef unsigned int TWORD;
extern int dope[]; /* a vector containing operator information */
extern char *opst[]; /* a vector containing names for ops */
/* in one-pass operation, define the tree nodes */
int label; /* for use with branching */
int stsize; /* sizes of structure objects */
int stalign; /* alignment of structure objects */
}stn; /* structure node */
/* this structure is used when a single precision constant
/* this structure is used when a double precision constant