# 2.11BSD#431 - /usr/ingres/source/equel/constants.h

##### Macros

    ALPHA             X
    CNTRL             X
    CONTINUE          X
    EOF_TOK           X
    FILLCNT           X
    KEYCHAR           X
    MAXNAME           X
    MAXSTRING         X
    NUMBR             X
    OPATR             X
    OPCHAR            X
    PUNCT             X
    mdAPPEND          X
    mdCOPY            X
    mdCREATE          X
    mdCTLELM          X
    mdDECL            X
    mdDEFINE          X
    mdDELETE          X
    mdDESTROY         X
    mdEXIT            X
    mdFILENAME        X
    mdHELP            X
    mdINDEX           X
    mdINGRES          X
    mdINTEGRITY       X
    mdMODIFY          X
    mdPRINT           X
    mdPROT            X
    mdRANGE           X
    mdREPLACE         X
    mdRETRIEVE        X
    mdSAVE            X
    mdTUPRET          X
    mdVIEW            X
    opAUTO            X
    opCHAR            X
    opDOUBLE          X
    opEXTERN          X
    opFLOAT           X
    opIDSTRING        X
    opINT             X
    opLONG            X
    opREGISTER        X
    opSTATIC          X
    opSTRING          X
    opSTRUCT          X
    xDEBUG            X

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

#### Defined macros

ALPHA defined in line 49; used 56 times

- in /usr/ingres/source/equel/cmap.c line 30-37(53)
- in /usr/ingres/source/equel/name.c line 83-88(2), 101

CNTRL defined in line 53; used 30 times

- in /usr/ingres/source/equel/cmap.c line 22-25(28), 37
- in /usr/ingres/source/equel/string.c line 78

CONTINUE defined in line 29; used 4 times

- in /usr/ingres/source/equel/comment.c line 97
- in /usr/ingres/source/equel/operator.c line 121
- in /usr/ingres/source/equel/yylex.c line 43-45(2)

EOF_TOK defined in line 48; used 8 times

- in /usr/ingres/source/equel/cmap.c line 22
- in /usr/ingres/source/equel/comment.c line 80-85(2), 94
- in /usr/ingres/source/equel/display.c line 362
- in /usr/ingres/source/equel/yylex.c line 55, 143, 182

FILLCNT defined in line 37; used 2 times

- in /usr/ingres/source/equel/main.c line 197
- in /usr/ingres/source/equel/prtout.c line 44

KEYCHAR defined in line 62; used 2 times

- in /usr/ingres/source/equel/prtout.c line 168-171(2)

MAXNAME defined in line 33; used 5 times

- in line 30-31(2)
- in /usr/ingres/source/equel/name.c line 70, 79-82(2)

MAXSTRING defined in line 36; used 7 times

- in /usr/ingres/source/equel/display.c line 340
- in /usr/ingres/source/equel/include.c line 46
- in /usr/ingres/source/equel/retrieve.c line 52, 66, 75
- in /usr/ingres/source/equel/string.c line 33, 76

NUMBR defined in line 50; used 18 times

- in /usr/ingres/source/equel/cmap.c line 28-29(10)
- in /usr/ingres/source/equel/name.c line 83-88(2), 101
- in /usr/ingres/source/equel/number.c line 72, 87, 101, 110
- in /usr/ingres/source/equel/operator.c line 72

OPATR defined in line 51; used 32 times

- in /usr/ingres/source/equel/cmap.c line 26-37(31)
- in /usr/ingres/source/equel/operator.c line 78

OPCHAR defined in line 59; used 2 times

- in /usr/ingres/source/equel/prtout.c line 76, 231

PUNCT defined in line 52; used 4 times

- in /usr/ingres/source/equel/cmap.c line 23-26(4)

mdAPPEND defined in line 75; used 3 times

- in /usr/ingres/source/equel/grammar.y line 912, 963-968(2)

mdCOPY defined in line 76; used 2 times

- in /usr/ingres/source/equel/grammar.y line 975, 982

mdCREATE defined in line 77; used 2 times

- in /usr/ingres/source/equel/grammar.y line 1000, 1007

mdCTLELM defined in line 96; used 3 times

- in /usr/ingres/source/equel/grammar.y line 462, 691, 1063

mdDECL defined in line 95; used 7 times

