[GRASS-SVN] r57876 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 30 08:21:54 PDT 2013


Author: neteler
Date: 2013-09-30 08:21:53 -0700 (Mon, 30 Sep 2013)
New Revision: 57876

Modified:
   grass/branches/develbranch_6/lib/gis/plot.c
Log:
libgis: fix for AIX (backport from trunk, r55563

Modified: grass/branches/develbranch_6/lib/gis/plot.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/plot.c	2013-09-30 15:19:51 UTC (rev 57875)
+++ grass/branches/develbranch_6/lib/gis/plot.c	2013-09-30 15:21:53 UTC (rev 57876)
@@ -24,7 +24,7 @@
 static int fastline(double, double, double, double);
 static int slowline(double, double, double, double);
 static int plot_line(double, double, double, double, int (*)());
-static double nearest(double, double);
+static double wrap_east(double, double);
 static int edge(double, double, double, double);
 static int edge_point(double, int);
 
@@ -386,7 +386,7 @@
 #define NO_MEMORY 1
 #define OUT_OF_SYNC -1
 
-static double nearest(double e0, double e1)
+static double wrap_east(double e0, double e1)
 {
     while (e0 - e1 > 180)
 	e1 += 360.0;
@@ -444,7 +444,7 @@
 	    return NO_MEMORY;
 
 	for (i = 0; i < n; i++) {
-	    e1 = nearest(e0, x[i]);
+	    e1 = wrap_east(e0, x[i]);
 	    if (e1 > E)
 		E = e1;
 	    if (e1 < W)
@@ -584,7 +584,7 @@
 		return NO_MEMORY;
 
 	    for (i = 0; i < n; i++) {
-		e1 = nearest(e0, x[i]);
+		e1 = wrap_east(e0, x[i]);
 		if (e1 > E)
 		    E = e1;
 		if (e1 < W)



More information about the grass-commit mailing list