@@ -1190,9 +1190,6 @@ gistcentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr, Relation r,
1190
1190
1191
1191
#ifdef GISTDEBUG
1192
1192
1193
- extern char * text_range_out ();
1194
- extern char * int_range_out ();
1195
-
1196
1193
/*
1197
1194
** sloppy debugging support routine, requires recompilation with appropriate
1198
1195
** "out" method for the index keys. Could be fixed to find that info
@@ -1236,7 +1233,7 @@ _gistdump(Relation r)
1236
1233
datum = ((char * ) itup );
1237
1234
datum += sizeof (IndexTupleData );
1238
1235
/* 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 );
1240
1237
/* itkey = " unable to print"; */
1241
1238
printf ("\t[%d] size %d heap <%d,%d> key:%s\n" ,
1242
1239
offnum , IndexTupleSize (itup ), itblkno , itoffno , itkey );
@@ -1247,26 +1244,6 @@ _gistdump(Relation r)
1247
1244
}
1248
1245
}
1249
1246
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
-
1270
1247
char * text_range_out (TXTRANGE * r )
1271
1248
{
1272
1249
char * result ;
0 commit comments