diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-22 22:56:29 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-22 22:56:29 +0000 |
| commit | d20763dbee7cdf8a700bf6bdd120b3913a3b99f4 (patch) | |
| tree | 5cb9ed9ba10cdbac226fd6b96ac02a2cc5a543a8 /contrib/tsearch/query.h | |
| parent | 4cc7a93d220644ae068ce2639b961db6764a68f6 (diff) | |
| download | postgresql-d20763dbee7cdf8a700bf6bdd120b3913a3b99f4.tar.gz | |
Remove contrib modules that have been agreed to be obsolete.
(There are more that will be removed once they've been copied to
pgfoundry.org.)
Diffstat (limited to 'contrib/tsearch/query.h')
| -rw-r--r-- | contrib/tsearch/query.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/contrib/tsearch/query.h b/contrib/tsearch/query.h deleted file mode 100644 index e7ca700be2..0000000000 --- a/contrib/tsearch/query.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef __QUERY_H__ -#define __QUERY_H__ -/* -#define BS_DEBUG -*/ - - -/* - * item in polish notation with back link - * to left operand - */ -typedef struct ITEM -{ - int2 type; - int2 left; - int4 val; - /* user-friendly value */ - uint16 distance; - uint16 length; -} ITEM; - -/* - *Storage: - * (len)(size)(array of ITEM)(array of operand in user-friendly form) - */ -typedef struct -{ - int4 len; - int4 size; - char data[1]; -} QUERYTYPE; - -#define HDRSIZEQT ( 2*sizeof(int4) ) -#define COMPUTESIZE(size, lenofoperand) ( HDRSIZEQT + (size) * sizeof(ITEM) + (lenofoperand) ) -#define GETQUERY(x) (ITEM*)( (char*)(x)+HDRSIZEQT ) -#define GETOPERAND(x) ( (char*)GETQUERY(x) + ((QUERYTYPE*)(x))->size * sizeof(ITEM) ) - -#define ISOPERATOR(x) ( (x)=='!' || (x)=='&' || (x)=='|' || (x)=='(' || (x)==')' ) - -#define END 0 -#define ERR 1 -#define VAL 2 -#define OPR 3 -#define OPEN 4 -#define CLOSE 5 -#define VALTRUE 6 /* for stop words */ -#define VALFALSE 7 - -bool execute(ITEM * curitem, void *checkval, - bool calcnot, bool (*chkcond) (void *checkval, ITEM * val)); - -#endif |
