# 2.11BSD#431 - /usr/ingres/source/ovqp/ovqp.h

##### Variables

    Agcount           X
    Alist             X
    Bopen             X
    Buflag            X
    Bylist            X
    Counter           X
    Diffrel           X
    Hitid             X
    Intid             X
    Intup             X
    Lotid             X
    Newq              X
    Origtup           X
    Outtup            X
    Ov_qmode          X
    Qlist             X
    Qualvc            X
    Qvect             X
    Qvpointer         X
    R_decomp          X
    Result            X
    Retrieve          X
    Scanr             X
    Source            X
    Stack             X
    Targvc            X
    Tend              X
    Tlist             X
    Tupsfound         X
    Uptid             X
    Userqry           X
    W_decomp          X

##### Macros

    ANYLEN            X
    ANYTYPE           X
    BADAVG            X
    BADCHAR           X
    BADCONV           X
    BADMIX            X
    BADSECINDX        X
    BADSUMC           X
    BADUOPC           X
    CBUFULL           X
    CHARCONVERT       X
    CNTLEN            X
    CNTTYPE           X
    CURTUP            X
    DUPS              X
    FLOATEXCEP        X
    LBUFSIZE          X
    LISTFULL          X
    MAXNODES          X
    NODOVFLOW         X
    NODUPS            X
    NSIMP             X
    NUMERIC           X
    NXTTUP            X
    STACKOVER         X
    STACKSIZ          X
    TIDLEN            X
    TIDTYPE           X
    cpderef           X
    tTFLAG            X

##### struct's

    stacksym          X

       1: #
       2: /*
       3: **	This header file contains the external (global) declarations
       4: **	of variables and structures as well as the manifest constants
       5: **	particular to OVQP.
       6: **
       7: **	By convention global variable identifiers are spelled with
       8: **	an initial capital letter; manifest constants are in caps
       9: **	completely.
      10: **
      11: */
      12:
      13:
      14:
      15: /*
      16: **	Manifest constants
      17: */
      18:
      19:
      20: # define    tTFLAG      'O' /* trace flag */
      21:
      22: # define    LBUFSIZE    850 /* buffer size for holding query list */
      23:                     /* and concat and ascii buffers */
      24: # define    NSIMP       15  /*maximum no. of "simple clauses"
      25: 					 * allowed in Qual list
      26: 					 * (see "strategy" portion) */
      27: # ifndef    STACKSIZ
      28: # define    STACKSIZ    20  /* Stack size for interpreter */
      29: # endif
      30: # define    MAXNODES    (2 * MAXDOM) + 50   /* max nodes in Qvect */
      31:
      32: /* symbolic values for GETNXT parameter of fcn GET */
      33: # define    CURTUP  0   /* get tuple specified by tid */
      34: # define    NXTTUP  1   /* get next tuple after one specified by tid */
      35:
      36:
      37: /* symbolic values for CHECKDUPS param of fcn INSERT */
      38: # define    DUPS    0   /* allow a duplicate tuple to be inserted */
      39: # define    NODUPS  1   /* check for and avoid inserting
      40: 				 * a duplicate (if possible)*/
      41:
      42:
      43: # define    TIDTYPE     INT
      44: # define    TIDLEN      4
      45:
      46: # define    CNTLEN      4   /* counter for aggregate computations */
      47: # define    CNTTYPE     INT /* counter type */
      48:
      49: # define    ANYLEN      2   /* length for opANY */
      50: # define    ANYTYPE     INT /* type for opANY */
      51:
      52: /* error codes for errors caused by user query ie. not syserrs */
      53:
      54: # define    LISTFULL    4100    /* postfix query list full */
      55: # define    BADCONV     4101    /* */
      56: # define    BADUOPC     4102    /* Unary operator not allowed on char fields */
      57: # define    BADMIX      4103    /* can't assign, compare or operate a numberic with a char */
      58: # define    BADSUMC     4104    /* can't sum char domains (aggregate) */
      59: # define    BADAVG      4105    /* can't avg char domains (aggregate) */
      60: # define    STACKOVER   4106    /* interpreter stack overflow */
      61: # define    CBUFULL     4107    /* not enough space for concat or ascii operation */
      62: # define    BADCHAR     4108    /* arithmetic operation on two character fields */
      63: # define    NUMERIC     4109    /* numeric field in a character operator */
      64: # define    FLOATEXCEP  4110    /* floating point exception */
      65: # define    CHARCONVERT 4111    /* bad ascii to numeric conversion */
      66: # define    NODOVFLOW   4112    /* node vector overflow */
      67: # define    BADSECINDX  4199    /* found a 6.0 sec index */
      68:
      69: # define    cpderef(x)  (*((char **)(x)))
      70:
      71: char        Outtup[MAXTUP];
      72: char        Intup[MAXTUP];
      73: char        *Origtup;
      74: long        Intid;
      75: long        Uptid;
      76:
      77: int     Ov_qmode;   /* flag set to indicate mode of tuple disposition */
      78: extern int  Equel;  /* equel flag set by initproc */
      79:
      80:
      81:
      82: int     Bopen;          /* TRUE if batch file is open */
      83:
      84: struct descriptor   *Scanr,     /* pts to desc of reln to be scanned,
      85: 					 * (i.e. either Srcdesc or Indesc) */
      86:             *Source,    /* 0 if no source for qry, else points to Srcdesc */
      87:             *Result;    /* 0 if no result for qry, else points to Reldesc */
      88:
      89:
      90: long        *Counter;   /* cnts "gets" done in OVQP */
      91: char        *Tend;      /* pts to end of data in Outtup */
      92:
      93: struct symbol   **Tlist,
      94:         **Alist,
      95:         **Qlist,
      96:         **Bylist;
      97:
      98: int     Newq;           /* flags new user query to OVQP */
      99: long        Lotid, Hitid;       /* lo & hi limits of scan in OVQP */
     100:
     101: struct stacksym
     102: {
     103:     char    type;
     104:     char    len;
     105:     int value[4];
     106: }   Stack[STACKSIZ];    /* stack for OVQP interpreter */
     107:
     108:
     109: int Buflag;     /* flags a batch update situation (Ov_qmode != mdRETR) */
     110: int Targvc;     /* var count in Target list (flags constant Targ. list) */
     111: int Qualvc;     /* var count in Qual list */
     112: int Userqry;    /* flags a query on the users's result rel */
     113: int Retrieve;   /* true is a retrieve, else false */
     114: int Diffrel;    /* true is Source and Result are different */
     115: int Agcount;    /* count of the # of aggregates in the query */
     116: long    Tupsfound;  /* counts # tuples which satified the query */
     117: int R_decomp;   /* file for reading info from decomp */
     118: int W_decomp;   /* file for writing to decomp */
     119: struct symbol   *Qvect [MAXNODES];
     120: int     Qvpointer;

