mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Restructure the key include files per recent pghackers discussion: there
are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
/*#include "postgres.h"*/
|
||||
|
||||
typedef struct NDBOX {
|
||||
unsigned int size; /* required to be a Postgres varlena type */
|
||||
unsigned int dim;
|
||||
|
@ -1,10 +1,9 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "utils/geo_decls.h" /* for Pt */
|
||||
|
||||
#include <postgres.h>
|
||||
#include <utils/geo_decls.h> /* for Pt */
|
||||
#include <utils/palloc.h> /* for palloc */
|
||||
|
||||
/* Earth's radius is in statute miles. */
|
||||
const int EARTH_RADIUS = 3958.747716;
|
||||
|
@ -1,8 +1,9 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "executor/spi.h"
|
||||
#include "commands/trigger.h"
|
||||
#include <ctype.h>
|
||||
#include <stdio.h> /* debugging */
|
||||
|
||||
/*
|
||||
* Trigger function takes 2 arguments:
|
||||
|
@ -4,11 +4,11 @@
|
||||
format for these routines is dictated by Postgres architecture.
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include <float.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "postgres.h"
|
||||
#include "access/gist.h"
|
||||
#include "access/itup.h"
|
||||
#include "access/rtree.h"
|
||||
|
@ -1,13 +1,11 @@
|
||||
/*
|
||||
* PostgreSQL type definitions for ISBNs.
|
||||
*
|
||||
* $Id: isbn_issn.c,v 1.2 2000/06/19 13:53:39 momjian Exp $
|
||||
* $Id: isbn_issn.c,v 1.3 2001/02/10 02:31:25 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include <postgres.h>
|
||||
#include <utils/palloc.h>
|
||||
|
||||
/*
|
||||
* This is the internal storage format for ISBNs.
|
||||
|
@ -1,16 +1,12 @@
|
||||
/*
|
||||
* PostgreSQL type definitions for managed LargeObjects.
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.6 2000/11/21 21:51:58 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.7 2001/02/10 02:31:25 tgl Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "utils/palloc.h"
|
||||
|
||||
/* Required for largeobjects */
|
||||
#include "libpq/libpq-fs.h"
|
||||
#include "libpq/be-fsstubs.h"
|
||||
|
@ -1,23 +1,23 @@
|
||||
/* -------------------------------------------------------------------------
|
||||
* pg_dumplo
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.5 2001/01/24 19:42:45 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.6 2001/02/10 02:31:25 tgl Exp $
|
||||
*
|
||||
* Karel Zak 1999-2000
|
||||
* -------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/* We import postgres_fe.h mostly to get the HAVE_GETOPT_LONG configure result. */
|
||||
#ifndef OUT_OF_PG
|
||||
#include "postgres_fe.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* We import postgres.h mostly to get the HAVE_GETOPT_LONG configure result. */
|
||||
#ifndef OUT_OF_PG
|
||||
#include "postgres.h"
|
||||
#endif
|
||||
|
||||
#include <libpq-fe.h>
|
||||
#include <libpq/libpq-fs.h>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.7 2000/11/01 00:45:46 ishii Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.8 2001/02/10 02:31:25 tgl Exp $
|
||||
*
|
||||
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
|
||||
* written by Tatsuo Ishii
|
||||
@ -17,11 +17,8 @@
|
||||
* suitability of this software for any purpose. It is provided "as
|
||||
* is" without express or implied warranty.
|
||||
*/
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "postgres.h"
|
||||
#include "libpq-fe.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
@ -26,11 +26,12 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: encode.c,v 1.2 2001/02/06 18:05:13 momjian Exp $
|
||||
* $Id: encode.c,v 1.3 2001/02/10 02:31:25 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include <fmgr.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "fmgr.h"
|
||||
|
||||
#include "encode.h"
|
||||
|
||||
|
@ -26,10 +26,10 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: internal.c,v 1.1 2000/10/31 13:11:28 petere Exp $
|
||||
* $Id: internal.c,v 1.2 2001/02/10 02:31:25 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pgcrypto.h"
|
||||
|
||||
|
@ -31,15 +31,15 @@
|
||||
* It is possible that this works with other SHA1/MD5
|
||||
* implementations too.
|
||||
*
|
||||
* $Id: krb.c,v 1.1 2000/10/31 13:11:28 petere Exp $
|
||||
* $Id: krb.c,v 1.2 2001/02/10 02:31:25 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pgcrypto.h"
|
||||
|
||||
#include <md5.h>
|
||||
#include <sha.h>
|
||||
#include "md5.h"
|
||||
#include "sha.h"
|
||||
|
||||
#ifndef MD5_DIGEST_LENGTH
|
||||
#define MD5_DIGEST_LENGTH 16
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: md5.c,v 1.3 2001/01/09 16:07:13 momjian Exp $ */
|
||||
/* $Id: md5.c,v 1.4 2001/02/10 02:31:25 tgl Exp $ */
|
||||
/* $KAME: md5.c,v 1.3 2000/02/22 14:01:17 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -30,7 +30,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "md5.h"
|
||||
|
||||
|
@ -26,10 +26,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mhash.c,v 1.1 2000/10/31 13:11:28 petere Exp $
|
||||
* $Id: mhash.c,v 1.2 2001/02/10 02:31:26 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pgcrypto.h"
|
||||
|
||||
#include <mhash.h>
|
||||
|
@ -26,10 +26,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: openssl.c,v 1.1 2000/10/31 13:11:28 petere Exp $
|
||||
* $Id: openssl.c,v 1.2 2001/02/10 02:31:26 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pgcrypto.h"
|
||||
|
||||
#include <evp.h>
|
||||
|
@ -26,11 +26,12 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pgcrypto.c,v 1.5 2001/02/06 18:05:13 momjian Exp $
|
||||
* $Id: pgcrypto.c,v 1.6 2001/02/10 02:31:26 tgl Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include <utils/builtins.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "utils/builtins.h"
|
||||
|
||||
#include "pgcrypto.h"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: sha1.c,v 1.3 2001/01/09 16:07:13 momjian Exp $ */
|
||||
/* $Id: sha1.c,v 1.4 2001/02/10 02:31:26 tgl Exp $ */
|
||||
/* $KAME: sha1.c,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -35,7 +35,7 @@
|
||||
* implemented by Jun-ichiro itojun Itoh <itojun@itojun.org>
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
#include "postgres.h"
|
||||
|
||||
#include "sha1.h"
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* $Header: /cvsroot/pgsql/contrib/soundex/Attic/soundex.c,v 1.9 2000/12/03 20:45:31 tgl Exp $ */
|
||||
/* $Header: /cvsroot/pgsql/contrib/soundex/Attic/soundex.c,v 1.10 2001/02/10 02:31:26 tgl Exp $ */
|
||||
#include "postgres.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "fmgr.h"
|
||||
#include "utils/builtins.h"
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
Datum text_soundex(PG_FUNCTION_ARGS);
|
||||
|
@ -9,12 +9,10 @@
|
||||
* either version 2, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "postgres.h"
|
||||
#include "utils/elog.h"
|
||||
#include "utils/palloc.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "utils/builtins.h"
|
||||
|
||||
#include "string_io.h"
|
||||
|
Reference in New Issue
Block a user