1: /* 2: ** PV.H -- definitions for parameter vectors 3: ** 4: ** Version: 5: ** @(#)pv.h 8.1 12/31/84 6: */ 7: 8: # ifndef PV_MAXPC 9: 10: 11: /* setable constants */ 12: # define PV_MAXPC 125 /* maximum number of parameters */ 13: 14: /* the parameter vector type */ 15: typedef struct 16: { 17: short pv_type; /* the type, see below */ 18: short pv_len; /* the length of the value */ 19: union 20: { 21: short pv_int; /* PV_INT */ 22: struct querytree *pv_qtree; /* PV_QTREE */ 23: char *pv_str; /* PV_STR */ 24: char *pv_tuple; /* PV_TUPLE */ 25: } pv_val; 26: } PARM; 27: 28: /* pv_type values */ 29: # define PV_EOF 0 /* end of list */ 30: # define PV_INT 1 /* integer */ 31: # define PV_STR 2 /* string */ 32: # define PV_QTREE 3 /* query tree */ 33: # define PV_TUPLE 4 /* tuple */ 34: 35: 36: # endif PV_MAXPC