#### Defined variables

Agcount defined in line 115; used 7 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 152, 327
- in /usr/ingres/source/ovqp/getqry.c line 176, 191
- in /usr/ingres/source/ovqp/interp.c line 576
- in /usr/ingres/source/ovqp/scan.c line 98
- in /usr/ingres/source/ovqp/support.c line 129

Alist defined in line 94; used 11 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 149, 156
- in /usr/ingres/source/ovqp/getqry.c line 145, 188-189(2)
- in /usr/ingres/source/ovqp/scan.c line 34-38(2), 81, 213
- in /usr/ingres/source/ovqp/support.c line 126-128(2)

Bopen defined in line 82; used 16 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 130, 136, 248-251(2), 257-260(2)
- in /usr/ingres/source/ovqp/getqry.c line 93-98(2)
- in /usr/ingres/source/ovqp/main.c line 71-74(2)
- in /usr/ingres/source/ovqp/startovqp.c line 26
- in /usr/ingres/source/ovqp/support.c line 29, 41-45(2), 86-89(2)

Buflag defined in line 109; used 5 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 120, 138
- in /usr/ingres/source/ovqp/getqry.c line 58, 100
- in /usr/ingres/source/ovqp/scan.c line 261

Bylist defined in line 96; used 13 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 149, 161
- in /usr/ingres/source/ovqp/getqry.c line 145, 198-199(2)
- in /usr/ingres/source/ovqp/interp.c line 66, 576
- in /usr/ingres/source/ovqp/scan.c line 34, 82-86(2), 192-194(2)
- in /usr/ingres/source/ovqp/support.c line 126

