[GRASS-SVN] r39145 - grass/branches/develbranch_6/raster/r.out.vrml

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 12 03:11:12 EDT 2009


Author: neteler
Date: 2009-09-12 03:11:11 -0400 (Sat, 12 Sep 2009)
New Revision: 39145

Modified:
   grass/branches/develbranch_6/raster/r.out.vrml/main.c
   grass/branches/develbranch_6/raster/r.out.vrml/put_grid.c
   grass/branches/develbranch_6/raster/r.out.vrml/pv.h
Log:
don't use typedef

Modified: grass/branches/develbranch_6/raster/r.out.vrml/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.out.vrml/main.c	2009-09-12 07:11:06 UTC (rev 39144)
+++ grass/branches/develbranch_6/raster/r.out.vrml/main.c	2009-09-12 07:11:11 UTC (rev 39145)
@@ -31,7 +31,7 @@
     struct Option *rast_el, *rast_co, *out;
     struct Option *exag_opt;
     char *t_mapset;
-    FILEDESC elevfd = 0, colorfd = 0;
+    int elevfd = 0, colorfd = 0;
     FILE *vout = NULL;
     struct Colors colr;
     char errbuf[100], outfile[256];

Modified: grass/branches/develbranch_6/raster/r.out.vrml/put_grid.c
===================================================================
--- grass/branches/develbranch_6/raster/r.out.vrml/put_grid.c	2009-09-12 07:11:06 UTC (rev 39144)
+++ grass/branches/develbranch_6/raster/r.out.vrml/put_grid.c	2009-09-12 07:11:11 UTC (rev 39145)
@@ -9,7 +9,7 @@
 
 void vrml_put_grid(FILE * vout,
 		   struct Cell_head *w,
-		   FILEDESC elevfd, FILEDESC colorfd,
+		   int elevfd, int colorfd,
 		   struct Colors *colr,
 		   int color_ok, int rows, int cols, int shh)
 {

Modified: grass/branches/develbranch_6/raster/r.out.vrml/pv.h
===================================================================
--- grass/branches/develbranch_6/raster/r.out.vrml/pv.h	2009-09-12 07:11:06 UTC (rev 39144)
+++ grass/branches/develbranch_6/raster/r.out.vrml/pv.h	2009-09-12 07:11:11 UTC (rev 39145)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include <grass/gis.h>
 
 /*  VRML VERSION - only 1.0 currently supported
@@ -10,13 +11,11 @@
 /* closed square bracket */
 #define CSB "]"
 
-/* open curley bracket */
+/* open curly bracket */
 #define OCB "{"
-/* closed curley bracket */
+/* closed curly bracket */
 #define CCB "}"
 
-typedef int FILEDESC;
-
 /* main.c */
 extern int init_coordcnv(double, struct Cell_head *, double, double);
 extern int do_coordcnv(double *, int);
@@ -29,7 +28,7 @@
 /* put_grid.c */
 extern void vrml_put_grid(FILE *,
 			  struct Cell_head *,
-			  FILEDESC, FILEDESC,
+			  int, int,
 			  struct Colors *, int, int, int, int);
 
 /* put_view.c */



More information about the grass-commit mailing list