[GRASS-SVN] r33137 - in grass/trunk: display/d.vect.chart
general/g.proj lib/vector/Vlib lib/vector/vedit raster/r.proj
raster/r.to.vect vector/lidar/v.lidar.correction
vector/lidar/v.lidar.edgedetection
vector/lidar/v.lidar.growing vector/lidar/v.outlier
vector/lidar/v.surf.bspline vector/v.buffer vector/v.edit
vector/v.generalize vector/v.lrs/v.lrs.create
vector/v.reclass vector/v.to.db vector/v.to.rast
vector/v.univar vector/v.voronoi
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 28 11:39:25 EDT 2008
Author: glynn
Date: 2008-08-28 11:39:22 -0400 (Thu, 28 Aug 2008)
New Revision: 33137
Modified:
grass/trunk/display/d.vect.chart/pie.c
grass/trunk/general/g.proj/datumtrans.c
grass/trunk/lib/vector/Vlib/remove_areas.c
grass/trunk/lib/vector/Vlib/rewind.c
grass/trunk/lib/vector/Vlib/snap.c
grass/trunk/lib/vector/vedit/select.c
grass/trunk/raster/r.proj/readcell.c
grass/trunk/raster/r.to.vect/main.c
grass/trunk/vector/lidar/v.lidar.correction/correction.c
grass/trunk/vector/lidar/v.lidar.correction/main.c
grass/trunk/vector/lidar/v.lidar.edgedetection/edgedetection.c
grass/trunk/vector/lidar/v.lidar.edgedetection/main.c
grass/trunk/vector/lidar/v.lidar.growing/main.c
grass/trunk/vector/lidar/v.outlier/main.c
grass/trunk/vector/lidar/v.outlier/outlier.c
grass/trunk/vector/lidar/v.surf.bspline/crosscorr.c
grass/trunk/vector/lidar/v.surf.bspline/main.c
grass/trunk/vector/v.buffer/main.c
grass/trunk/vector/v.edit/global.h
grass/trunk/vector/v.generalize/displacement.c
grass/trunk/vector/v.generalize/main.c
grass/trunk/vector/v.generalize/matrix.c
grass/trunk/vector/v.generalize/network.c
grass/trunk/vector/v.generalize/point.c
grass/trunk/vector/v.generalize/smoothing.c
grass/trunk/vector/v.lrs/v.lrs.create/main.c
grass/trunk/vector/v.reclass/main.c
grass/trunk/vector/v.to.db/main.c
grass/trunk/vector/v.to.rast/main.c
grass/trunk/vector/v.univar/main.c
grass/trunk/vector/v.voronoi/dt_write.c
Log:
Add missing #include directives
Modified: grass/trunk/display/d.vect.chart/pie.c
===================================================================
--- grass/trunk/display/d.vect.chart/pie.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/display/d.vect.chart/pie.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -1,3 +1,4 @@
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/general/g.proj/datumtrans.c
===================================================================
--- grass/trunk/general/g.proj/datumtrans.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/general/g.proj/datumtrans.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <grass/gis.h>
#include <grass/gprojects.h>
Modified: grass/trunk/lib/vector/Vlib/remove_areas.c
===================================================================
--- grass/trunk/lib/vector/Vlib/remove_areas.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/lib/vector/Vlib/remove_areas.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -17,6 +17,7 @@
\date 2001
*/
+#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Modified: grass/trunk/lib/vector/Vlib/rewind.c
===================================================================
--- grass/trunk/lib/vector/Vlib/rewind.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/lib/vector/Vlib/rewind.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -19,6 +19,7 @@
*/
#include <grass/Vect.h>
+#include <grass/glocale.h>
/* Rewind vector data file to cause reads to start at beginning */
Modified: grass/trunk/lib/vector/Vlib/snap.c
===================================================================
--- grass/trunk/lib/vector/Vlib/snap.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/lib/vector/Vlib/snap.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -17,6 +17,7 @@
* \date 2001
*/
+#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Modified: grass/trunk/lib/vector/vedit/select.c
===================================================================
--- grass/trunk/lib/vector/vedit/select.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/lib/vector/vedit/select.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -14,6 +14,7 @@
\date 2007-2008
*/
+#include <math.h>
#include <grass/glocale.h>
#include <grass/vedit.h>
Modified: grass/trunk/raster/r.proj/readcell.c
===================================================================
--- grass/trunk/raster/r.proj/readcell.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/raster/r.proj/readcell.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
Modified: grass/trunk/raster/r.to.vect/main.c
===================================================================
--- grass/trunk/raster/r.to.vect/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/raster/r.to.vect/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
#include <grass/Vect.h>
Modified: grass/trunk/vector/lidar/v.lidar.correction/correction.c
===================================================================
--- grass/trunk/vector/lidar/v.lidar.correction/correction.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.lidar.correction/correction.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/lidar/v.lidar.correction/main.c
===================================================================
--- grass/trunk/vector/lidar/v.lidar.correction/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.lidar.correction/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -20,6 +20,7 @@
/*INCLUDES*/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Modified: grass/trunk/vector/lidar/v.lidar.edgedetection/edgedetection.c
===================================================================
--- grass/trunk/vector/lidar/v.lidar.edgedetection/edgedetection.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.lidar.edgedetection/edgedetection.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/lidar/v.lidar.edgedetection/main.c
===================================================================
--- grass/trunk/vector/lidar/v.lidar.edgedetection/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.lidar.edgedetection/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -25,6 +25,7 @@
/*INCLUDES*/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/lidar/v.lidar.growing/main.c
===================================================================
--- grass/trunk/vector/lidar/v.lidar.growing/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.lidar.growing/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -22,6 +22,7 @@
/*INCLUDES*/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Modified: grass/trunk/vector/lidar/v.outlier/main.c
===================================================================
--- grass/trunk/vector/lidar/v.outlier/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.outlier/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -20,6 +20,7 @@
/*INCLUDES*/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Modified: grass/trunk/vector/lidar/v.outlier/outlier.c
===================================================================
--- grass/trunk/vector/lidar/v.outlier/outlier.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.outlier/outlier.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/lidar/v.surf.bspline/crosscorr.c
===================================================================
--- grass/trunk/vector/lidar/v.surf.bspline/crosscorr.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.surf.bspline/crosscorr.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -20,6 +20,7 @@
/*INCLUDES*/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/lidar/v.surf.bspline/main.c
===================================================================
--- grass/trunk/vector/lidar/v.surf.bspline/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/lidar/v.surf.bspline/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -20,6 +20,7 @@
/*INCLUDES*/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/v.buffer/main.c
===================================================================
--- grass/trunk/vector/v.buffer/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.buffer/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -17,6 +17,7 @@
**************************************************************/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/v.edit/global.h
===================================================================
--- grass/trunk/vector/v.edit/global.h 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.edit/global.h 2008-08-28 15:39:22 UTC (rev 33137)
@@ -3,6 +3,7 @@
# include <stdio.h>
# include <stdlib.h>
+# include <string.h>
# include <grass/gis.h>
# include <grass/Vect.h>
# include <grass/glocale.h>
Modified: grass/trunk/vector/v.generalize/displacement.c
===================================================================
--- grass/trunk/vector/v.generalize/displacement.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.generalize/displacement.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Modified: grass/trunk/vector/v.generalize/main.c
===================================================================
--- grass/trunk/vector/v.generalize/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.generalize/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Modified: grass/trunk/vector/v.generalize/matrix.c
===================================================================
--- grass/trunk/vector/v.generalize/matrix.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.generalize/matrix.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -17,6 +17,7 @@
*
****************************************************************/
+#include <string.h>
#include "matrix.h"
int matrix_init(int rows, int cols, MATRIX * res)
Modified: grass/trunk/vector/v.generalize/network.c
===================================================================
--- grass/trunk/vector/v.generalize/network.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.generalize/network.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Modified: grass/trunk/vector/v.generalize/point.c
===================================================================
--- grass/trunk/vector/v.generalize/point.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.generalize/point.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -17,10 +17,11 @@
*
****************************************************************/
-#include "point.h"
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
+#include "point.h"
inline void point_subtract(POINT a, POINT b, POINT * res)
{
@@ -116,11 +117,6 @@
pl = G_malloc(sizeof(POINT_LIST));
- if (!pl) {
- G_fatal_error(_("Out of memory"));
- exit(1);
- }
-
pl->next = NULL;
pl->p = p;
return pl;
Modified: grass/trunk/vector/v.generalize/smoothing.c
===================================================================
--- grass/trunk/vector/v.generalize/smoothing.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.generalize/smoothing.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Modified: grass/trunk/vector/v.lrs/v.lrs.create/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.create/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.lrs/v.lrs.create/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/v.reclass/main.c
===================================================================
--- grass/trunk/vector/v.reclass/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.reclass/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -16,6 +16,7 @@
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/v.to.db/main.c
===================================================================
--- grass/trunk/vector/v.to.db/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.to.db/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -15,6 +15,7 @@
*
*****************************************************************************/
+#include <stdlib.h>
#include <grass/glocale.h>
#include "global.h"
Modified: grass/trunk/vector/v.to.rast/main.c
===================================================================
--- grass/trunk/vector/v.to.rast/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.to.rast/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
#include <grass/Vect.h>
Modified: grass/trunk/vector/v.univar/main.c
===================================================================
--- grass/trunk/vector/v.univar/main.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.univar/main.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -19,6 +19,7 @@
**************************************************************/
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>
Modified: grass/trunk/vector/v.voronoi/dt_write.c
===================================================================
--- grass/trunk/vector/v.voronoi/dt_write.c 2008-08-28 07:02:08 UTC (rev 33136)
+++ grass/trunk/vector/v.voronoi/dt_write.c 2008-08-28 15:39:22 UTC (rev 33137)
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <grass/gis.h>
More information about the grass-commit
mailing list