Skip to content

Commit c503564

Browse files
author
Thomas G. Lockhart
committed
Use better routines from geometry library.
1 parent 840ea24 commit c503564

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/regress/regress.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.6 1997/04/22 17:33:00 scrappy Exp $
2+
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.7 1997/07/29 16:21:12 thomas Exp $
33
*/
44

55
#include <float.h> /* faked on sunos */
@@ -128,7 +128,9 @@ interpt_pp(p1,p2)
128128
Point *retval;
129129
int i,j;
130130
LSEG seg1, seg2;
131+
#if FALSE
131132
LINE *ln;
133+
#endif
132134
bool found; /* We've found the intersection */
133135

134136
found = false; /* Haven't found it yet */
@@ -141,8 +143,11 @@ interpt_pp(p1,p2)
141143
if (lseg_intersect(&seg1, &seg2)) found = true;
142144
}
143145

146+
#if FALSE
144147
ln = line_construct_pp(&seg2.p[0], &seg2.p[1]);
145148
retval = interpt_sl(&seg1, ln);
149+
#endif
150+
retval = lseg_interpt( &seg1, &seg2);
146151

147152
return(retval);
148153
}

0 commit comments

Comments
 (0)