Counter defined in line 90; used 12 times

- in /usr/ingres/source/ovqp/interp.c line 533, 567, 573, 585, 638-640(2)
- in /usr/ingres/source/ovqp/scan.c line 85, 101, 128, 179, 203, 209

Diffrel defined in line 114; used 4 times

- in /usr/ingres/source/ovqp/interp.c line 166, 178
- in /usr/ingres/source/ovqp/scan.c line 64-69(2)

Hitid defined in line 99; used 6 times

- in /usr/ingres/source/ovqp/scan.c line 141
- in /usr/ingres/source/ovqp/strategy.c line 92-95(2), 191, 197, 207

Intid defined in line 74; used 4 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 322
- in /usr/ingres/source/ovqp/rdsym.c line 109
- in /usr/ingres/source/ovqp/scan.c line 153, 170

Intup defined in line 72; used 14 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 320
- in /usr/ingres/source/ovqp/getqry.c line 164, 184, 201, 217
- in /usr/ingres/source/ovqp/interp.c line 186
- in /usr/ingres/source/ovqp/key.c line 342
- in /usr/ingres/source/ovqp/scan.c line 70, 141, 150, 160-161(2), 167, 254

Lotid defined in line 99; used 7 times

- in /usr/ingres/source/ovqp/scan.c line 141, 153
- in /usr/ingres/source/ovqp/strategy.c line 92-95(2), 191, 197, 205

Newq defined in line 98; used 6 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 80, 144
- in /usr/ingres/source/ovqp/getqry.c line 58, 109
- in /usr/ingres/source/ovqp/strategy.c line 35-38(2)

Origtup defined in line 73; used 5 times

- in /usr/ingres/source/ovqp/interp.c line 180-182(2)
- in /usr/ingres/source/ovqp/scan.c line 65-70(2), 263

Outtup defined in line 71; used 18 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 348
- in /usr/ingres/source/ovqp/interp.c line 161, 182-186(2)
- in /usr/ingres/source/ovqp/interp1.c line 148
- in /usr/ingres/source/ovqp/scan.c line 41-46(2), 101, 124, 176, 195, 201, 212, 256, 263, 272-277(2)
- in /usr/ingres/source/ovqp/support.c line 130

Ov_qmode defined in line 77; used 11 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 102, 126, 134
- in /usr/ingres/source/ovqp/getqry.c line 78, 96, 118, 127-131(2)
- in /usr/ingres/source/ovqp/interp.c line 166(2)
- in /usr/ingres/source/ovqp/scan.c line 52

Qlist defined in line 95; used 13 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 149, 181
- in /usr/ingres/source/ovqp/findsimps.c line 50
- in /usr/ingres/source/ovqp/getqry.c line 145, 212-213(2)
- in /usr/ingres/source/ovqp/scan.c line 34, 112-114(3), 173(2)
- in /usr/ingres/source/ovqp/strategy.c line 48

Qualvc defined in line 111; used 4 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 151
- in /usr/ingres/source/ovqp/getqry.c line 146, 216
- in /usr/ingres/source/ovqp/scan.c line 112

Qvect defined in line 119; used 7 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 156-161(2), 171, 181, 332
- in /usr/ingres/source/ovqp/rdsym.c line 52, 64

Qvpointer defined in line 120; used 4 times

- in /usr/ingres/source/ovqp/getqry.c line 146
- in /usr/ingres/source/ovqp/rdsym.c line 50-52(2), 64

R_decomp defined in line 117; used 5 times

- in /usr/ingres/source/ovqp/getqry.c line 136
- in /usr/ingres/source/ovqp/main.c line 26
- in /usr/ingres/source/ovqp/rdsym.c line 26, 40
- in /usr/ingres/source/ovqp/support.c line 70

Result defined in line 87; used 43 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 110-112(2), 126-134(4)
- in /usr/ingres/source/ovqp/getqry.c line 57, 71, 78, 84-86(2), 96, 103
- in /usr/ingres/source/ovqp/interp.c line 154, 160-166(5), 180-186(3)
- in /usr/ingres/source/ovqp/scan.c line 38-41(3), 62, 98-99(2), 195-201(3), 212, 222-225(3), 236, 256, 272-283(6)

