From aaeef4d17db9ded501fa02c9ca6c00f86258b171 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 10 Nov 1996 03:06:38 +0000 Subject: All external function definitions now have prototypes that are checked. --- src/backend/access/gist/gist.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/backend/access/gist/gist.c') 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; -- cgit v1.2.1