浏览代码

replace GR_FATAL_* (rasters), GV_FATAL_* (vectors) by G_FATAL_*

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49420 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
22e3e2d77b
共有 51 个文件被更改,包括 92 次插入104 次删除
  1. 1 1
      doc/vector/v.example/main.c
  2. 1 1
      imagery/i.pca/main.c
  3. 4 4
      include/gis.h
  4. 0 8
      include/vect/dig_defines.h
  5. 10 10
      lib/gis/legal_name.c
  6. 7 7
      lib/vector/Vlib/legal_vname.c
  7. 3 3
      raster/r.carve/main.c
  8. 1 1
      raster/r.param.scale/interface.c
  9. 9 9
      raster/r.slope.aspect/main.c
  10. 10 14
      vector/v.buffer/main.c
  11. 1 1
      vector/v.build.polylines/main.c
  12. 1 1
      vector/v.build/main.c
  13. 1 1
      vector/v.category/main.c
  14. 2 2
      vector/v.clean/main.c
  15. 1 1
      vector/v.drape/main.c
  16. 1 1
      vector/v.extract/main.c
  17. 1 1
      vector/v.extrude/main.c
  18. 1 1
      vector/v.generalize/main.c
  19. 1 1
      vector/v.hull/main.c
  20. 2 2
      vector/v.kernel/main.c
  21. 1 1
      vector/v.lidar.correction/main.c
  22. 1 1
      vector/v.lidar.edgedetection/main.c
  23. 1 1
      vector/v.lidar.growing/main.c
  24. 1 1
      vector/v.net.alloc/main.c
  25. 1 1
      vector/v.net.allpairs/main.c
  26. 1 1
      vector/v.net.bridge/main.c
  27. 1 1
      vector/v.net.centrality/main.c
  28. 1 1
      vector/v.net.components/main.c
  29. 1 1
      vector/v.net.connectivity/main.c
  30. 1 1
      vector/v.net.distance/main.c
  31. 1 1
      vector/v.net.flow/main.c
  32. 1 1
      vector/v.net.iso/main.c
  33. 1 1
      vector/v.net.path/main.c
  34. 1 1
      vector/v.net.salesman/main.c
  35. 1 1
      vector/v.net.spanningtree/main.c
  36. 1 1
      vector/v.net.steiner/main.c
  37. 1 1
      vector/v.net.timetable/main.c
  38. 1 1
      vector/v.net.visibility/main.c
  39. 1 1
      vector/v.net/main.c
  40. 1 1
      vector/v.outlier/main.c
  41. 2 2
      vector/v.overlay/main.c
  42. 1 1
      vector/v.patch/main.c
  43. 1 1
      vector/v.reclass/main.c
  44. 1 1
      vector/v.segment/main.c
  45. 1 1
      vector/v.select/main.c
  46. 1 1
      vector/v.surf.bspline/main.c
  47. 2 2
      vector/v.surf.rst/main.c
  48. 1 1
      vector/v.to.3d/main.c
  49. 1 1
      vector/v.to.points/main.c
  50. 1 1
      vector/v.transform/main.c
  51. 2 2
      vector/v.type/main.c

+ 1 - 1
doc/vector/v.example/main.c

@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
        3) if input was found in current mapset, check if input != output.
        lib/vector/Vlib/legal_vname.c
      */
-    Vect_check_input_output_name(old->answer, new->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(old->answer, new->answer, G_FATAL_EXIT);
 
     if ((mapset = (char *)G_find_vector2(old->answer, "")) == NULL)
 	G_fatal_error(_("Vector map <%s> not found"), old->answer);

+ 1 - 1
imagery/i.pca/main.c

@@ -134,7 +134,7 @@ int main(int argc, char *argv[])
 	char tmpbuf[128];
 
 	sprintf(tmpbuf, "%s.%d", opt_out->answer, i + 1);
-	G_check_input_output_name(opt_in->answers[i], tmpbuf, GR_FATAL_EXIT);
+	G_check_input_output_name(opt_in->answers[i], tmpbuf, G_FATAL_EXIT);
 
 	inp_fd[i] = Rast_open_old(opt_in->answers[i], "");
     }

+ 4 - 4
include/gis.h

