aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-05-17 03:34:18 +0000
committerNeil Conway <neilc@samurai.com>2005-05-17 03:34:18 +0000
commitc891e05f2600206122e200e1cb3d4c360357f980 (patch)
tree1eaa26147296683a8113afc6fb5e7fefc898b3d4 /src/backend/access/gist/gist.c
parenteda6dd32d15fe85bfddf6caf32d1a861c4fa5957 (diff)
downloadpostgresql-c891e05f2600206122e200e1cb3d4c360357f980.tar.gz
postgresql-c891e05f2600206122e200e1cb3d4c360357f980.zip
Cleanup GiST header files. Since GiST extensions are often written as
external projects, we should be careful about what parts of the GiST API are considered implementation details, and which are part of the public API. Therefore, I've moved internal-only declarations into gist_private.h -- future backward-incompatible changes to gist.h should be made with care, to avoid needlessly breaking external GiST extensions. Also did some related header cleanup: remove some unnecessary #includes from gist.h, and remove some unused definitions: isAttByVal(), _gistdump(), and GISTNStrategies.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 66d4347fbbc..fd160670ce8 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -8,14 +8,14 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.116 2005/05/17 00:59:30 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.117 2005/05/17 03:34:18 neilc Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "access/genam.h"
-#include "access/gist.h"
+#include "access/gist_private.h"
#include "access/gistscan.h"
#include "access/heapam.h"
#include "catalog/index.h"
@@ -26,10 +26,10 @@
#undef GIST_PAGEADDITEM
-#define ATTSIZE(datum, TupDesc, i, isnull) \
+#define ATTSIZE(datum, tupdesc, i, isnull) \
( \
(isnull) ? 0 : \
- att_addlength(0, (TupDesc)->attrs[(i)-1]->attlen, (datum)) \
+ att_addlength(0, (tupdesc)->attrs[(i)-1]->attlen, (datum)) \
)
/* result's status */