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

##### Variables

    Agflag            X
    Attable           X
    Dcase             X
    Desc              X
    Equel             X
    Freeatt           X
    Indexname         X
    Indexspec         X
    Ingerr            X
    Lastcnt           X
    Lastcsp           X
    Lastree           X
    Noupdt            X
    Opflag            X
    Patflag           X
    Pbuffer           X
    Pc                X
    Permcomd          X
    Pv                X
    Qbuf              X
    Qlflag            X
    Qrymod            X
    Reldesc           X
    Relspec           X
    Resrng            X
    Rngtab            X
    Rsdmno            X
    Tidnode           X
    Trfrml            X
    Trfrmt            X
    Trname            X
    yyline            X

##### Macros

    AGGXTRA           X
    AVGTYPE           X
    BAD24TIME         X
    BADCONSTOP        X
    BADHOURS          X
    BADMINS           X
    CANTUPDATE        X
    CONCATTYPE        X
    FOPTYPE           X
    INDEXTRA          X
    LOOKREL           X
    LOOKVAR           X
    MAXATT            X
    MODTYPE           X
    NOATTRIN          X
    NOPATMAT          X
    NOQRYMOD          X
    NOVBLE            X
    NUMTYPE           X
    NXTCMDERR         X
    PARBUFSIZ         X
    PBUFOFLO          X
    RELTYPE           X
    REPALL            X
    RESAPPEX          X
    RESEXIST          X
    RESTYPE           X
    RESXTRA           X
    RNGEXIST          X
    R_EXTERNAL        X
    R_INTERNAL        X
    SUMTYPE           X
    TARGXTRA          X
    TREEMAX           X
    TREEOFLO          X
    UOPTYPE           X

