[GRASS-SVN] r57771 - grass/trunk/vector/v.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 20 18:47:19 PDT 2013
Author: hamish
Date: 2013-09-20 18:47:19 -0700 (Fri, 20 Sep 2013)
New Revision: 57771
Modified:
grass/trunk/vector/v.mapcalc/any.c
grass/trunk/vector/v.mapcalc/list.c
grass/trunk/vector/v.mapcalc/map.c
grass/trunk/vector/v.mapcalc/number.c
grass/trunk/vector/v.mapcalc/vector.c
Log:
missing includes, change broken printf call
Modified: grass/trunk/vector/v.mapcalc/any.c
===================================================================
--- grass/trunk/vector/v.mapcalc/any.c 2013-09-21 01:33:03 UTC (rev 57770)
+++ grass/trunk/vector/v.mapcalc/any.c 2013-09-21 01:47:19 UTC (rev 57771)
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
+#include <grass/glocale.h>
#include "list.h"
#include "mapcalc.h"
#include "any.h"
Modified: grass/trunk/vector/v.mapcalc/list.c
===================================================================
--- grass/trunk/vector/v.mapcalc/list.c 2013-09-21 01:33:03 UTC (rev 57770)
+++ grass/trunk/vector/v.mapcalc/list.c 2013-09-21 01:47:19 UTC (rev 57771)
@@ -4,8 +4,9 @@
#include <time.h>
#if 0
#include <dmalloc.h>
+#endif
#include <grass/gis.h>
-#endif
+#include <grass/glocale.h>
#include "list.h"
LIST *listitem(size_t size);
Modified: grass/trunk/vector/v.mapcalc/map.c
===================================================================
--- grass/trunk/vector/v.mapcalc/map.c 2013-09-21 01:33:03 UTC (rev 57770)
+++ grass/trunk/vector/v.mapcalc/map.c 2013-09-21 01:47:19 UTC (rev 57771)
@@ -18,6 +18,7 @@
#include <dirent.h>
#include <sys/stat.h>
#include <grass/gis.h>
+#include <grass/glocale.h>
#include "list.h"
#include "mapcalc.h"
#include "map.h"
@@ -189,7 +190,7 @@
map = (MAP *) sym->v.p;
if (map->name)
- sprintf(stdout, "\t%s\n", map->name);
+ fprintf(stdout, "\t%s\n", map->name);
}
void showmap(SYMBOL * sym)
Modified: grass/trunk/vector/v.mapcalc/number.c
===================================================================
--- grass/trunk/vector/v.mapcalc/number.c 2013-09-21 01:33:03 UTC (rev 57770)
+++ grass/trunk/vector/v.mapcalc/number.c 2013-09-21 01:47:19 UTC (rev 57771)
@@ -3,6 +3,8 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
+#include <grass/gis.h>
+#include <grass/glocale.h>
#include "list.h"
#include "mapcalc.h"
Modified: grass/trunk/vector/v.mapcalc/vector.c
===================================================================
--- grass/trunk/vector/v.mapcalc/vector.c 2013-09-21 01:33:03 UTC (rev 57770)
+++ grass/trunk/vector/v.mapcalc/vector.c 2013-09-21 01:47:19 UTC (rev 57771)
@@ -4,6 +4,7 @@
#include <string.h>
#include <math.h>
#include <grass/gis.h>
+#include <grass/glocale.h>
#include "list.h"
#include "mapcalc.h"
#include "vector.h"
More information about the grass-commit
mailing list