@@ -246,10 +246,10 @@ static const char *GRASS_copyright __attribute__ ((unused))
 #define DEFAULT_FG_COLOR "black"
 #define DEFAULT_BG_COLOR "white"
 
-/* for raster maps */
-#define GR_FATAL_EXIT    0
-#define GR_FATAL_PRINT   1
-#define GR_FATAL_RETURN  2
+/* error codes */
+#define G_FATAL_EXIT    0
+#define G_FATAL_PRINT   1
+#define G_FATAL_RETURN  2
 
 /* for vector maps */
 /*!

+ 0 - 8
include/vect/dig_defines.h

@@ -4,14 +4,6 @@
   Defines for diglib (part of vector library)
 */
 
-/*! \brief Exit/print/return on error
-
-  \todo To be moved to gislib
-*/
-#define GV_FATAL_EXIT    0
-#define GV_FATAL_PRINT   1
-#define GV_FATAL_RETURN  2
-
 /*! \brief Name of vector directory */
 #define GV_DIRECTORY    "vector"	
 /*! \brief Format description, data location (OGR) */

+ 10 - 10
lib/gis/legal_name.c

@@ -57,7 +57,7 @@ int G_legal_filename(const char *s)
  *
  * \param input input map name
  * \param output output map name
- * \param error error type: GR_FATAL_EXIT, GR_FATAL_PRINT, GR_FATAL_RETURN
+ * \param error error type: G_FATAL_EXIT, G_FATAL_PRINT, G_FATAL_RETURN
  *
  * \return 0 OK
  * \return 1 error