##### struct's

    atstash           X
    constop           X
    rngtab            X

       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    PARBUFSIZ   2000    /* size of buffer for dbu commands */
      18: # define    TREEMAX     2500    /* max number of bytes for tree */
      19: # define    MAXATT      150 /* max number of attributes in the att stash */
      20:
      21: /* mode parameters for range table manipulation */
      22: # define    LOOKREL     1
      23: # define    LOOKVAR     2
      24: # define    R_INTERNAL  3
      25: # define    R_EXTERNAL  4
      26:
      27: /* error numbers */
      28: # define    TREEOFLO    2118    /* over flow tree buffer */
      29: # define    PBUFOFLO    2106    /* over flow dbu arg buffer */
      30:
      31: # define    NOATTRIN    2100    /* attrib not in relation */
      32: # define    CANTUPDATE  2107    /* can't update rel */
      33: # define    NOVBLE      2109    /* vble not declared */
      34: # define    NOPATMAT    2120    /* no pattern matching in tl */
      35: # define    RNGEXIST    2117    /* can't find rel for var */
      36: # define    REPALL      2123    /* x.all on replace */
      37: # define    BADCONSTOP  2134    /* bad constant operator */
      38:
      39: # define    INDEXTRA    2111    /* too many atts in key */
      40: # define    RESXTRA     2130    /* too many resdoms in tl */
      41: # define    TARGXTRA    2131    /* tl larger than MAXTUP */
      42: # define    AGGXTRA     2132    /* too many aggs */
      43:
      44: # define    MODTYPE     2119    /* type conflict for MOD */
      45: # define    CONCATTYPE  2121    /* type conflict for CONCAT */
      46: # define    AVGTYPE     2125    /* type conflict for AVG(U) */
      47: # define    SUMTYPE     2126    /* type conflict for SUM(U) */
      48: # define    FOPTYPE     2127    /* type conflict for func ops */
      49: # define    UOPTYPE     2128    /* type conflict for unary ops */
      50: # define    NUMTYPE     2129    /* type conflict for numeric ops */
      51: # define    RELTYPE     2133    /* type conflict for relatv op */
      52:
      53: # define    RESTYPE     2103    /* result type mismatch w/expr */
      54: # define    RESAPPEX    2108    /* append res rel not exist */
      55: # define    RESEXIST    2135    /* result rel already exists */
      56:
      57: # define    NXTCMDERR   2501    /* misspelt where problem */
      58: # define    NOQRYMOD    2139    /* no qrymod in database */
      59:
      60: # define    BADHOURS    2136    /* no such hour */
      61: # define    BADMINS     2137    /* no such minute */
      62: # define    BAD24TIME   2138    /* only 24:00 can be used */
      63:
      64: /* -- ASSORTED DATA STRUCTURES -- */
      65: struct atstash                  /* attribute table */
      66: {
      67:     char        atbid;          /* attribute number */
      68:     char        atbfrmt;        /* attribute form type */
      69:     char        atbfrml;        /* attribute form length */
      70:     char        atbname[MAXNAME];   /* attribute name */
      71:     struct atstash  *atbnext;       /* pointer to next entry in chain */
      72: };
      73:
      74: struct rngtab               /* range table */
      75: {
      76:     int     rentno;         /* variable number of this table position */
      77:     char        rmark;          /* was it used in this command */
      78:     char        ractiv;         /* is entry empty */
      79:     int     rposit;         /* lru position of entry */
      80:     char        varname[MAXNAME + 1];   /* variable name */
      81:     char        relnm[MAXNAME + 1]; /* relation name */
      82:     char        relnowner[2];       /* relation owner */
      83:     int     rstat;          /* relstat field of relation relation */
      84:     int     ratts;          /* number of attributes in relation */
      85:     struct atstash  *attlist;       /* head of attrib list for this reln */
      86: };
      87:
      88: struct constop              /* constant operator lookup table */
      89: {
      90:     char    *copname;       /* string name for identification */
      91:     int copnum;         /* op number */
      92:     char    coptype;        /* op result type for formating */
      93:     char    coplen;         /* op result length for formatting */
      94: };
      95:
      96: struct rngtab       Rngtab[MAXVAR + 1]; /* range table */
      97: struct rngtab       *Resrng;    /* ptr to result reln entry */
      98: struct atstash      Attable[MAXATT];    /* attrib stash space, turned into a list later */
      99: struct atstash      *Freeatt;   /* free list of attrib stash */
     100: struct querytree    *Tidnode;   /* pointer to tid node of targ list
     101: 					   for REPLACE, DELETE */
     102: struct querytree    *Lastree;   /* pointer to root node of tree */
     103: struct descriptor   Reldesc;    /* descriptor for range table lookup */
     104: struct descriptor   Desc;       /* descriptor for attribute relation */
     105: extern struct atstash   Faketid;    /* atstash structure for TID node */
     106: #ifdef  DISTRIB
     107: extern struct atstash   Fakesid;    /* atstash structure for SID node */
     108: #endif
     109:
     110: int         Rsdmno;     /* result domain number */
     111: int         Opflag;     /* operator flag contains query mode */
     112: char            *Relspec;   /* ptr to storage structure of result relation */
     113: char            *Indexspec; /* ptr to stor strctr of index */
     114: char            *Indexname; /* ptr to name of index */
     115: char            Trfrmt;     /* format for type checking */
     116: char            Trfrml;     /* format length for type checking */
     117: char            *Trname;    /* pointer to attribute name */
     118: int         Agflag;     /* how many aggs in this qry */
     119: int         Equel;      /* indicates EQUEL preprocessor on */
     120: int         Ingerr;     /* set if a query returns an error from processes below */
     121: int         Patflag;    /* signals a pattern match reduction */
     122: int         Qlflag;     /* set when processing a qual */
     123: int         Noupdt;     /* INGRES user override of no update restriction */
     124: extern int      yypflag;    /* disable action stmts if = 0 */
     125: int         yyline;     /* line counter */
     126: struct retcode      *Lastcnt;   /* ptr to last tuple count, or 0 */
     127: struct retcode      Lastcsp;    /* space for last tuple count */
     128: int         Dcase;      /* default case mapping */
     129: char            **Pv;       /* ptr to list of dbu params */
     130: char            Pbuffer[PARBUFSIZ]; /* buffer for dbu commands */
     131: int         Pc;     /* number of dbu commands */
     132: char            *Qbuf;      /* buffer which holds tree allocated on stack in main.c to get data space */
     133: int         Permcomd;
     134: int         Qrymod;     /* qrymod on in database flag */

#### Defined variables

Agflag defined in line 118; used 2 times

- in /usr/ingres/source/parser/control.c line 53, 95

Attable defined in line 98; used 2 times

- in /usr/ingres/source/parser/rngfcn.c line 34, 41

Dcase defined in line 128; used 2 times

- in /usr/ingres/source/parser/control.c line 52
- in /usr/ingres/source/parser/main.c line 35

