Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 402b47c

Browse files
author
Thomas G. Lockhart
committed
Disable not-ready-to-use support code for the line data type.
Bracket things with #ifdef ENABLE_LINE_TYPE. The line data type has always been used internally to support other types, but I/O routines have never been defined for it.
1 parent 9e1d532 commit 402b47c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/backend/utils/adt/geo_ops.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.34 1998/08/15 06:45:10 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.35 1998/08/16 04:06:55 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -768,13 +768,12 @@ box_diagonal(BOX *box)
768768
**
769769
***********************************************************************/
770770

771-
#define LINEDEBUG
772771
LINE *
773772
line_in(char *str)
774773
{
775774
LINE *line;
776775

777-
#if LINEDEBUG
776+
#ifdef ENABLE_LINE_TYPE
778777
LSEG lseg;
779778
int isopen;
780779
char *s;
@@ -783,7 +782,7 @@ line_in(char *str)
783782
if (!PointerIsValid(str))
784783
elog(ERROR, " Bad (null) line external representation", NULL);
785784

786-
#if LINEDEBUG
785+
#ifdef ENABLE_LINE_TYPE
787786
if ((!path_decode(TRUE, 2, str, &isopen, &s, &(lseg.p[0])))
788787
|| (*s != '\0'))
789788
elog(ERROR, "Bad line external representation '%s'", str);
@@ -802,12 +801,14 @@ char *
802801
line_out(LINE *line)
803802
{
804803
char *result;
805-
LSEG lseg;
804+
#ifdef ENABLE_LINE_TYPE
805+
LSEG lseg;
806+
#endif
806807

807808
if (!PointerIsValid(line))
808809
return (NULL);
809810

810-
#if LINEDEBUG
811+
#ifdef ENABLE_LINE_TYPE
811812
if (FPzero(line->B))
812813
{ /* vertical */
813814
/* use "x = C" */

0 commit comments

Comments
 (0)