diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-07-13 16:49:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-07-13 16:49:20 +0000 |
commit | a22d76d96adaa98ab20de290a1b710a199805ddc (patch) | |
tree | 0c54c219cae248d98b5fffb1189ac5af559468b7 /src/include/storage | |
parent | 70e2e3d8b1189c2c74007b39137ba475ae9f1cbb (diff) | |
download | postgresql-a22d76d96adaa98ab20de290a1b710a199805ddc.tar.gz |
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.
Diffstat (limited to 'src/include/storage')
-rw-r--r-- | src/include/storage/bufmgr.h | 5 | ||||
-rw-r--r-- | src/include/storage/bufpage.h | 4 | ||||
-rw-r--r-- | src/include/storage/freespace.h | 3 | ||||
-rw-r--r-- | src/include/storage/itempos.h | 4 | ||||
-rw-r--r-- | src/include/storage/pos.h | 3 | ||||
-rw-r--r-- | src/include/storage/proc.h | 3 |
6 files changed, 7 insertions, 15 deletions
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h index f9cced8291..2b83c155ab 100644 --- a/src/include/storage/bufmgr.h +++ b/src/include/storage/bufmgr.h @@ -7,17 +7,14 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.100 2006/03/31 23:32:07 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.101 2006/07/13 16:49:20 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef BUFMGR_H #define BUFMGR_H -#include "access/xlogdefs.h" #include "storage/buf.h" -#include "storage/lock.h" -#include "storage/relfilenode.h" #include "utils/rel.h" typedef void *Block; diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h index 9a60287955..60f1f91c61 100644 --- a/src/include/storage/bufpage.h +++ b/src/include/storage/bufpage.h @@ -7,17 +7,15 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.67 2006/03/05 15:58:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.68 2006/07/13 16:49:20 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef BUFPAGE_H #define BUFPAGE_H -#include "storage/buf.h" #include "storage/bufmgr.h" #include "storage/item.h" -#include "storage/itemid.h" #include "storage/off.h" #include "access/xlog.h" diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h index 636c145462..a6801cbbb4 100644 --- a/src/include/storage/freespace.h +++ b/src/include/storage/freespace.h @@ -7,14 +7,13 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.20 2006/03/05 15:58:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.21 2006/07/13 16:49:20 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef FREESPACE_H_ #define FREESPACE_H_ -#include "storage/block.h" #include "storage/relfilenode.h" #include "storage/itemptr.h" diff --git a/src/include/storage/itempos.h b/src/include/storage/itempos.h index d632f226bb..f17521b516 100644 --- a/src/include/storage/itempos.h +++ b/src/include/storage/itempos.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/itempos.h,v 1.22 2006/03/05 15:58:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/itempos.h,v 1.23 2006/07/13 16:49:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ typedef ItemSubpositionData *ItemSubposition; * struct objpos *OBJP; * unsigned LEN; */ -#define PSKIP(OBJP, LEN)\ +#define PSKIP(OBJP, LEN) \ do { (OBJP)->op_cp += (LEN); (OBJP)->op_len -= (LEN); } while (0) #endif /* ITEMPOS_H */ diff --git a/src/include/storage/pos.h b/src/include/storage/pos.h index 9bc5829a2f..c5a1c1945d 100644 --- a/src/include/storage/pos.h +++ b/src/include/storage/pos.h @@ -7,14 +7,13 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/pos.h,v 1.19 2006/03/05 15:58:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/pos.h,v 1.20 2006/07/13 16:49:20 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef POS_H #define POS_H -#include "storage/off.h" /* * a 'position' used to be <pagenumber, offset> in postgres. this has diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index d7cc4e6732..83816dd05d 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -7,14 +7,13 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.88 2006/04/14 03:38:56 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.89 2006/07/13 16:49:20 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef _PROC_H_ #define _PROC_H_ -#include "access/xlog.h" #include "storage/lock.h" #include "storage/pg_sema.h" |