Desc defined in line 104; used 14 times

- in /usr/ingres/source/parser/attfcn.c line 68-72(5)
- in /usr/ingres/source/parser/control.c line 109, 160
- in /usr/ingres/source/parser/main.c line 62
- in /usr/ingres/source/parser/xdot.c line 40-47(6)

Equel defined in line 119; used 4 times

- in /usr/ingres/source/parser/call_tree.c line 41, 55
- in /usr/ingres/source/parser/control.c line 111
- in /usr/ingres/source/parser/tree.c line 264

Freeatt defined in line 99; used 8 times

- in /usr/ingres/source/parser/attfcn.c line 178-179(2), 195, 202-207(4)
- in /usr/ingres/source/parser/rngfcn.c line 41

Indexname defined in line 114; used 2 times

- in /usr/ingres/source/parser/control.c line 184
- in /usr/ingres/source/parser/master.grammar line 808

Indexspec defined in line 113; used 6 times

- in /usr/ingres/source/parser/control.c line 182-185(2)
- in /usr/ingres/source/parser/main.c line 39, 51, 58-59(2)

Ingerr defined in line 120; used 4 times

- in /usr/ingres/source/parser/control.c line 49, 114, 177
- in /usr/ingres/source/parser/main.c line 117

Lastcnt defined in line 126; used 6 times

- in /usr/ingres/source/parser/control.c line 215-217(3), 238-241(2), 253

Lastcsp defined in line 127; used 2 times

- in /usr/ingres/source/parser/control.c line 237-238(2)

Lastree defined in line 102; used 9 times

- in /usr/ingres/source/parser/call_tree.c line 34
- in /usr/ingres/source/parser/master.grammar line 113, 130, 146, 162, 196, 216, 326, 351

Noupdt defined in line 123; used 2 times

- in /usr/ingres/source/parser/main.c line 34
- in /usr/ingres/source/parser/rngfcn.c line 271

Opflag defined in line 111; used 35 times

- in /usr/ingres/source/parser/control.c line 54
- in /usr/ingres/source/parser/master.grammar line 73-75(2), 107, 118, 135, 151, 167, 185, 208, 221, 332, 355, 377, 452, 481, 638, 656-658(3), 682, 689, 702-707(2), 716, 737-742(2), 750, 758, 804, 815, 862, 869
- in /usr/ingres/source/parser/tree.c line 254, 291

Patflag defined in line 121; used 3 times

- in /usr/ingres/source/parser/control.c line 50
- in /usr/ingres/source/parser/master.grammar line 443, 610

Pbuffer defined in line 130; used 3 times

- in /usr/ingres/source/parser/call_p.c line 43, 57-58(2)

Pc defined in line 131; used 6 times

- in /usr/ingres/source/parser/call_p.c line 21, 46-49(3), 59
- in /usr/ingres/source/parser/p_util.c line 209

Permcomd defined in line 133; used 7 times

- in /usr/ingres/source/parser/master.grammar line 244-245(2)
- in /usr/ingres/source/parser/p_util.c line 351-367(5)

Pv defined in line 129; used 8 times

- in /usr/ingres/source/parser/call_p.c line 24-26(2), 46, 58(2)
- in /usr/ingres/source/parser/p_util.c line 211-212(3)

Qbuf defined in line 132; used 3 times

- in /usr/ingres/source/parser/control.c line 48
- in /usr/ingres/source/parser/main.c line 25
- in /usr/ingres/source/parser/tree.c line 35

Qlflag defined in line 122; used 9 times

- in /usr/ingres/source/parser/control.c line 56
- in /usr/ingres/source/parser/format.c line 198, 232
- in /usr/ingres/source/parser/master.grammar line 327, 333, 368, 498, 511, 609

Qrymod defined in line 134; used 9 times

- in /usr/ingres/source/parser/main.c line 68
- in /usr/ingres/source/parser/master.grammar line 209, 222, 334, 708, 717, 743, 751, 759

Reldesc defined in line 103; used 10 times

- in /usr/ingres/source/parser/master.grammar line 97-102(4), 382-387(2), 406-411(4)

Relspec defined in line 112; used 6 times

- in /usr/ingres/source/parser/call_tree.c line 48-51(2)
- in /usr/ingres/source/parser/main.c line 38, 46, 56-57(2)

Resrng defined in line 97; used 35 times

