|
|
1.1 root 1: #
2:
3: /* @(#)ovqp.h 7.1 2/5/81 */
4:
5: /*
6: ** This header file contains the external (global) declarations
7: ** of variables and structures as well as the manifest constants
8: ** particular to OVQP.
9: **
10: ** By convention global variable identifiers are spelled with
11: ** an initial capital letter; manifest constants are in caps
12: ** completely.
13: */
14:
15:
16:
17: /*
18: ** Manifest constants
19: */
20:
21:
22: # define tTFLAG 'O' /* trace flag */
23:
24: # define LBUFSIZE 850 /* buffer size for holding query list */
25: /* and concat and ascii buffers */
26: # define NSIMP 15 /*maximum no. of "simple clauses"
27: * allowed in Qual list
28: * (see "strategy" portion) */
29: # ifndef STACKSIZ
30: # define STACKSIZ 20
31: # endif
32: # define MAXNODES (2 * MAXDOM) + 50 /* max nodes in De.ov_qvect */
33:
34: /* symbolic values for GETNXT parameter of fcn GET */
35: # define CURTUP 0 /* get tuple specified by tid */
36: # define NXTTUP 1 /* get next tuple after one specified by tid */
37:
38:
39: /* symbolic values for CHECKDUPS param of fcn INSERT */
40: # define DUPS 0 /* allow a duplicate tuple to be inserted */
41: # define NODUPS 1 /* check for and avoid inserting
42: * a duplicate (if possible)*/
43:
44:
45: # define TIDTYPE INT
46: # define TIDLEN 4
47:
48: # define CNTLEN 4 /* counter for aggregate computations */
49: # define CNTTYPE INT /* counter type */
50:
51: # define OANYLEN 2 /* length for opANY */
52: # define OANYTYPE INT /* type for opANY */
53:
54: /* error codes for errors caused by user query ie. not syserrs */
55:
56: # define LISTFULL 4100 /* postfix query list full */
57: # define BADCONV 4101 /* */
58: # define BADUOPC 4102 /* Unary operator not allowed on char fields */
59: # define BADMIX 4103 /* can't assign, compare or operate a numberic with a char */
60: # define BADSUMC 4104 /* can't sum char domains (aggregate) */
61: # define BADAVG 4105 /* can't avg char domains (aggregate) */
62: # define STACKOVER 4106 /* shorterpreter stack overflow */
63: # define CBUFULL 4107 /* not enough space for concat or ascii operation */
64: # define BADCHAR 4108 /* arithmetic operation on two character fields */
65: # define NUMERIC 4109 /* numeric field in a character operator */
66: # define FLOATEXCEP 4110 /* floating poshort exception */
67: # define CHARCONVERT 4111 /* bad ascii to numeric conversion */
68: # define NODOVFLOW 4112 /* node vector overflow */
69: # define COMPNOSP 4113 /* code table overflow */
70: # define COMPNOREGS 4114 /* no more registers */
71:
72: # define BADSECINDX 4199 /* found a 6.0 sec index */
73:
74:
75:
76:
77:
78:
79:
80: /* (i.e. either De.ov_srcdesc or Ov.ov_indesc) */
81:
82:
83:
84:
85:
86:
87:
88:
89: typedef char i1type;
90: typedef short i2type;
91: typedef long i4type;
92: typedef float f4type;
93: typedef double f8type;
94: typedef char c0type[];
95:
96:
97: typedef char *stringp;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.