1: #
   2: /*
   3: **	COPYRIGHT
   4: **
   5: **	The Regents of the University of California
   6: **
   7: **	1977
   8: **
   9: **	This program material is the property of the
  10: **	Regents of the University of California and
  11: **	may not be reproduced or disclosed without
  12: **	the prior written permission of the owner.
  13: */
  14: 
  15: 
  16: 
  17: # define    AND     0
  18: # define    OR      1
  19: # define    UOP     2       /* UNARY OPERATORS */
  20: # define        opPLUS      0
  21: # define        opMINUS     1
  22: # define        opNOT       2
  23: # define        opATAN      3
  24: # define        opCOS       4
  25: # define        opGAMMA     5
  26: # define        opLOG       6
  27: # define        opASCII     7
  28: # define        opSIN       8
  29: # define        opSQRT      9
  30: # define        opABS       10
  31: # define        opEXP       11
  32: # define        opINT1      12
  33: # define        opINT2      13
  34: # define        opINT4      14
  35: # define        opFLOAT4    15
  36: # define        opFLOAT8    16
  37: 
  38: # define    BOP     3       /* BINARY OPERATORS */
  39: # define        opADD       0
  40: # define        opSUB       1
  41: # define        opMUL       2
  42: # define        opDIV       3
  43: # define        opPOW       4
  44: # define        opEQ        5
  45: # define        opNE        6
  46: # define        opLT        7
  47: # define        opLE        8
  48: # define        opGT        9
  49: # define        opGE        10
  50: # define        opMOD       11
  51: # define        opCONCAT    12
  52: 
  53: # define    AOP     4       /* AGGREGATE OPERATORS */
  54: # define        opCOUNT     0
  55: # define        opCOUNTU    1
  56: # define        opSUM       2
  57: # define        opSUMU      3
  58: # define        opAVG       4
  59: # define        opAVGU      5
  60: # define        opMIN       6
  61: # define        opMAX       7
  62: # define        opANY       8
  63: 
  64: # define    COP     5       /* CONSTANT OPERATORS */
  65: # define        BADCOP      -1  /* error return on lookup */
  66: # define        opDBA       0
  67: # define        opUSERCODE  1
  68: # define        opDATE      2
  69: # define        opTIME      3
  70: 
  71: 
  72: # define    RESDOM      11      /* RESULT DOMAIN NUMBER */
  73: # define    VAR     12      /* VARIABLE */
  74: # define    S_VAR       13      /* variable for which
  75: 						 * a substitution has been done,						 * Only occurs in the ovqp-decomp
  76: 						 * merged process.
  77: 						 */
  78: 
  79: # define    QMODE       16      /* QUERY MODE */
  80: # define        mdRETTERM   0   /* retrieve to terminal, used by decomp-ovqp */
  81: # define        mdRETR      1   /* retrieve, into rel perhaps */
  82: # define        mdAPP       2   /* append to rel */
  83: # define        mdREPL      3   /* replace in rel */
  84: # define        mdDEL       4   /* delete from rel */
  85: # define        mdCOPY      5   /* copy into/from rel */
  86: # define        mdCREATE    6   /* create new relation */
  87: # define        mdDESTROY   7   /* destroy old relation */
  88: # define        mdHELP      8   /* print info on relation */
  89: # define        mdINDEX     9   /* create secondary index */
  90: # define        mdMODIFY    10  /* change access structure of rel */
  91: # define        mdPRINT     11  /* print rel on terminal */
  92: # define        mdRANGE     12  /* declare range variable */
  93: # define        mdSAVE      13  /* save relation date */
  94: # define        mdDEFINE    14  /* "here is a tree", to qrymod */
  95: # define        mdRET_UNI   15  /* retrieve unique */
  96: # define        mdVIEW      16  /* extra info for view def, to qrymod */
  97: # define        mdUPDATE    17  /* update processor */
  98: # define        mdRESETREL  18  /* modify to truncated */
  99: # define        mdDISPLAY   19  /* dump qm decl */
 100: # define        mdNETQRY    20  /* reserved for distr ingres */
 101: # define        mdMOVEREL   21  /* reserved for distr ingres */
 102: # define        mdPROT      22  /* extra info for permit def, to qrymod */
 103: # define        mdINTEG     23  /* extra info for integrity def, to qrymod */
 104: # define        mdDCREATE   24  /* reserved for distr ingres */
 105: # define        mdWAITQRY   25  /* reserved for distr ingres */
 106: # define        mdREMQM     26  /* remove permit integrity definition */
 107: # define        mdDISTRIB   27  /* reserved for distr ingres */
 108: 
 109: # define    ROOT        20      /* ROOT of QUERY TREE */
 110: # define    QLEND       21      /* NULL branch at end of QUAL */
 111: # define    TREE        25      /* SIGNALS BEGINNING of TREE */
 112: # define    BYHEAD      22      /* BY LIST HEAD */
 113: # define    AGHEAD      23      /* AGGREGATE HEAD */
 114: 
 115: # define    SITE        26      /* reserved for distr ingres */
 116: 
 117: # define    INT     30      /* INTEGER CONSTANT */
 118: # define    FLOAT       31      /* FLOATING POINT CONSTANT */
 119: # define    CHAR        32      /* CHARACTER CONSTANT */
 120: # define    BINARY      33      /* BINARY CONSTANT (used in printup */
 121: 
 122: 
 123: # define    RESULTVAR   40      /* RESULT RELATION VAR NO. */
 124: # define    SOURCEID    41      /* SOURCE RELATION NAME(S) */
 125: # define    RESULTID    42      /* RESULT RELATION NAME	*/
 126: 
 127: 
 128: # define    CID     29      /* FOR INTEGRITY CONSTRAINTS */
 129: 
 130: 
 131: # define    CHANGESTRAT 50      /* FOR OVQP TO DEVISE NEW STRATEGY */
 132: # define    USERQRY     51      /* Tells OVQP that the result rel is a user relation */
 133: # define    EXIT        52  /* tells OVQP that query is done */
 134: # define        ACK 1   /* OVQP should write an acknowledging EOP */
 135: # define        NOACK   2   /* OVQP should not acknowledge */
 136: # define        RUBACK  3   /* internal mode for DECOMP */
 137: # define    REOPENRES   54  /* OVQP should reopen result relation */
 138: # define    RETVAL      55      /* RETURN FROM OVQP */
 139: # define        UPDATE      -3  /* tells DECOMP to call update */
 140: # define        NOUPDATE    -2  /* tells DECOMP not to call update */
 141: # define        EMPTY       -1
 142: # define        NONEMPTY    0
 143: # define    EOTUP       56      /* end of tuple symbol send by OVQP to equel */
 144: 
 145: /*	The following are pattern matching symbols used by ovqp */
 146: # define    PAT_ANY     1       /* matches 0 or more char */
 147: # define    PAT_ONE     2       /* matches any one char */
 148: # define    PAT_LBRAC   3       /* left bracket for char groupings */
 149: # define    PAT_RBRAC   4       /* right bracket for char groupings */

