diff options
| author | Tom Lane | 2001-02-10 02:31:31 +0000 |
|---|---|---|
| committer | Tom Lane | 2001-02-10 02:31:31 +0000 |
| commit | d08741eab55f44214d08f33177523ec4821de532 (patch) | |
| tree | 192af3b22d30b8be1ec3256ebf4806e601234612 /src/interfaces/libpq | |
| parent | cf21985ab59e0075704b0322f7ba84033bf7e16e (diff) | |
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.
Diffstat (limited to 'src/interfaces/libpq')
| -rw-r--r-- | src/interfaces/libpq/fe-auth.c | 7 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-connect.c | 5 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-exec.c | 5 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-lobj.c | 4 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-misc.c | 5 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-print.c | 4 | ||||
| -rw-r--r-- | src/interfaces/libpq/libpq-int.h | 3 | ||||
| -rw-r--r-- | src/interfaces/libpq/pqexpbuffer.c | 7 | ||||
| -rw-r--r-- | src/interfaces/libpq/pqsignal.h | 4 |
9 files changed, 21 insertions, 23 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 64398273605..dce3b5c90b9 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -10,7 +10,7 @@ * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.45 2001/01/24 19:43:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.46 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -28,9 +28,8 @@ * */ -#ifndef WIN32 -#include "postgres.h" -#endif +#include "postgres_fe.h" + #include "libpq-fe.h" #include "libpq-int.h" #include "fe-auth.h" diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 3d7733b2fa5..4486e3cf72a 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,12 +8,12 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.159 2001/01/24 19:43:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.160 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ -#include "postgres.h" +#include "postgres_fe.h" #include <sys/types.h> #include <fcntl.h> @@ -45,7 +45,6 @@ #endif #ifdef MULTIBYTE -#include "miscadmin.h" #include "mb/pg_wchar.h" #endif diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index 6e03222a0d6..e7838315eca 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -8,15 +8,16 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.100 2001/02/06 02:02:27 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.101 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ +#include "postgres_fe.h" + #include <errno.h> #include <ctype.h> #include <fcntl.h> -#include "postgres.h" #include "libpq-fe.h" #include "libpq-int.h" diff --git a/src/interfaces/libpq/fe-lobj.c b/src/interfaces/libpq/fe-lobj.c index e8d07946935..9231c052432 100644 --- a/src/interfaces/libpq/fe-lobj.c +++ b/src/interfaces/libpq/fe-lobj.c @@ -8,15 +8,15 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.32 2001/01/24 19:43:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.33 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ +#include "postgres_fe.h" #include <fcntl.h> #include <sys/stat.h> -#include "postgres.h" #include "libpq-fe.h" #include "libpq-int.h" diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c index cf386789603..910f705f6e3 100644 --- a/src/interfaces/libpq/fe-misc.c +++ b/src/interfaces/libpq/fe-misc.c @@ -25,12 +25,12 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.43 2001/01/24 19:43:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.44 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ -#include "postgres.h" +#include "postgres_fe.h" #ifdef WIN32 #include "win32.h" @@ -52,7 +52,6 @@ #include "pqsignal.h" #ifdef MULTIBYTE -#include "miscadmin.h" #include "mb/pg_wchar.h" #endif diff --git a/src/interfaces/libpq/fe-print.c b/src/interfaces/libpq/fe-print.c index 574ca060227..bd5e4e29a12 100644 --- a/src/interfaces/libpq/fe-print.c +++ b/src/interfaces/libpq/fe-print.c @@ -10,11 +10,11 @@ * didn't really belong there. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.40 2001/01/24 19:43:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.41 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ -#include "postgres.h" +#include "postgres_fe.h" #include <signal.h> diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 023f0d6fd0b..09ffcb137ad 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-int.h,v 1.31 2001/01/24 19:43:31 momjian Exp $ + * $Id: libpq-int.h,v 1.32 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -21,6 +21,7 @@ #define LIBPQ_INT_H /* We assume libpq-fe.h has already been included. */ +#include "postgres_fe.h" /* include stuff common to fe and be */ #include "libpq/pqcomm.h" diff --git a/src/interfaces/libpq/pqexpbuffer.c b/src/interfaces/libpq/pqexpbuffer.c index b510eab2be0..eac5f41ddc6 100644 --- a/src/interfaces/libpq/pqexpbuffer.c +++ b/src/interfaces/libpq/pqexpbuffer.c @@ -17,17 +17,16 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqexpbuffer.c,v 1.8 2001/01/24 19:43:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqexpbuffer.c,v 1.9 2001/02/10 02:31:30 tgl Exp $ * *------------------------------------------------------------------------- */ -#include "postgres.h" +#include "postgres_fe.h" + #include "pqexpbuffer.h" #ifdef WIN32 -#include <stdarg.h> -#include <stdio.h> #include "win32.h" #endif diff --git a/src/interfaces/libpq/pqsignal.h b/src/interfaces/libpq/pqsignal.h index 58f343ec8a2..3444bfb70e5 100644 --- a/src/interfaces/libpq/pqsignal.h +++ b/src/interfaces/libpq/pqsignal.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqsignal.h,v 1.9 2001/01/24 19:43:31 momjian Exp $ + * $Id: pqsignal.h,v 1.10 2001/02/10 02:31:30 tgl Exp $ * * NOTES * This shouldn't be in libpq, but the monitor and some other @@ -18,7 +18,7 @@ #ifndef PQSIGNAL_H #define PQSIGNAL_H -#include "postgres.h" +#include "postgres_fe.h" typedef void (*pqsigfunc) (int); |
