diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-05-12 00:00:54 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-05-12 00:00:54 +0000 |
commit | f8c4d7db6033802ab682f95d5548a9ea6c33cec6 (patch) | |
tree | f9d33a506196ac07d6b84e734b0918b6ada2d6d3 /contrib/intarray | |
parent | a86a9bf9fe1266c6025024c3f6b7479e27f8da83 (diff) | |
download | postgresql-f8c4d7db6033802ab682f95d5548a9ea6c33cec6.tar.gz |
Restructure some header files a bit, in particular heapam.h, by removing some
unnecessary #include lines in it. Also, move some tuple routine prototypes and
macros to htup.h, which allows removal of heapam.h inclusion from some .c
files.
For this to work, a new header file access/sysattr.h needed to be created,
initially containing attribute numbers of system columns, for pg_dump usage.
While at it, make contrib ltree, intarray and hstore header files more
consistent with our header style.
Diffstat (limited to 'contrib/intarray')
-rw-r--r-- | contrib/intarray/_int.h | 13 | ||||
-rw-r--r-- | contrib/intarray/_int_bool.c | 4 | ||||
-rw-r--r-- | contrib/intarray/_int_gin.c | 5 | ||||
-rw-r--r-- | contrib/intarray/_int_gist.c | 5 | ||||
-rw-r--r-- | contrib/intarray/_int_op.c | 5 | ||||
-rw-r--r-- | contrib/intarray/_int_tool.c | 4 | ||||
-rw-r--r-- | contrib/intarray/_intbig_gist.c | 5 |
7 files changed, 28 insertions, 13 deletions
diff --git a/contrib/intarray/_int.h b/contrib/intarray/_int.h index 0a1888da3b..6a9bccb525 100644 --- a/contrib/intarray/_int.h +++ b/contrib/intarray/_int.h @@ -1,18 +1,7 @@ #ifndef ___INT_H__ #define ___INT_H__ -#include "postgres.h" - -#include <float.h> - -#include "access/gist.h" -#include "access/itup.h" -#include "access/skey.h" -#include "catalog/pg_type.h" #include "utils/array.h" -#include "utils/builtins.h" -#include "storage/bufpage.h" -#include "lib/stringinfo.h" /* number ranges for compression */ #define MAXNUMRANGE 100 @@ -173,4 +162,4 @@ if (ARRNELEMS(a) > 1) \ qsort((void*)ARRPTR(a), ARRNELEMS(a),sizeof(int4), \ (direction) ? compASC : compDESC ) -#endif +#endif /* ___INT_H__ */ diff --git a/contrib/intarray/_int_bool.c b/contrib/intarray/_int_bool.c index ef9430901d..a9fc66c1ff 100644 --- a/contrib/intarray/_int_bool.c +++ b/contrib/intarray/_int_bool.c @@ -1,3 +1,7 @@ +#include "postgres.h" + +#include "utils/builtins.h" + #include "_int.h" PG_FUNCTION_INFO_V1(bqarr_in); diff --git a/contrib/intarray/_int_gin.c b/contrib/intarray/_int_gin.c index 8b6e99edae..d895990318 100644 --- a/contrib/intarray/_int_gin.c +++ b/contrib/intarray/_int_gin.c @@ -1,3 +1,8 @@ +#include "postgres.h" + +#include "access/gist.h" +#include "access/skey.h" + #include "_int.h" PG_FUNCTION_INFO_V1(ginint4_queryextract); diff --git a/contrib/intarray/_int_gist.c b/contrib/intarray/_int_gist.c index 37c05784b9..8f8f79a824 100644 --- a/contrib/intarray/_int_gist.c +++ b/contrib/intarray/_int_gist.c @@ -1,3 +1,8 @@ +#include "postgres.h" + +#include "access/gist.h" +#include "access/skey.h" + #include "_int.h" #define GETENTRY(vec,pos) ((ArrayType *) DatumGetPointer((vec)->vector[(pos)].key)) diff --git a/contrib/intarray/_int_op.c b/contrib/intarray/_int_op.c index 40650b6af8..dd3b028929 100644 --- a/contrib/intarray/_int_op.c +++ b/contrib/intarray/_int_op.c @@ -1,7 +1,10 @@ -#include "_int.h" +#include "postgres.h" #include "lib/stringinfo.h" +#include "_int.h" + + PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(_int_different); diff --git a/contrib/intarray/_int_tool.c b/contrib/intarray/_int_tool.c index fead4ff30d..82ab490784 100644 --- a/contrib/intarray/_int_tool.c +++ b/contrib/intarray/_int_tool.c @@ -1,3 +1,7 @@ +#include "postgres.h" + +#include "catalog/pg_type.h" + #include "_int.h" diff --git a/contrib/intarray/_intbig_gist.c b/contrib/intarray/_intbig_gist.c index b96c6d7289..fe83860cfa 100644 --- a/contrib/intarray/_intbig_gist.c +++ b/contrib/intarray/_intbig_gist.c @@ -1,3 +1,8 @@ +#include "postgres.h" + +#include "access/gist.h" +#include "access/skey.h" + #include "_int.h" #define GETENTRY(vec,pos) ((GISTTYPE *) DatumGetPointer((vec)->vector[(pos)].key)) |