Defined macros

BADCOP defined in line 65; used 2 times
BINARY defined in line 120; used 1 times
CHANGESTRAT defined in line 131; used 1 times
CHAR defined in line 119; used 68 times
CID defined in line 128; never used
PAT_ONE defined in line 147; used 5 times
REOPENRES defined in line 137; used 1 times
RESULTID defined in line 125; used 1 times
RETVAL defined in line 138; never used
SITE defined in line 115; used 1 times
USERQRY defined in line 132; used 1 times
mdDCREATE defined in line 104; used 2 times
mdDISTRIB defined in line 107; used 1 times
mdMOVEREL defined in line 101; never used
mdNETQRY defined in line 100; never used
mdRANGE defined in line 92; used 1 times
mdWAITQRY defined in line 105; never used
opABS defined in line 30; used 1 times
opANY defined in line 62; used 1 times
opASCII defined in line 27; used 1 times
opATAN defined in line 23; used 1 times
opAVG defined in line 58; used 1 times
opAVGU defined in line 59; used 1 times
opCOS defined in line 24; used 1 times
opCOUNT defined in line 54; used 1 times
opCOUNTU defined in line 55; used 1 times
opDATE defined in line 68; used 1 times
opDBA defined in line 66; used 1 times
opDIV defined in line 42; used 1 times
opEXP defined in line 31; used 1 times
opFLOAT4 defined in line 35; used 1 times
opFLOAT8 defined in line 36; used 1 times
opGAMMA defined in line 25; used 1 times
opGE defined in line 49; used 2 times
opGT defined in line 48; used 2 times
opINT1 defined in line 32; used 1 times
opINT2 defined in line 33; used 1 times
opINT4 defined in line 34; used 1 times
opLE defined in line 47; used 2 times
opLOG defined in line 26; used 1 times
opLT defined in line 46; used 2 times
opMAX defined in line 61; used 2 times
opMIN defined in line 60; used 1 times
opMOD defined in line 50; used 1 times
opMUL defined in line 41; used 1 times
opNE defined in line 45; used 2 times
opPOW defined in line 43; used 1 times
opSIN defined in line 28; used 1 times
opSQRT defined in line 29; used 1 times
opSUM defined in line 56; used 1 times
opSUMU defined in line 57; used 1 times
opTIME defined in line 69; used 1 times
opUSERCODE defined in line 67; used 1 times

Usage of this include

symbol.h used 120 times
Last modified: 1980-12-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2511
Valid CSS Valid XHTML 1.0 Strict