diff options
author | Bruce Momjian <bruce@momjian.us> | 1996-11-10 03:06:38 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1996-11-10 03:06:38 +0000 |
commit | aaeef4d17db9ded501fa02c9ca6c00f86258b171 (patch) | |
tree | 7f27c0c7519886eda3b9ddd6fe1eb4a9d628dacb /src/backend/access/gist/gist.c | |
parent | bf5cbbf7895aa16b2e18dbe29462a4fd8baf4293 (diff) | |
download | postgresql-aaeef4d17db9ded501fa02c9ca6c00f86258b171.tar.gz |
All external function definitions now have prototypes that are checked.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r-- | src/backend/access/gist/gist.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index fa29a96177..7fbf0ef07d 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -1190,9 +1190,6 @@ gistcentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr, Relation r, #ifdef GISTDEBUG -extern char *text_range_out(); -extern char *int_range_out(); - /* ** sloppy debugging support routine, requires recompilation with appropriate ** "out" method for the index keys. Could be fixed to find that info @@ -1236,7 +1233,7 @@ _gistdump(Relation r) datum = ((char *) itup); datum += sizeof(IndexTupleData); /* get out function for type of key, and out it! */ - itkey = (char *) int_range_out(datum); + itkey = (char *) int_range_out((INTRANGE *)datum); /* itkey = " unable to print"; */ printf("\t[%d] size %d heap <%d,%d> key:%s\n", offnum, IndexTupleSize(itup), itblkno, itoffno, itkey); @@ -1247,26 +1244,6 @@ _gistdump(Relation r) } } -#define TRLOWER(tr) (((tr)->bytes)) -#define TRUPPER(tr) (&((tr)->bytes[MAXALIGN(VARSIZE(TRLOWER(tr)))])) -typedef struct txtrange { - /* flag: NINF means that lower is negative infinity; PINF means that - ** upper is positive infinity. 0 means that both are numbers. - */ - int32 vl_len; - int32 flag; - char bytes[2]; -} TXTRANGE; - -typedef struct intrange { - int lower; - int upper; - /* flag: NINF means that lower is negative infinity; PINF means that - ** upper is positive infinity. 0 means that both are numbers. - */ - int flag; -} INTRANGE; - char *text_range_out(TXTRANGE *r) { char *result; |