@@ -1190,9 +1190,6 @@ gistcentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr, Relation r,
11901190
11911191#ifdef GISTDEBUG
11921192
1193- extern char * text_range_out ();
1194- extern char * int_range_out ();
1195-
11961193/*
11971194** sloppy debugging support routine, requires recompilation with appropriate
11981195** "out" method for the index keys. Could be fixed to find that info
@@ -1236,7 +1233,7 @@ _gistdump(Relation r)
12361233datum = ((char * )itup );
12371234datum += sizeof (IndexTupleData );
12381235/* get out function for type of key, and out it! */
1239- itkey = (char * )int_range_out (datum );
1236+ itkey = (char * )int_range_out (( INTRANGE * ) datum );
12401237/* itkey = " unable to print"; */
12411238printf ("\t[%d] size %d heap <%d,%d> key:%s\n" ,
12421239offnum ,IndexTupleSize (itup ),itblkno ,itoffno ,itkey );
@@ -1247,26 +1244,6 @@ _gistdump(Relation r)
12471244 }
12481245}
12491246
1250- #define TRLOWER (tr ) (((tr)->bytes))
1251- #define TRUPPER (tr ) (&((tr)->bytes[MAXALIGN(VARSIZE(TRLOWER(tr)))]))
1252- typedef struct txtrange {
1253- /* flag: NINF means that lower is negative infinity; PINF means that
1254- ** upper is positive infinity. 0 means that both are numbers.
1255- */
1256- int32 vl_len ;
1257- int32 flag ;
1258- char bytes [2 ];
1259- }TXTRANGE ;
1260-
1261- typedef struct intrange {
1262- int lower ;
1263- int upper ;
1264- /* flag: NINF means that lower is negative infinity; PINF means that
1265- ** upper is positive infinity. 0 means that both are numbers.
1266- */
1267- int flag ;
1268- }INTRANGE ;
1269-
12701247char * text_range_out (TXTRANGE * r )
12711248{
12721249char * result ;