@@ -70,16 +70,16 @@ int G_check_input_output_name(const char *input, const char *output,
     if (output == NULL)
 	return 0;		/* don't die on undefined parameters */
     if (G_legal_filename(output) == -1) {
-	if (error == GR_FATAL_EXIT) {
+	if (error == G_FATAL_EXIT) {
 	    G_fatal_error(_("Output raster map name <%s> is not valid map name"),
 			  output);
 	}
-	else if (error == GR_FATAL_PRINT) {
+	else if (error == G_FATAL_PRINT) {
 	    G_warning(_("Output raster map name <%s> is not valid map name"),
 		      output);
 	    return 1;
 	}
-	else {			/* GR_FATAL_RETURN */
+	else {			/* G_FATAL_RETURN */
 	    return 1;
 	}
     }
@@ -87,14 +87,14 @@ int G_check_input_output_name(const char *input, const char *output,
     mapset = G_find_raster2(input, "");
 
     if (mapset == NULL) {
-	if (error == GR_FATAL_EXIT) {
+	if (error == G_FATAL_EXIT) {
 	    G_fatal_error(_("Raster map <%s> not found"), input);
 	}
-	else if (error == GR_FATAL_PRINT) {
+	else if (error == G_FATAL_PRINT) {
 	    G_warning(_("Raster map <%s> not found"), input);
 	    return 1;
 	}
-	else {			/* GR_FATAL_RETURN */
+	else {			/* G_FATAL_RETURN */
 	    return 1;
 	}
     }
@@ -111,16 +111,16 @@ int G_check_input_output_name(const char *input, const char *output,
 	}
 
 	if (strcmp(in, output) == 0) {
-	    if (error == GR_FATAL_EXIT) {
+	    if (error == G_FATAL_EXIT) {
 		G_fatal_error(_("Output raster map <%s> is used as input"),
 			      output);
 	    }
-	    else if (error == GR_FATAL_PRINT) {
+	    else if (error == G_FATAL_PRINT) {
 		G_warning(_("Output raster map <%s> is used as input"),
 			  output);
 		return 1;
 	    }
-	    else {		/* GR_FATAL_RETURN */
+	    else {		/* G_FATAL_RETURN */
 		return 1;
 	    }
 	}

+ 7 - 7
lib/vector/Vlib/legal_vname.c

@@ -80,7 +80,7 @@ int Vect_legal_filename(const char *s)
 
    \param input input name
    \param output output name
-   \param error error type GV_FATAL_EXIT, GV_FATAL_PRINT, GV_FATAL_RETURN
+   \param error error type G_FATAL_EXIT, G_FATAL_PRINT, G_FATAL_RETURN
 
    \return 0 OK
    \return 1 error
@@ -93,11 +93,11 @@ int Vect_check_input_output_name(const char *input, const char *output,
     char nm[GNAME_MAX], ms[GMAPSET_MAX];
 
     if (Vect_legal_filename(output) == -1) {
-	if (error == GV_FATAL_EXIT) {
+	if (error == G_FATAL_EXIT) {
 	    G_fatal_error(_("Output vector map name <%s> is not valid map name"),
 			  output);
 	}
-	else if (error == GV_FATAL_PRINT) {
+	else if (error == G_FATAL_PRINT) {
 	    G_warning(_("Output vector map name <%s> is not valid map name"),
 		      output);
 	    return 1;
@@ -117,10 +117,10 @@ int Vect_check_input_output_name(const char *input, const char *output,
 	mapset = G_find_vector2(input, "");
 
     if (mapset == NULL) {
-	if (error == GV_FATAL_EXIT) {
+	if (error == G_FATAL_EXIT) {
 	    G_fatal_error(_("Vector map <%s> not found"), input);
 	}
-	else if (error == GV_FATAL_PRINT) {
+	else if (error == G_FATAL_PRINT) {
 	    G_warning(_("Vector map <%s> not found"), input);
 	    return 1;
 	}
@@ -140,11 +140,11 @@ int Vect_check_input_output_name(const char *input, const char *output,
 	}
 
 	if (strcmp(in, output) == 0) {
-	    if (error == GV_FATAL_EXIT) {
+	    if (error == G_FATAL_EXIT) {
 		G_fatal_error(_("Output vector map <%s> is used as input"),
 			      output);
 	    }
-	    else if (error == GV_FATAL_PRINT) {
+	    else if (error == G_FATAL_PRINT) {
 		G_warning(_("Output vector map <%s> is used as input"),
 			  output);
 		return 1;

+ 3 - 3
raster/r.carve/main.c

@@ -114,10 +114,10 @@ int main(int argc, char **argv)
 	exit(EXIT_FAILURE);
 
     G_check_input_output_name(parm.inrast->answer, parm.outrast->answer,
-			      GR_FATAL_EXIT);
+			      G_FATAL_EXIT);
     if (parm.outvect->answer)
-	Vect_check_input_output_name(parm.invect->answer,
-				     parm.outvect->answer, GR_FATAL_EXIT);
+      Vect_check_input_output_name(parm.invect->answer, parm.outvect->answer,
+				   G_FATAL_EXIT);
 
     /* setup lat/lon projection and distance calculations */
     init_projection(&win, &parm.wrap);

+ 1 - 1
raster/r.param.scale/interface.c

@@ -166,7 +166,7 @@ void interface(int argc, char **argv)
     }
 
     /* make sure input and output names are valid */
-    G_check_input_output_name(rast_in_name, rast_out_name, GR_FATAL_EXIT);
+    G_check_input_output_name(rast_in_name, rast_out_name, G_FATAL_EXIT);
 
     if ((wsize / 2 != (wsize - 1) / 2) || (wsize > MAX_WSIZE))
 	G_fatal_error(_("Inappropriate window size (too big or even)"));

+ 9 - 9
raster/r.slope.aspect/main.c

@@ -299,15 +299,15 @@ int main(int argc, char *argv[])
     dyy_name = parm.dyy->answer;
     dxy_name = parm.dxy->answer;
 
-    G_check_input_output_name(elev_name, slope_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, aspect_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, pcurv_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, tcurv_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, dx_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, dy_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, dxx_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, dyy_name, GR_FATAL_EXIT);
-    G_check_input_output_name(elev_name, dxy_name, GR_FATAL_EXIT);
+    G_check_input_output_name(elev_name, slope_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, aspect_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, pcurv_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, tcurv_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, dx_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, dy_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, dxx_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, dyy_name, G_FATAL_EXIT);
+    G_check_input_output_name(elev_name, dxy_name, G_FATAL_EXIT);
 
     if (sscanf(parm.zfactor->answer, "%lf", &zfactor) != 1 || zfactor <= 0.0) {
 	G_fatal_error(_("%s=%s - must be a positive number"),

+ 10 - 14
vector/v.buffer/main.c

@@ -298,6 +298,13 @@ int main(int argc, char *argv[])
 		    "option or clean manually with v.clean tool=break; "
 		    "v.category step=0; v.extract -d type=area"));
 
+    Vect_set_error_handler_io(&In, &Out);
+    
+    Vect_check_input_output_name(in_opt->answer, out_opt->answer, G_FATAL_EXIT);
+
+    Vect_set_open_level(2); /* topology required */
+    Vect_open_old2(&In, in_opt->answer, "", field_opt->answer);
+
     if (field_opt->answer)
 	field = Vect_get_field_number(&In, field_opt->answer);
     else
@@ -335,23 +342,12 @@ int main(int argc, char *argv[])
 	G_verbose_message(_("The tolerance in map units = %g"), unit_tolerance);
     }
 
-    Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
-
+    Vect_open_new(&Out, out_opt->answer, WITHOUT_Z);
+    
     Points = Vect_new_line_struct();
     Cats = Vect_new_cats_struct();
     BCats = Vect_new_cats_struct();
-
-    Vect_set_open_level(2); /* topology required */
-
-    if (1 > Vect_open_old2(&In, in_opt->answer, "", field_opt->answer))
-	G_fatal_error(_("Unable to open vector map <%s>"), in_opt->answer);
-
-    if (0 > Vect_open_new(&Out, out_opt->answer, WITHOUT_Z)) {
-	Vect_close(&In);
-	G_fatal_error(_("Unable to create vector map <%s>"), out_opt->answer);
-    }
-
+    G_fatal_error("x");
     /* open tmp vector for buffers, needed for cleaning */
     sprintf(bufname, "%s_tmp_%d", out_opt->answer, getpid());
     if (0 > Vect_open_new(&Buf, bufname, 0)) {

+ 1 - 1
vector/v.build.polylines/main.c

@@ -136,7 +136,7 @@ int main(int argc, char **argv)
 	exit(EXIT_FAILURE);
 
     Vect_check_input_output_name(input->answer, output->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     /* Open binary vector map at level 2 */
     Vect_set_open_level(2);

+ 1 - 1
vector/v.build/main.c

@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
     }
     if (err_opt->answer) {
 	Vect_check_input_output_name(map_opt->answer, err_opt->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
     }
 
     /* build topology */

+ 1 - 1
vector/v.category/main.c

@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
 	    G_fatal_error(_("Output vector wasn't entered"));
 
 	Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
     }
 
     Points = Vect_new_line_struct();

+ 2 - 2
vector/v.clean/main.c

@@ -135,10 +135,10 @@ int main(int argc, char *argv[])
     otype = Vect_option_to_types(opt.type);
 
     Vect_check_input_output_name(opt.in->answer, opt.out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
     if (opt.err->answer) {
 	Vect_check_input_output_name(opt.in->answer, opt.err->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
     }
 
     atools = 20;

+ 1 - 1
vector/v.drape/main.c

@@ -214,7 +214,7 @@ int main(int argc, char *argv[])
     
     /* check input/output vector maps */
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
     
     Vect_set_open_level(2);
     Vect_open_old2(&In, in_opt->answer, "", layer_opt->answer);

+ 1 - 1
vector/v.extract/main.c

@@ -170,7 +170,7 @@ int main(int argc, char **argv)
     input = opt.input->answer;
     output = opt.output->answer;
     Vect_check_input_output_name(input, output,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
     
     if (flag.d->answer)
 	dissolve = TRUE;

+ 1 - 1
vector/v.extrude/main.c

@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
     centroid = 0;
 
     /* set input vector map name and mapset */
-    Vect_check_input_output_name(old->answer, new->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(old->answer, new->answer, G_FATAL_EXIT);
 
     /* vector setup */
     Points = Vect_new_line_struct();

+ 1 - 1
vector/v.generalize/main.c

@@ -285,7 +285,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.hull/main.c

@@ -74,7 +74,7 @@ int main(int argc, char **argv)
     sitefile = input->answer;
 
     Vect_check_input_output_name(input->answer, output->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
     
     Vect_set_open_level(1);
     if (Vect_open_old2(&Map, sitefile, "", field->answer) < 0)

+ 2 - 2
vector/v.kernel/main.c

@@ -251,9 +251,9 @@ int main(int argc, char **argv)
 
     if (net_opt->answer) {
 	Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
 	Vect_check_input_output_name(net_opt->answer, out_opt->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
     }
 
     G_get_window(&window);

+ 1 - 1
vector/v.lidar.correction/main.c

@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
 
     /* Checking vector names */
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     /* Open input vector */
     if ((mapset = G_find_vector2(in_opt->answer, "")) == NULL)

+ 1 - 1
vector/v.lidar.edgedetection/main.c

@@ -207,7 +207,7 @@ int main(int argc, char *argv[])
 
     /* Checking vector names */
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     if ((mapset = G_find_vector2(in_opt->answer, "")) == NULL) {
 	G_fatal_error(_("Vector map <%s> not found"), in_opt->answer);

+ 1 - 1
vector/v.lidar.growing/main.c

@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
 
     /* Open input vector */
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     if ((mapset = G_find_vector2(in_opt->answer, "")) == NULL) {
 	G_fatal_error(_("Vector map <%s> not found"), in_opt->answer);

+ 1 - 1
vector/v.net.alloc/main.c

@@ -120,7 +120,7 @@ int main(int argc, char **argv)
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
-    Vect_check_input_output_name(map->answer, output->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(map->answer, output->answer, G_FATAL_EXIT);
 
     Cats = Vect_new_cats_struct();
     Points = Vect_new_line_struct();

+ 1 - 1
vector/v.net.allpairs/main.c

@@ -119,7 +119,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.bridge/main.c

@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.centrality/main.c

@@ -201,7 +201,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.components/main.c

@@ -134,7 +134,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.connectivity/main.c

@@ -124,7 +124,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.distance/main.c

@@ -148,7 +148,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.flow/main.c

@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.iso/main.c

@@ -141,7 +141,7 @@ int main(int argc, char **argv)
     catlist = Vect_new_cat_list();
     Vect_str_to_cat_list(term_opt->answer, catlist);
 
-    Vect_check_input_output_name(map->answer, output->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(map->answer, output->answer, G_FATAL_EXIT);
 
     /* Iso costs */
     aiso = 1;

+ 1 - 1
vector/v.net.path/main.c

@@ -124,7 +124,7 @@ int main(int argc, char **argv)
 	geo = 0;
 
     Vect_check_input_output_name(input_opt->answer, output_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
     Vect_open_old(&In, input_opt->answer, "");

+ 1 - 1
vector/v.net.salesman/main.c

@@ -188,7 +188,7 @@ int main(int argc, char **argv)
     else
 	geo = 0;
 
-    Vect_check_input_output_name(map->answer, output->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(map->answer, output->answer, G_FATAL_EXIT);
 
     Vect_set_open_level(2);
     Vect_open_old(&Map, map->answer, "");

+ 1 - 1
vector/v.net.spanningtree/main.c

@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
     Cats = Vect_new_cats_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.steiner/main.c

@@ -422,7 +422,7 @@ int main(int argc, char **argv)
     else
 	geo = 0;
 
-    Vect_check_input_output_name(map->answer, output->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(map->answer, output->answer, G_FATAL_EXIT);
 
     Vect_set_open_level(2);
     Vect_open_old(&Map, map->answer, "");

+ 1 - 1
vector/v.net.timetable/main.c

@@ -346,7 +346,7 @@ int main(int argc, char *argv[])
     Prev = Vect_new_line_struct();
 
     Vect_check_input_output_name(map_in->answer, map_out->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net.visibility/main.c

@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
 	exit(EXIT_FAILURE);
 
     Vect_check_input_output_name(input->answer, output->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
 

+ 1 - 1
vector/v.net/main.c

@@ -74,7 +74,7 @@ int main(int argc, char **argv)
 	if (act != TOOL_ARCS) {
 	    /* check input-output */
 	    Vect_check_input_output_name(opt.input->answer,
-					 opt.output->answer, GV_FATAL_EXIT);
+					 opt.output->answer, G_FATAL_EXIT);
 	}
 
 	if (act == TOOL_CONNECT || act == TOOL_ARCS) {

+ 1 - 1
vector/v.outlier/main.c

@@ -146,7 +146,7 @@ int main(int argc, char *argv[])
 
     /* Checking vector names */
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     if ((mapset = G_find_vector2(in_opt->answer, "")) == NULL) {
 	G_fatal_error(_("Vector map <%s> not found"), in_opt->answer);

+ 2 - 2
vector/v.overlay/main.c

@@ -155,9 +155,9 @@ int main(int argc, char *argv[])
 		      operator_opt->answer);
 
     Vect_check_input_output_name(in_opt[0]->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
     Vect_check_input_output_name(in_opt[1]->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Points = Vect_new_line_struct();
     Cats = Vect_new_cats_struct();

+ 1 - 1
vector/v.patch/main.c

@@ -110,7 +110,7 @@ int main(int argc, char *argv[])
     i = 0;
     while (old->answers[i]) {
 	in_name = old->answers[i++];
-	Vect_check_input_output_name(in_name, new->answer, GV_FATAL_EXIT);
+	Vect_check_input_output_name(in_name, new->answer, G_FATAL_EXIT);
 
 	Vect_set_open_level(2);
 	Vect_open_old_head(&InMap, in_name, "");

+ 1 - 1
vector/v.reclass/main.c

@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
     }
 
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Vect_set_open_level(2);
     Vect_open_old2(&In, in_opt->answer, "", field_opt->answer);

+ 1 - 1
vector/v.segment/main.c

@@ -79,7 +79,7 @@ int main(int argc, char **argv)
     PlPoints = Vect_new_line_struct();
 
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     if (strcmp(file_opt->answer, "-")) {
 	/* open input file */

+ 1 - 1
vector/v.select/main.c

@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
 	itype[iopt] = Vect_option_to_types(parm.type[iopt]);
 
 	Vect_check_input_output_name(parm.input[iopt]->answer, parm.output->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
 
 	Vect_set_open_level(2);
 	Vect_open_old2(&(In[iopt]), parm.input[iopt]->answer, "", parm.field[iopt]->answer);

+ 1 - 1
vector/v.surf.bspline/main.c

@@ -315,7 +315,7 @@ int main(int argc, char *argv[])
 			   "Try with a raster output or other driver."), dvr);
 
 	Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				     GV_FATAL_EXIT);
+				     G_FATAL_EXIT);
 	grid = FALSE;
 
 	if (0 > Vect_open_new(&Out, out_opt->answer, WITH_Z))

+ 2 - 2
vector/v.surf.rst/main.c

@@ -407,10 +407,10 @@ int main(int argc, char *argv[])
 			  overfile);
     }
     /*    if (treefile)
-       Vect_check_input_output_name(input, treefile, GV_FATAL_EXIT);
+       Vect_check_input_output_name(input, treefile, G_FATAL_EXIT);
 
        if (overfile)
-       Vect_check_input_output_name(input, overfile, GV_FATAL_EXIT);
+       Vect_check_input_output_name(input, overfile, G_FATAL_EXIT);
      */
     if ((elev == NULL) && (pcurv == NULL) && (tcurv == NULL)
 	&& (mcurv == NULL)

+ 1 - 1
vector/v.to.3d/main.c

@@ -65,7 +65,7 @@ int main(int argc, char **argv)
     }
 
     Vect_check_input_output_name(opt.input->answer, opt.output->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
     
     /* open input vector, topology not needed */
     Vect_set_open_level(1);

+ 1 - 1
vector/v.to.points/main.c

@@ -237,7 +237,7 @@ int main(int argc, char **argv)
 	vertex_type = 0;
 
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     /* Open input lines */
     Vect_set_open_level(2);

+ 1 - 1
vector/v.transform/main.c

@@ -195,7 +195,7 @@ int main(int argc, char *argv[])
     strcpy(Current.name, vold->answer);
     strcpy(Trans.name, vnew->answer);
 
-    Vect_check_input_output_name(vold->answer, vnew->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(vold->answer, vnew->answer, G_FATAL_EXIT);
 
     if (!table->answer && columns->answer) {
 	G_fatal_error(_("Table name is not defined. Please use '%s' parameter."),

+ 2 - 2
vector/v.type/main.c

@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
-    Vect_check_input_output_name(in_opt->answer, out_opt->answer, GV_FATAL_EXIT);
+    Vect_check_input_output_name(in_opt->answer, out_opt->answer, G_FATAL_EXIT);
 			    
     switch (from_opt->answer[0]) {
     case 'p':
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
 	G_fatal_error(_("Incompatible types"));
 
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
-				 GV_FATAL_EXIT);
+				 G_FATAL_EXIT);
 
     Points = Vect_new_line_struct();
     Cats = Vect_new_cats_struct();