Allow /contrib include files to compile on their own.
This commit is contained in:
parent
f0cd764723
commit
c5133e5920
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef ___INT_H__
|
||||||
|
#define ___INT_H__
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
@ -171,3 +174,5 @@ int compDESC(const void *a, const void *b);
|
|||||||
if (ARRNELEMS(a) > 1) \
|
if (ARRNELEMS(a) > 1) \
|
||||||
qsort((void*)ARRPTR(a), ARRNELEMS(a),sizeof(int4), \
|
qsort((void*)ARRPTR(a), ARRNELEMS(a),sizeof(int4), \
|
||||||
(direction) ? compASC : compDESC )
|
(direction) ? compASC : compDESC )
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -26,12 +26,14 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgcrypto.h,v 1.8 2003/11/29 22:39:28 pgsql Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgcrypto.h,v 1.9 2006/07/10 22:06:11 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _PG_CRYPTO_H
|
#ifndef _PG_CRYPTO_H
|
||||||
#define _PG_CRYPTO_H
|
#define _PG_CRYPTO_H
|
||||||
|
|
||||||
|
#include "fmgr.h"
|
||||||
|
|
||||||
/* exported functions */
|
/* exported functions */
|
||||||
Datum pg_digest(PG_FUNCTION_ARGS);
|
Datum pg_digest(PG_FUNCTION_ARGS);
|
||||||
Datum pg_digest_exists(PG_FUNCTION_ARGS);
|
Datum pg_digest_exists(PG_FUNCTION_ARGS);
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
#ifndef TABLEFUNC_H
|
#ifndef TABLEFUNC_H
|
||||||
#define TABLEFUNC_H
|
#define TABLEFUNC_H
|
||||||
|
|
||||||
|
#include "fmgr.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* External declarations
|
* External declarations
|
||||||
*/
|
*/
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
#ifndef __TS_COMMON_H__
|
#ifndef __TS_COMMON_H__
|
||||||
#define __TS_COMMON_H__
|
#define __TS_COMMON_H__
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
|
#include "utils/array.h"
|
||||||
#ifndef PG_NARGS
|
|
||||||
#define PG_NARGS() (fcinfo->nargs)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
text *char2text(char *in);
|
text *char2text(char *in);
|
||||||
text *charl2text(char *in, int len);
|
text *charl2text(char *in, int len);
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef __REWRITE_H__
|
#ifndef __REWRITE_H__
|
||||||
#define __REWRITE_H__
|
#define __REWRITE_H__
|
||||||
|
|
||||||
|
#include "query.h"
|
||||||
|
|
||||||
ITEM *clean_NOT_v2(ITEM *ptr, int4 *len);
|
ITEM *clean_NOT_v2(ITEM *ptr, int4 *len);
|
||||||
ITEM *clean_fakeval_v2(ITEM *ptr, int4 *len);
|
ITEM *clean_fakeval_v2(ITEM *ptr, int4 *len);
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
|
||||||
#include "query.h"
|
#include "query.h"
|
||||||
|
#include "executor/spi.h"
|
||||||
|
|
||||||
typedef struct QTNode
|
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 <limits.h>
|
||||||
|
|
||||||
#include "api.h"
|
#include "api.h"
|
||||||
|
|
||||||
#define HEAD 2*sizeof(int)
|
#define HEAD (2 * sizeof(int))
|
||||||
|
|
||||||
#define SIZE(p) ((int *)(p))[-1]
|
#define SIZE(p) ((int *)(p))[-1]
|
||||||
#define SET_SIZE(p, n) ((int *)(p))[-1] = n
|
#define SET_SIZE(p, n) ((int *)(p))[-1] = n
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "access/itup.h"
|
#include "access/itup.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "storage/bufpage.h"
|
#include "storage/bufpage.h"
|
||||||
|
#include "tsvector.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef USER_LOCKS_H
|
#ifndef USER_LOCKS_H
|
||||||
#define USER_LOCKS_H
|
#define USER_LOCKS_H
|
||||||
|
|
||||||
|
#include "storage/lock.h"
|
||||||
|
|
||||||
extern int user_lock(uint32 id1, uint32 id2, LOCKMODE lockmode);
|
extern int user_lock(uint32 id1, uint32 id2, LOCKMODE lockmode);
|
||||||
extern int user_unlock(uint32 id1, uint32 id2, LOCKMODE lockmode);
|
extern int user_unlock(uint32 id1, uint32 id2, LOCKMODE lockmode);
|
||||||
extern int user_write_lock(uint32 id1, uint32 id2);
|
extern int user_write_lock(uint32 id1, uint32 id2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user