Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd08741e

Browse files
committed
Restructure the key include files per recent pghackers discussion: there
are now separate files "postgres.h" and "postgres_fe.h", which are meantto be the primary include files for backend .c files and frontend .c filesrespectively. By default, only include files meant for frontend use areinstalled into the installation include directory. There is a new maketarget 'make install-all-headers' that adds the whole content of thesrc/include tree to the installed fileset, for use by people who want todevelop server-side code without keeping the complete source tree on hand.Cleaned up a whole lot of crufty and inconsistent header inclusions.
1 parentcf21985 commitd08741e

File tree

144 files changed

+1053
-1244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+1053
-1244
lines changed

‎GNUmakefile.in‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# PostgreSQL top level makefile
33
#
4-
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.16 2001/01/06 21:24:01 petere Exp $
4+
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.17 2001/02/10 02:31:25 tgl Exp $
55
#
66

77
subdir =
@@ -22,6 +22,9 @@ installdirs uninstall distprep:
2222
$(MAKE) -C doc $@
2323
$(MAKE) -C src $@
2424

25+
install-all-headers:
26+
$(MAKE) -C src $@
27+
2528
# clean, distclean, etc should apply to contrib too, even though
2629
# it's not built by default
2730
clean:

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# GNUmakefile won't exist yet, so we catch that case as well.
1212

1313

14-
allcheckinstallinstalldirsinstallcheckuninstalldepdependcleandistcleanmaintainer-clean:
14+
allcheckinstallinstalldirsinstall-all-headersinstallcheckuninstalldepdependcleandistcleanmaintainer-clean:
1515
@if [!-f GNUmakefile ];then\
1616
echo"You need to run the 'configure' program first. See the file";\
1717
echo"'INSTALL' for installation instructions.";\

‎contrib/cube/cubedata.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*#include "postgres.h"*/
2-
31
typedefstructNDBOX {
42
unsignedintsize;/* required to be a Postgres varlena type */
53
unsignedintdim;

‎contrib/earthdistance/earthdistance.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
#include"postgres.h"
2+
13
#include<math.h>
2-
#include<stdio.h>
3-
#include<string.h>
44

5-
#include<postgres.h>
6-
#include<utils/geo_decls.h>/* for Pt */
7-
#include<utils/palloc.h>/* for palloc */
5+
#include"utils/geo_decls.h"/* for Pt */
6+
87

98
/* Earth's radius is in statute miles. */
109
constintEARTH_RADIUS=3958.747716;

‎contrib/fulltextindex/fti.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include"postgres.h"
2+
3+
#include<ctype.h>
4+
25
#include"executor/spi.h"
36
#include"commands/trigger.h"
4-
#include<ctype.h>
5-
#include<stdio.h>/* debugging */
67

78
/*
89
* Trigger function takes 2 arguments:

‎contrib/intarray/_int.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
format for these routines is dictated by Postgres architecture.
55
******************************************************************************/
66

7-
#include<stdio.h>
7+
#include"postgres.h"
8+
89
#include<float.h>
910
#include<string.h>
1011

11-
#include"postgres.h"
1212
#include"access/gist.h"
1313
#include"access/itup.h"
1414
#include"access/rtree.h"

‎contrib/isbn_issn/isbn_issn.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
/*
22
*PostgreSQL type definitions for ISBNs.
33
*
4-
*$Id: isbn_issn.c,v 1.2 2000/06/19 13:53:39 momjian Exp $
4+
*$Id: isbn_issn.c,v 1.3 2001/02/10 02:31:25 tgl Exp $
55
*/
66

7-
#include<stdio.h>
7+
#include"postgres.h"
88

9-
#include<postgres.h>
10-
#include<utils/palloc.h>
119

1210
/*
1311
*This is the internal storage format for ISBNs.

‎contrib/lo/lo.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
/*
22
*PostgreSQL type definitions for managed LargeObjects.
33
*
4-
*$Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.6 2000/11/21 21:51:58 tgl Exp $
4+
*$Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.7 2001/02/10 02:31:25 tgl Exp $
55
*
66
*/
77

88
#include"postgres.h"
99

10-
#include<stdio.h>
11-
12-
#include"utils/palloc.h"
13-
1410
/* Required for largeobjects */
1511
#include"libpq/libpq-fs.h"
1612
#include"libpq/be-fsstubs.h"

‎contrib/pg_dumplo/main.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/* -------------------------------------------------------------------------
22
* pg_dumplo
33
*
4-
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.5 2001/01/24 19:42:45 momjian Exp $
4+
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.6 2001/02/10 02:31:25 tgl Exp $
55
*
66
*Karel Zak 1999-2000
77
* -------------------------------------------------------------------------
88
*/
99

10+
/* We import postgres_fe.h mostly to get the HAVE_GETOPT_LONG configure result. */
11+
#ifndefOUT_OF_PG
12+
#include"postgres_fe.h"
13+
#endif
14+
1015
#include<stdio.h>
1116
#include<unistd.h>
1217
#include<stdlib.h>
1318
#include<string.h>
1419
#include<errno.h>
1520

16-
/* We import postgres.h mostly to get the HAVE_GETOPT_LONG configure result. */
17-
#ifndefOUT_OF_PG
18-
#include"postgres.h"
19-
#endif
20-
2121
#include<libpq-fe.h>
2222
#include<libpq/libpq-fs.h>
2323

‎contrib/pgbench/pgbench.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.7 2000/11/01 00:45:46 ishii Exp $
2+
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.8 2001/02/10 02:31:25 tgl Exp $
33
*
44
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -17,11 +17,8 @@
1717
* suitability of this software for any purpose. It is provided "as
1818
* is" without express or implied warranty.
1919
*/
20+
#include"postgres_fe.h"
2021

21-
#include"config.h"
22-
23-
#include<stdio.h>
24-
#include"postgres.h"
2522
#include"libpq-fe.h"
2623

2724
#include<errno.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp