Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit402b47c

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 parent9e1d532 commit402b47c

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/1506: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-
#defineLINEDEBUG
772771
LINE*
773772
line_in(char*str)
774773
{
775774
LINE*line;
776775

777-
#ifLINEDEBUG
776+
#ifdefENABLE_LINE_TYPE
778777
LSEGlseg;
779778
intisopen;
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-
#ifLINEDEBUG
785+
#ifdefENABLE_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-
LSEGlseg;
804+
#ifdefENABLE_LINE_TYPE
805+
LSEGlseg;
806+
#endif
806807

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp