mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Allow /contrib include files to compile on their own.
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
#ifndef __TS_COMMON_H__
|
||||
#define __TS_COMMON_H__
|
||||
|
||||
#include "postgres.h"
|
||||
#include "fmgr.h"
|
||||
|
||||
#ifndef PG_NARGS
|
||||
#define PG_NARGS() (fcinfo->nargs)
|
||||
#endif
|
||||
#include "utils/array.h"
|
||||
|
||||
text *char2text(char *in);
|
||||
text *charl2text(char *in, int len);
|
||||
|
@ -48,7 +48,7 @@ typedef struct
|
||||
#define CLOSE 5
|
||||
#define VALSTOP 6 /* for stop words */
|
||||
|
||||
bool TS_execute(ITEM * curitem, void *checkval,
|
||||
bool calcnot, bool (*chkcond) (void *checkval, ITEM * val));
|
||||
bool TS_execute(ITEM *curitem, void *checkval,
|
||||
bool calcnot, bool (*chkcond) (void *checkval, ITEM *val));
|
||||
|
||||
#endif
|
||||
|
@ -1,7 +1,9 @@
|
||||
#ifndef __REWRITE_H__
|
||||
#define __REWRITE_H__
|
||||
|
||||
ITEM *clean_NOT_v2(ITEM * ptr, int4 *len);
|
||||
ITEM *clean_fakeval_v2(ITEM * ptr, int4 *len);
|
||||
#include "query.h"
|
||||
|
||||
ITEM *clean_NOT_v2(ITEM *ptr, int4 *len);
|
||||
ITEM *clean_fakeval_v2(ITEM *ptr, int4 *len);
|
||||
|
||||
#endif
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "utils/memutils.h"
|
||||
|
||||
#include "query.h"
|
||||
#include "executor/spi.h"
|
||||
|
||||
typedef struct QTNode
|
||||
{
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* $PostgreSQL: pgsql/contrib/tsearch2/snowball/header.h,v 1.7 2006/03/11 04:38:30 momjian Exp $ */
|
||||
/* $PostgreSQL: pgsql/contrib/tsearch2/snowball/header.h,v 1.8 2006/07/10 22:06:11 momjian Exp $ */
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "api.h"
|
||||
|
||||
#define HEAD 2*sizeof(int)
|
||||
#define HEAD (2 * sizeof(int))
|
||||
|
||||
#define SIZE(p) ((int *)(p))[-1]
|
||||
#define SET_SIZE(p, n) ((int *)(p))[-1] = n
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "access/itup.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "storage/bufpage.h"
|
||||
#include "tsvector.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
Reference in New Issue
Block a user