Retrieve defined in line 113; used 4 times

- in /usr/ingres/source/ovqp/getqry.c line 104, 129
- in /usr/ingres/source/ovqp/startovqp.c line 26
- in /usr/ingres/source/ovqp/support.c line 25

Scanr defined in line 84; used 28 times

- in /usr/ingres/source/ovqp/key.c line 204, 211(2), 232-241(3), 341-342(3)
- in /usr/ingres/source/ovqp/scan.c line 32(2), 120, 138-154(5), 160-162(2)
- in /usr/ingres/source/ovqp/strategy.c line 41-43(2), 112, 150, 162, 191-198(4)

Source defined in line 86; used 22 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 115-117(2), 320
- in /usr/ingres/source/ovqp/getqry.c line 57, 66
- in /usr/ingres/source/ovqp/scan.c line 62, 146, 154, 161, 167, 220, 254
- in /usr/ingres/source/ovqp/strategy.c line 35(2), 41, 52-55(2), 86-91(3), 101-102(2)

Stack defined in line 106; used 3 times

- in /usr/ingres/source/ovqp/interp.c line 67, 74
- in /usr/ingres/source/ovqp/key.c line 209

Targvc defined in line 110; used 6 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 150
- in /usr/ingres/source/ovqp/getqry.c line 146, 163, 183
- in /usr/ingres/source/ovqp/interp.c line 577
- in /usr/ingres/source/ovqp/scan.c line 188

Tend defined in line 91; used 16 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 348, 356-360(3)
- in /usr/ingres/source/ovqp/interp.c line 526, 614, 650-652(2)
- in /usr/ingres/source/ovqp/scan.c line 124, 176, 212
- in /usr/ingres/source/ovqp/support.c line 130, 145-151(4)

Tlist defined in line 93; used 10 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 149, 171
- in /usr/ingres/source/ovqp/getqry.c line 145, 169-170(2)
- in /usr/ingres/source/ovqp/scan.c line 34, 81(2), 131, 182

Tupsfound defined in line 116; used 6 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 264
- in /usr/ingres/source/ovqp/scan.c line 135, 186, 292
- in /usr/ingres/source/ovqp/startovqp.c line 25
- in /usr/ingres/source/ovqp/support.c line 123

Uptid defined in line 75; used 9 times

- in /usr/ingres/source/ovqp/interp.c line 165, 180-181(2)
- in /usr/ingres/source/ovqp/scan.c line 195, 251, 263, 272-282(3)

Userqry defined in line 112; used 7 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 120-124(2)
- in /usr/ingres/source/ovqp/getqry.c line 58, 76
- in /usr/ingres/source/ovqp/scan.c line 134, 185, 291

W_decomp defined in line 118; used 4 times

- in /usr/ingres/source/ovqp/main.c line 27
- in /usr/ingres/source/ovqp/support.c line 124, 160-164(2)

#### Defined struct's

stacksym defined in line 101; used 48 times

- in /usr/ingres/source/ovqp/equelpr.c line 83(2), 99(2)
- in /usr/ingres/source/ovqp/interp.c line 43(2), 508(2), 518(2)
- in /usr/ingres/source/ovqp/interp1.c line 34-36(4), 46-47(4), 55-58(6)
- in /usr/ingres/source/ovqp/key.c line 198(2), 248(2)
- in /usr/ingres/source/ovqp/rdsym.c line 92(2), 100-109(12)
- in /usr/ingres/source/ovqp/support.c line 107(2)
- in /usr/ingres/source/ovqp/typecheck.c line 90(2), 103(2)

#### Defined macros

ANYLEN defined in line 49; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 572

ANYTYPE defined in line 50; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 571

BADAVG defined in line 59; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 637

BADCHAR defined in line 62; used 1 times

- in /usr/ingres/source/ovqp/typecheck.c line 39

BADCONV defined in line 55; used 1 times

- in /usr/ingres/source/ovqp/interp1.c line 197

BADMIX defined in line 57; used 1 times

- in /usr/ingres/source/ovqp/typecheck.c line 72

BADSECINDX defined in line 67; used 2 times

- in /usr/ingres/source/ovqp/strategy.c line 111, 149

BADSUMC defined in line 58; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 560

BADUOPC defined in line 56; used 3 times

