[GRASS-SVN] r57883 - grass/branches/develbranch_6/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 30 12:00:32 PDT 2013


Author: neteler
Date: 2013-09-30 12:00:32 -0700 (Mon, 30 Sep 2013)
New Revision: 57883

Modified:
   grass/branches/develbranch_6/ps/ps.map/vect.c
Log:
ps.map: avoid namespace pollution on AIX (backport from trunk); comments sync

Modified: grass/branches/develbranch_6/ps/ps.map/vect.c
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/vect.c	2013-09-30 18:50:33 UTC (rev 57882)
+++ grass/branches/develbranch_6/ps/ps.map/vect.c	2013-09-30 19:00:32 UTC (rev 57883)
@@ -1,9 +1,9 @@
 /* Functions: adjust_line 
- **
- ** Author: Radim Blazek Feb 2000
- ** 
- **
+ *
+ * Author: Radim Blazek Feb 2000
+ *
  */
+
 #include <stdlib.h>
 #include <math.h>
 #include <grass/Vect.h>
@@ -13,7 +13,7 @@
 #define LENGTH(DX, DY)  (  sqrt( (DX*DX)+(DY*DY) )  )
 
 /* nearest returns nearest longitude coordinate, copy from src/libes */
-static double nearest(double e0, double e1)
+static double nearest_longitude(double e0, double e1)
 {
     while (e0 - e1 > 180)
 	e1 += 360.0;
@@ -23,7 +23,8 @@
 }
 
 /* if projection is PROJECTION_LL adjust_line will change
- **   longitudes to nearest form previous point */
+ *   longitudes to nearest form previous point
+ */
 void adjust_line(struct line_pnts *Points)
 {
     int i, np;
@@ -31,7 +32,7 @@
     if (G_projection() == PROJECTION_LL) {
 	np = Points->n_points;
 	for (i = 1; i < np; i++) {
-	    Points->x[i] = nearest(Points->x[i - 1], Points->x[i]);
+	    Points->x[i] = nearest_longitude(Points->x[i - 1], Points->x[i]);
 	}
     }
 }



More information about the grass-commit mailing list