Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a22d76d

Browse files
committed
Allow include files to compile own their own.
Strip unused include files out unused include files, and add needed includes to C files. The next step is to remove unused include files in C files.
1 parent 70e2e3d commit a22d76d

File tree

124 files changed

+259
-190
lines changed

Some content is hidden

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

124 files changed

+259
-190
lines changed

src/backend/access/heap/heapam.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.215 2006/07/03 22:45:37 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.216 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -41,8 +41,10 @@
4141
#include "access/heapam.h"
4242
#include "access/hio.h"
4343
#include "access/multixact.h"
44+
#include "access/transam.h"
4445
#include "access/tuptoaster.h"
4546
#include "access/valid.h"
47+
#include "access/xact.h"
4648
#include "access/xlogutils.h"
4749
#include "catalog/catalog.h"
4850
#include "catalog/namespace.h"

src/backend/access/nbtree/nbtinsert.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.140 2006/07/11 21:05:57 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.141 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -17,6 +17,7 @@
1717

1818
#include "access/heapam.h"
1919
#include "access/nbtree.h"
20+
#include "access/transam.h"
2021
#include "miscadmin.h"
2122
#include "utils/inval.h"
2223

src/backend/access/nbtree/nbtpage.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtpage.c,v 1.97 2006/05/08 00:00:10 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtpage.c,v 1.98 2006/07/13 16:49:12 momjian Exp $
1313
*
1414
* NOTES
1515
* Postgres btree pages look like ordinary relation pages. The opaque
@@ -23,6 +23,7 @@
2323
#include "postgres.h"
2424

2525
#include "access/nbtree.h"
26+
#include "access/transam.h"
2627
#include "miscadmin.h"
2728
#include "storage/freespace.h"
2829
#include "storage/lmgr.h"

src/backend/access/nbtree/nbtutils.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtutils.c,v 1.76 2006/07/03 22:45:37 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtutils.c,v 1.77 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -22,6 +22,8 @@
2222
#include "access/reloptions.h"
2323
#include "executor/execdebug.h"
2424
#include "miscadmin.h"
25+
#include "storage/lwlock.h"
26+
#include "storage/shmem.h"
2527

2628

2729
static void _bt_mark_scankey_required(ScanKey skey);

src/backend/access/nbtree/nbtxlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.33 2006/05/08 00:00:10 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.34 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include "postgres.h"
1616

1717
#include "access/nbtree.h"
18+
#include "access/transam.h"
1819
#include "access/xlogutils.h"
1920

20-
2121
/*
2222
* We must keep track of expected insertions due to page splits, and apply
2323
* them manually if they are not seen in the WAL log during replay. This

src/backend/access/transam/clog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
2525
* Portions Copyright (c) 1994, Regents of the University of California
2626
*
27-
* $PostgreSQL: pgsql/src/backend/access/transam/clog.c,v 1.38 2006/03/24 04:32:12 tgl Exp $
27+
* $PostgreSQL: pgsql/src/backend/access/transam/clog.c,v 1.39 2006/07/13 16:49:12 momjian Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
3131
#include "postgres.h"
3232

3333
#include "access/clog.h"
3434
#include "access/slru.h"
35+
#include "access/transam.h"
3536
#include "postmaster/bgwriter.h"
3637

37-
3838
/*
3939
* Defines for CLOG page sizes. A page is the same BLCKSZ as is used
4040
* everywhere else in Postgres.

src/backend/access/transam/multixact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
4343
* Portions Copyright (c) 1994, Regents of the University of California
4444
*
45-
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.18 2006/07/11 17:04:13 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.19 2006/07/13 16:49:13 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
4949
#include "postgres.h"
5050

5151
#include "access/multixact.h"
5252
#include "access/slru.h"
53+
#include "access/transam.h"
5354
#include "access/xact.h"
5455
#include "miscadmin.h"
5556
#include "storage/backendid.h"

src/backend/access/transam/slru.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
*
44-
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.36 2006/03/05 15:58:21 momjian Exp $
44+
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.37 2006/07/13 16:49:13 momjian Exp $
4545
*
4646
*-------------------------------------------------------------------------
4747
*/
@@ -51,7 +51,9 @@
5151
#include <sys/stat.h>
5252
#include <unistd.h>
5353

54+
#include "access/htup.h"
5455
#include "access/slru.h"
56+
#include "access/transam.h"
5557
#include "access/xlog.h"
5658
#include "storage/fd.h"
5759
#include "storage/shmem.h"

src/backend/access/transam/subtrans.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@
2222
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
2323
* Portions Copyright (c) 1994, Regents of the University of California
2424
*
25-
* $PostgreSQL: pgsql/src/backend/access/transam/subtrans.c,v 1.16 2006/03/05 15:58:22 momjian Exp $
25+
* $PostgreSQL: pgsql/src/backend/access/transam/subtrans.c,v 1.17 2006/07/13 16:49:13 momjian Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
2929
#include "postgres.h"
3030

3131
#include "access/slru.h"
3232
#include "access/subtrans.h"
33+
#include "access/transam.h"
3334
#include "utils/tqual.h"
3435

3536

src/backend/access/transam/twophase.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.19 2006/03/05 15:58:22 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.20 2006/07/13 16:49:13 momjian Exp $
1111
*
1212
* NOTES
1313
* Each global transaction is associated with a global transaction
@@ -44,6 +44,7 @@
4444

4545
#include "access/heapam.h"
4646
#include "access/subtrans.h"
47+
#include "access/transam.h"
4748
#include "access/twophase.h"
4849
#include "access/twophase_rmgr.h"
4950
#include "access/xact.h"

0 commit comments

Comments
 (0)