- in /usr/ingres/source/parser/call_tree.c line 26-31(3), 41-50(3)
- in /usr/ingres/source/parser/control.c line 55, 105, 140
- in /usr/ingres/source/parser/master.grammar line 175, 181, 187, 203, 246-247(2), 278-279(2), 398-404(3), 411-413(2), 422-423(2), 431-436(4)
- in /usr/ingres/source/parser/rngfcn.c line 177-179(3)
- in /usr/ingres/source/parser/tree.c line 264, 282-288(3)

Rngtab defined in line 96; used 10 times

- in /usr/ingres/source/parser/rngfcn.c line 21, 60, 108, 167, 195, 216, 234, 240, 253, 292

Rsdmno defined in line 110; used 16 times

- in /usr/ingres/source/parser/control.c line 187
- in /usr/ingres/source/parser/master.grammar line 173, 180, 186, 201, 566, 796, 805, 816, 854-856(2)
- in /usr/ingres/source/parser/tree.c line 259-263(3), 289-290(2)

Tidnode defined in line 100; used 3 times

- in /usr/ingres/source/parser/master.grammar line 130, 436, 454

Trfrml defined in line 116; used 25 times

- in /usr/ingres/source/parser/format.c line 170-190(8), 248, 257-266(5), 272-278(3), 284-289(2), 304-309(2), 317
- in /usr/ingres/source/parser/tree.c line 73, 79, 269

Trfrmt defined in line 115; used 26 times

- in /usr/ingres/source/parser/attfcn.c line 160
- in /usr/ingres/source/parser/format.c line 135, 171, 183, 193-195(2), 205, 212, 235-237(2), 247-260(5), 271-274(2), 283-289(3), 303-306(2), 316
- in /usr/ingres/source/parser/tree.c line 72, 78, 268

Trname defined in line 117; used 12 times

- in /usr/ingres/source/parser/master.grammar line 277-278(2), 470, 576-579(2)
- in /usr/ingres/source/parser/tree.c line 267, 280-288(5)
- in /usr/ingres/source/parser/xdot.c line 59

yyline defined in line 125; used 1 times

- in /usr/ingres/source/parser/control.c line 255

#### Defined struct's

atstash defined in line 65; used 66 times

- in line 71(2), 85(2), 98-99(4), 105-107(4)
- in /usr/ingres/source/parser/attfcn.c line 13-18(4), 30(2), 36(2), 42-43(4), 88-97(10), 130-135(4), 155-157(4), 170-172(4), 186-189(4), 220(2)
- in /usr/ingres/source/parser/master.grammar line 63(2)
- in /usr/ingres/source/parser/rngfcn.c line 18(2)
- in /usr/ingres/source/parser/tree.c line 21-23(4), 250-252(4)
- in /usr/ingres/source/parser/xdot.c line 28(2)

constop defined in line 88; used 8 times

- in /usr/ingres/source/parser/format.c line 29-31(4)
- in /usr/ingres/source/parser/tree.c line 307-309(4)

rngtab defined in line 74; used 62 times

- in line 96-97(4)
- in /usr/ingres/source/parser/attfcn.c line 32-35(4), 90(2), 132(2), 190-192(4), 217(2)
- in /usr/ingres/source/parser/call_tree.c line 84-86(4)
- in /usr/ingres/source/parser/rngfcn.c line 19(2), 50-55(4), 89(2), 98-99(4), 144(2), 164(2), 188-191(6), 209-212(6), 231(2), 246-250(4), 269(2), 287(2)
- in /usr/ingres/source/parser/xdot.c line 18(2)

#### Defined macros

AGGXTRA defined in line 42; used 1 times

- in /usr/ingres/source/parser/control.c line 97

AVGTYPE defined in line 46; used 1 times

- in /usr/ingres/source/parser/format.c line 50

BAD24TIME defined in line 62; used 1 times

- in /usr/ingres/source/parser/p_util.c line 112

BADCONSTOP defined in line 37; used 1 times

- in /usr/ingres/source/parser/tree.c line 67

BADHOURS defined in line 60; used 1 times

- in /usr/ingres/source/parser/p_util.c line 103

BADMINS defined in line 61; used 1 times

- in /usr/ingres/source/parser/p_util.c line 106

CANTUPDATE defined in line 32; used 1 times

- in /usr/ingres/source/parser/rngfcn.c line 275

CONCATTYPE defined in line 45; used 1 times

- in /usr/ingres/source/parser/format.c line 308

FOPTYPE defined in line 48; used 2 times

- in /usr/ingres/source/parser/format.c line 139, 214

INDEXTRA defined in line 39; used 1 times

- in /usr/ingres/source/parser/master.grammar line 798

LOOKREL defined in line 22; used 2 times

- in /usr/ingres/source/parser/master.grammar line 403
- in /usr/ingres/source/parser/rngfcn.c line 146

LOOKVAR defined in line 23; used 5 times

- in /usr/ingres/source/parser/master.grammar line 422, 431, 585
- in /usr/ingres/source/parser/rngfcn.c line 72, 111

MAXATT defined in line 19; used 2 times

- in line 98
- in /usr/ingres/source/parser/rngfcn.c line 35

MODTYPE defined in line 44; used 1 times

- in /usr/ingres/source/parser/format.c line 276

NOATTRIN defined in line 31; used 3 times

- in /usr/ingres/source/parser/attfcn.c line 80
- in /usr/ingres/source/parser/tree.c line 282-286(2)

NOPATMAT defined in line 34; used 1 times

- in /usr/ingres/source/parser/master.grammar line 445

NOQRYMOD defined in line 58; used 8 times

- in /usr/ingres/source/parser/master.grammar line 211, 224, 336, 710, 719, 745, 753, 761

NOVBLE defined in line 33; used 3 times

- in /usr/ingres/source/parser/master.grammar line 425, 434, 588

NUMTYPE defined in line 50; used 2 times

- in /usr/ingres/source/parser/format.c line 252, 288

NXTCMDERR defined in line 57; used 1 times

- in /usr/ingres/source/parser/control.c line 92

PARBUFSIZ defined in line 17; used 2 times

- in line 130
- in /usr/ingres/source/parser/call_p.c line 57

PBUFOFLO defined in line 29; used 1 times

- in /usr/ingres/source/parser/call_p.c line 57

RELTYPE defined in line 51; used 1 times

- in /usr/ingres/source/parser/format.c line 239

REPALL defined in line 36; used 1 times

- in /usr/ingres/source/parser/master.grammar line 483

RESAPPEX defined in line 54; used 1 times

- in /usr/ingres/source/parser/master.grammar line 410

RESEXIST defined in line 55; used 1 times

- in /usr/ingres/source/parser/master.grammar line 390

RESTYPE defined in line 53; used 1 times

- in /usr/ingres/source/parser/attfcn.c line 162

RESXTRA defined in line 40; used 1 times

- in /usr/ingres/source/parser/tree.c line 262

RNGEXIST defined in line 35; used 1 times

- in /usr/ingres/source/parser/master.grammar line 101

R_EXTERNAL defined in line 25; used 2 times

- in /usr/ingres/source/parser/master.grammar line 102
- in /usr/ingres/source/parser/rngfcn.c line 109

R_INTERNAL defined in line 24; used 3 times

- in /usr/ingres/source/parser/master.grammar line 398, 411
- in /usr/ingres/source/parser/rngfcn.c line 107

SUMTYPE defined in line 47; used 1 times

- in /usr/ingres/source/parser/format.c line 70

TARGXTRA defined in line 41; never used
TREEMAX defined in line 18; used 2 times

- in /usr/ingres/source/parser/control.c line 48
- in /usr/ingres/source/parser/main.c line 21

TREEOFLO defined in line 28; used 1 times

- in /usr/ingres/source/parser/control.c line 48

UOPTYPE defined in line 49; used 1 times

- in /usr/ingres/source/parser/format.c line 207

#### Usage of this include

parser.h used 11 times

- in /usr/ingres/source/parser/attfcn.c line 6
- in /usr/ingres/source/parser/call_p.c line 4
- in /usr/ingres/source/parser/call_tree.c line 6
- in /usr/ingres/source/parser/control.c line 5
- in /usr/ingres/source/parser/format.c line 6
- in /usr/ingres/source/parser/main.c line 5
- in /usr/ingres/source/parser/master.grammar line 58
- in /usr/ingres/source/parser/p_util.c line 4
- in /usr/ingres/source/parser/rngfcn.c line 6
- in /usr/ingres/source/parser/tree.c line 5
- in /usr/ingres/source/parser/xdot.c line 6

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