[GRASS-SVN] r55463 - grass/trunk/lib/raster3d

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 19 18:58:48 PDT 2013


Author: glynn
Date: 2013-03-19 18:58:48 -0700 (Tue, 19 Mar 2013)
New Revision: 55463

Modified:
   grass/trunk/lib/raster3d/volume.c
Log:
Convert K&R-style functions to ANSI C


Modified: grass/trunk/lib/raster3d/volume.c
===================================================================
--- grass/trunk/lib/raster3d/volume.c	2013-03-20 00:14:25 UTC (rev 55462)
+++ grass/trunk/lib/raster3d/volume.c	2013-03-20 01:58:48 UTC (rev 55463)
@@ -8,11 +8,7 @@
 
 /*---------------------------------------------------------------------------*/
 
-static int verifyVolumeVertices(map, v)
-
-     void *map;
-     double v[2][2][2][3];
-
+static int verifyVolumeVertices(void *map, double v[2][2][2][3])
 {
     if (!(Rast3d_is_valid_location(map, v[0][0][0][0], v[0][0][0][1],
 			      v[0][0][0][2]) &&
@@ -37,10 +33,7 @@
 
 /*---------------------------------------------------------------------------*/
 
-static int verifyVolumeEdges(nx, ny, nz)
-
-     int nx, ny, nz;
-
+static int verifyVolumeEdges(int nx, int ny, int nz)
 {
     if ((nx <= 0) || (ny <= 0) || (nz <= 0))
 	Rast3d_fatal_error("verifyCubeEdges: Volume edge out of range");



More information about the grass-commit mailing list