- in /usr/ingres/source/ovqp/interp.c line 358, 387, 416

CBUFULL defined in line 61; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 69

CHARCONVERT defined in line 65; used 1 times

- in /usr/ingres/source/ovqp/typecheck.c line 127

CNTLEN defined in line 46; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 566

CNTTYPE defined in line 47; used 1 times

- in /usr/ingres/source/ovqp/interp.c line 565

CURTUP defined in line 33; used 2 times

- in /usr/ingres/source/ovqp/interp.c line 180
- in /usr/ingres/source/ovqp/scan.c line 161

DUPS defined in line 38; never used
FLOATEXCEP defined in line 64; used 1 times

- in /usr/ingres/source/ovqp/startovqp.c line 36

LBUFSIZE defined in line 22; used 4 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 64, 147
- in /usr/ingres/source/ovqp/getqry.c line 53
- in /usr/ingres/source/ovqp/ovqp.c line 34

LISTFULL defined in line 54; used 2 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 147
- in /usr/ingres/source/ovqp/getqry.c line 53

MAXNODES defined in line 30; used 4 times

- in line 119
- in /usr/ingres/source/decomp/call_ovqp70.c line 31, 330
- in /usr/ingres/source/ovqp/rdsym.c line 50

NODOVFLOW defined in line 66; used 2 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 331
- in /usr/ingres/source/ovqp/rdsym.c line 51

NODUPS defined in line 39; used 2 times

- in /usr/ingres/source/ovqp/scan.c line 272-277(2)

NSIMP defined in line 24; used 1 times

- in /usr/ingres/source/ovqp/findsimps.c line 359

NUMERIC defined in line 63; used 1 times

- in /usr/ingres/source/ovqp/typecheck.c line 29

NXTTUP defined in line 34; used 2 times

- in /usr/ingres/source/ovqp/scan.c line 141
- in /usr/ingres/source/ovqp/strategy.c line 95

STACKOVER defined in line 60; never used
STACKSIZ defined in line 28; used 2 times

- in line 27, 106

TIDLEN defined in line 44; used 3 times

- in /usr/ingres/source/ovqp/rdsym.c line 108
- in /usr/ingres/source/ovqp/scan.c line 160(2)

TIDTYPE defined in line 43; used 1 times

- in /usr/ingres/source/ovqp/rdsym.c line 107

cpderef defined in line 69; used 20 times

- in /usr/ingres/source/ovqp/equelpr.c line 109
- in /usr/ingres/source/ovqp/interp.c line 112-117(2), 198, 344(2), 614
- in /usr/ingres/source/ovqp/interp1.c line 91, 157-160(2)
- in /usr/ingres/source/ovqp/key.c line 264
- in /usr/ingres/source/ovqp/prsym.c line 120
- in /usr/ingres/source/ovqp/string.c line 53-55(3), 85, 149-150(2)
- in /usr/ingres/source/ovqp/support.c line 145
- in /usr/ingres/source/ovqp/typecheck.c line 115

tTFLAG defined in line 20; never used

#### Usage of this include

ovqp.h used 18 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 8
- in /usr/ingres/source/ovqp/copyreturn.c line 7
- in /usr/ingres/source/ovqp/equelpr.c line 6
- in /usr/ingres/source/ovqp/findsimps.c line 5
- in /usr/ingres/source/ovqp/getqry.c line 6
- in /usr/ingres/source/ovqp/interp.c line 7
- in /usr/ingres/source/ovqp/interp1.c line 6
- in /usr/ingres/source/ovqp/key.c line 6
- in /usr/ingres/source/ovqp/main.c line 8
- in /usr/ingres/source/ovqp/ovqp.c line 4
- in /usr/ingres/source/ovqp/prsym.c line 6
- in /usr/ingres/source/ovqp/rdsym.c line 5
- in /usr/ingres/source/ovqp/scan.c line 5
- in /usr/ingres/source/ovqp/startovqp.c line 6
- in /usr/ingres/source/ovqp/strategy.c line 7
- in /usr/ingres/source/ovqp/string.c line 6
- in /usr/ingres/source/ovqp/support.c line 6
- in /usr/ingres/source/ovqp/typecheck.c line 5

Last modified: 1995-02-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1418 |