Allow more include files to be compiled in their own by adding missing

include dependencies.

Modify pgcompinclude to skip a common fcinfo error.
pull/1/head
Bruce Momjian 14 years ago
parent d010391ac8
commit 4bd7333b14
  1. 2
      contrib/cube/cubedata.h
  2. 1
      src/backend/replication/repl_gram.y
  3. 1
      src/include/access/gin_private.h
  4. 1
      src/include/access/hash.h
  5. 1
      src/include/access/htup.h
  6. 2
      src/include/access/nbtree.h
  7. 2
      src/include/access/xlog.h
  8. 3
      src/tools/pginclude/pgcompinclude

@ -1,5 +1,7 @@
/* contrib/cube/cubedata.h */
#include "fmgr.h"
#define CUBE_MAX_DIM (100)
typedef struct NDBOX

@ -15,6 +15,7 @@
#include "postgres.h"
#include "access/xlogdefs.h"
#include "nodes/makefuncs.h"
#include "nodes/replnodes.h"
#include "replication/walsender.h"

@ -14,6 +14,7 @@
#include "access/gin.h"
#include "access/itup.h"
#include "fmgr.h"
#include "storage/bufmgr.h"
#include "utils/rbtree.h"

@ -22,6 +22,7 @@
#include "access/sdir.h"
#include "access/xlog.h"
#include "fmgr.h"
#include "storage/bufmgr.h"
#include "storage/lock.h"
#include "utils/relcache.h"

@ -16,6 +16,7 @@
#include "access/tupdesc.h"
#include "access/tupmacs.h"
#include "storage/bufpage.h"
#include "storage/itemptr.h"
#include "storage/relfilenode.h"

@ -19,7 +19,7 @@
#include "access/sdir.h"
#include "access/xlog.h"
#include "access/xlogutils.h"
#include "catalog/pg_index.h"
/* There's room for a 16-bit vacuum cycle ID in BTPageOpaqueData */
typedef uint16 BTCycleId;

@ -14,11 +14,11 @@
#include "access/rmgr.h"
#include "access/xlogdefs.h"
#include "lib/stringinfo.h"
#include "replication/walsender.h"
#include "storage/buf.h"
#include "utils/pg_crc.h"
#include "utils/timestamp.h"
/*
* The overall layout of an XLOG record is:
* Fixed-size header (XLogRecord struct)

@ -14,6 +14,9 @@ do
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
echo "#include \"postgres.h\"" >/tmp/$$.c
echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
# supress fcinfo errors
echo "#undef PG_GETARG_DATUM" >>/tmp/$$.c
echo "#define PG_GETARG_DATUM(n)" >>/tmp/$$.c
echo "void include_test(void);" >>/tmp/$$.c
echo "void include_test() {" >>/tmp/$$.c
pgdefine "$FILE" >>/tmp/$$.c

Loading…
Cancel
Save