فهرست منبع

pv.h needs <grass/raster.h>
clean-up


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39131 15284696-431f-4ddb-bdfa-cd5b030d7da7

Glynn Clements 15 سال پیش
والد
کامیت
5079706f0f
3فایلهای تغییر یافته به همراه8 افزوده شده و 10 حذف شده
  1. 1 1
      raster/r.out.vrml/main.c
  2. 1 1
      raster/r.out.vrml/put_grid.c
  3. 6 8
      raster/r.out.vrml/pv.h

+ 1 - 1
raster/r.out.vrml/main.c

@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
 
     struct Option *rast_el, *rast_co, *out;
     struct Option *exag_opt;
-    FILEDESC elevfd = 0, colorfd = 0;
+    int elevfd = 0, colorfd = 0;
     FILE *vout = NULL;
     struct Colors colr;
     char outfile[GPATH_MAX];

+ 1 - 1
raster/r.out.vrml/put_grid.c

@@ -10,7 +10,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)
 {

+ 6 - 8
raster/r.out.vrml/pv.h

@@ -1,4 +1,6 @@
+#include <stdio.h>
 #include <grass/gis.h>
+#include <grass/raster.h>
 
 /*  VRML VERSION - only 1.0 currently supported
    #define VRML2
@@ -10,13 +12,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);
@@ -27,10 +27,8 @@ extern void vrml_begin(FILE *);
 extern void vrml_end(FILE *);
 
 /* put_grid.c */
-extern void vrml_put_grid(FILE *,
-			  struct Cell_head *,
-			  FILEDESC, FILEDESC,
-			  struct Colors *, int, int, int, int);
+extern void vrml_put_grid(FILE *, struct Cell_head *,
+			  int, int, struct Colors *, int, int, int, int);
 
 /* put_view.c */
 extern void vrml_put_view(FILE *, struct G_3dview *);