- in /usr/ingres/source/equel/grammar.y line 536, 548, 708, 731-735(2), 743, 1136

mdDEFINE defined in line 78; used 4 times

- in /usr/ingres/source/equel/grammar.y line 1014, 1056, 1079, 1150

mdDELETE defined in line 79; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1021

mdDESTROY defined in line 80; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1028

mdEXIT defined in line 99; used 1 times

- in /usr/ingres/source/equel/grammar.y line 408

mdFILENAME defined in line 102; used 4 times

- in /usr/ingres/source/equel/grammar.y line 763, 772, 990-995(2)

mdHELP defined in line 81; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1035

mdINDEX defined in line 82; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1042

mdINGRES defined in line 100; used 3 times

- in /usr/ingres/source/equel/grammar.y line 765-770(2), 1050

mdINTEGRITY defined in line 83; used 2 times

- in /usr/ingres/source/equel/grammar.y line 1057, 1080

mdMODIFY defined in line 84; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1072

mdPRINT defined in line 85; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1086

mdPROT defined in line 91; never used
mdRANGE defined in line 86; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1093

mdREPLACE defined in line 87; used 2 times

- in /usr/ingres/source/equel/grammar.y line 1101, 1109

mdRETRIEVE defined in line 88; used 3 times

- in /usr/ingres/source/equel/grammar.y line 911, 1115, 1122

mdSAVE defined in line 89; used 1 times

- in /usr/ingres/source/equel/grammar.y line 1129

mdTUPRET defined in line 101; used 5 times

- in /usr/ingres/source/equel/grammar.y line 448-452(2), 815, 1064, 1145

mdVIEW defined in line 90; used 2 times

- in /usr/ingres/source/equel/grammar.y line 911, 1151

opAUTO defined in line 122; never used
opCHAR defined in line 115; never used
opDOUBLE defined in line 114; never used
opEXTERN defined in line 124; never used
opFLOAT defined in line 112; never used
opIDSTRING defined in line 117; used 4 times

- in /usr/ingres/source/equel/grammar.y line 298, 394, 768
- in /usr/ingres/source/equel/prtout.c line 103

opINT defined in line 111; used 7 times

- in /usr/ingres/source/equel/grammar.y line 293-295(3), 543, 794-796(3)

opLONG defined in line 116; never used
opREGISTER defined in line 125; never used
opSTATIC defined in line 123; never used
opSTRING defined in line 113; used 12 times

- in /usr/ingres/source/equel/grammar.y line 296-297(2), 389-390(2), 581, 760-764(3), 832-833(2)
- in /usr/ingres/source/equel/prtout.c line 106
- in /usr/ingres/source/equel/retrieve.c line 157

opSTRUCT defined in line 118; used 3 times

- in /usr/ingres/source/equel/grammar.y line 526-531(2)
- in /usr/ingres/source/equel/name.c line 132

xDEBUG defined in line 41; used 7 times

- in /usr/ingres/source/equel/getch.c line 113, 145, 166, 209
- in /usr/ingres/source/equel/main.c line 164, 198
- in /usr/ingres/source/equel/yylex.c line 57

#### Usage of this include

constants.h used 19 times

- in /usr/ingres/source/equel/cmap.c line 18
- in /usr/ingres/source/equel/comment.c line 55
- in /usr/ingres/source/equel/cvar.c line 29
- in /usr/ingres/source/equel/display.c line 36
- in /usr/ingres/source/equel/getch.c line 4
- in /usr/ingres/source/equel/getkey.c line 4
- in /usr/ingres/source/equel/grammar.y line 104
- in /usr/ingres/source/equel/include.c line 21
- in /usr/ingres/source/equel/main.c line 4
- in /usr/ingres/source/equel/name.c line 4
- in /usr/ingres/source/equel/number.c line 4
- in /usr/ingres/source/equel/operator.c line 4
- in /usr/ingres/source/equel/prtout.c line 4
- in /usr/ingres/source/equel/retrieve.c line 4
- in /usr/ingres/source/equel/runtime/IIw_left.c line 2
- in /usr/ingres/source/equel/runtime/IIw_right.c line 2
- in /usr/ingres/source/equel/string.c line 4
- in /usr/ingres/source/equel/yyerror.c line 4
- in /usr/ingres/source/equel/yylex.c line 4

Last modified: 1980-12-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1568 |