1: /*
   2: **  CONSTANTS.H -- manifest constants, operand and operator codes
   3: **
   4: **	Defines:
   5: **		op_codes for operands
   6: **		Opflag's domain set
   7: **		Type_spec's domain set
   8: **
   9: **	Version:
  10: **		@(#)constants.h	8.2	1/16/85
  11: */
  12: 
  13: /*
  14: ** 	Manifest constants used throughout Equel
  15: */
  16: 
  17: 
  18: # define    CONTINUE    1   /* "loop" flag for yylex */
  19: # define    MAXNAME     13  /* maximum length for equel
  20: 					 * identifiers (or keywords)
  21: 					 */
  22: # define    MAXSTRING   255 /* maximum length for equel strings */
  23: # define    FILLCNT     110 /* length to fill lines when in Fillmode */
  24: 
  25: # define    I1MASK      0377    /* Bit mask for a character */
  26: 
  27: 
  28: /* debugging info conditional compilation flag */
  29: # define    xDEBUG          /* on for "-c" and "-v" flags */
  30: # define    YYDEBUG         /* must ALWAYS be on-used in yyparse()*/
  31: 
  32: 
  33: /*
  34: **	Character types [cmap.c]
  35: */
  36: 
  37: # define    EOF_TOK     0   /* end of parse input too */
  38: # define    ALPHA       1   /* alphabetic or '_' */
  39: # define    NUMBR       2   /* numeric */
  40: # define    OPATR       3   /* other non control characters */
  41: # define    PUNCT       4   /* white space */
  42: # define    CNTRL       5   /* control-characters */
  43: 
  44: /*
  45: **	Modes for Lastc in w_op() and w_key() [prtout.c]
  46: */
  47: 
  48: # define    OPCHAR      0   /* last character
  49: 					 * printed was an operator
  50: 					 */
  51: # define    KEYCHAR     1   /* last was alphanumeric */
  52: 
  53: 
  54: /*
  55:  * Modes used in parser actions to distinguish contexts in which
  56:  * the same syntax applies. Opflag is set to these modes.
  57:  *
  58:  * (There are some modes that are never referenced, but are useful
  59:  * for extension).
  60:  */
  61: 
  62:     /* quel statements */
  63: 
  64: # define    mdAPPEND    1
  65: # define    mdCOPY      2
  66: # define    mdCREATE    3
  67: # define    mdDEFINE    4
  68: # define    mdDELETE    5
  69: # define    mdDESTROY   6
  70: # define    mdHELP      7
  71: # define    mdINDEX     8
  72: # define    mdINTEGRITY 9
  73: # define    mdMODIFY    10
  74: # define    mdPRINT     11
  75: # define    mdRANGE     12
  76: # define    mdREPLACE   13
  77: # define    mdRETRIEVE  14
  78: # define    mdSAVE      15
  79: # define    mdVIEW      22
  80: # define    mdPROT      23
  81: 
  82:     /* statements particular to Equel */
  83: 
  84: # define    mdDECL      16  /* C - declaration */
  85: # define    mdCTLELM    17  /* left hand side of target list element
  86: 					 * in "retrieve" to C-variables
  87: 					 */
  88: # define    mdEXIT      18  /* ## exit */
  89: # define    mdINGRES    19  /* ## ingres */
  90: # define    mdTUPRET    20  /* "retrieve" w/o an "into" */
  91: # define    mdFILENAME  21  /* used in "copy" statement */
  92: 
  93: 
  94: 
  95: 
  96: 
  97: 
  98: 
  99: /* define	typTYPE		xx		/*   c types "Type_spec"  */
 100: # define            opSHORT     1
 101: # define            opFLOAT     2
 102: # define            opSTRING    3
 103: # define            opDOUBLE    4
 104: # define            opCHAR      5
 105: # define            opLONG      6
 106: # define            opIDSTRING  7
 107: # define            opSTRUCT    8
 108: # ifdef PDP
 109: # define            opINT       opSHORT
 110: # else PDP
 111: # define            opINT       opLONG
 112: # endif PDP
 113: 
 114: 
 115: /* define	typALLOC	xx		/*  c var allocation types  */
 116: # define            opAUTO      0
 117: # define            opSTATIC    1
 118: # define            opEXTERN    2
 119: # define            opREGISTER  3

Defined macros

ALPHA defined in line 38; used 56 times
CNTRL defined in line 42; used 30 times
FILLCNT defined in line 23; used 2 times
I1MASK defined in line 25; used 2 times
KEYCHAR defined in line 51; used 2 times
OPATR defined in line 40; used 32 times
OPCHAR defined in line 48; used 2 times
PUNCT defined in line 41; used 4 times
YYDEBUG defined in line 30; never used
mdAPPEND defined in line 64; used 3 times
mdCOPY defined in line 65; used 2 times
mdCREATE defined in line 66; used 2 times
mdCTLELM defined in line 85; used 3 times
mdDECL defined in line 84; used 7 times
mdDEFINE defined in line 67; used 4 times
mdDELETE defined in line 68; used 1 times
mdDESTROY defined in line 69; used 1 times
mdEXIT defined in line 88; used 1 times
mdFILENAME defined in line 91; used 4 times
mdHELP defined in line 70; used 1 times
mdINDEX defined in line 71; used 1 times
mdINGRES defined in line 89; used 3 times
mdINTEGRITY defined in line 72; used 1 times
mdMODIFY defined in line 73; used 1 times
mdPRINT defined in line 74; used 1 times
mdPROT defined in line 80; used 1 times
mdRANGE defined in line 75; used 1 times
mdREPLACE defined in line 76; used 2 times
mdRETRIEVE defined in line 77; used 3 times
mdSAVE defined in line 78; used 1 times
mdTUPRET defined in line 90; used 5 times
mdVIEW defined in line 79; used 2 times
opAUTO defined in line 116; never used
opCHAR defined in line 104; never used
opDOUBLE defined in line 103; never used
opEXTERN defined in line 118; never used
opFLOAT defined in line 101; never used
opINT defined in line 111; used 7 times
opLONG defined in line 105; used 1 times
opREGISTER defined in line 119; never used
opSHORT defined in line 100; used 1 times
opSTATIC defined in line 117; never used

Usage of this include

Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1818
Valid CSS Valid XHTML 1.0 Strict