[GRASS-SVN] r34284 - in grass/trunk: gui/wxpython/vdigit include lib/manage lib/sites lib/vector/Vlib lib/vector/vedit raster/r.carve raster/r.contour raster/r.flow raster/r.random raster/r.to.vect vector/lidar/v.outlier vector/v.buffer vector/v.build vector/v.build.polylines vector/v.category vector/v.clean vector/v.convert vector/v.digit vector/v.distance vector/v.drape vector/v.edit vector/v.external vector/v.extract vector/v.extrude vector/v.generalize vector/v.hull vector/v.in.ascii vector/v.in.db vector/v.in.dxf vector/v.in.ogr vector/v.in.region vector/v.in.sites vector/v.kcv vector/v.kernel vector/v.lrs/v.lrs.create vector/v.lrs/v.lrs.label vector/v.lrs/v.lrs.segment vector/v.mkgrid vector/v.net vector/v.net.alloc vector/v.net.iso vector/v.net.path vector/v.net.salesman vector/v.net.steiner vector/v.net.visibility vector/v.overlay vector/v.parallel vector/v.patch vector/v.perturb vector/v.proj vector/v.qcount vector/v.random vector/v.reclass vector/v.sample vector/v.segment vector/v.select vector/v.split vector/v.surf.rst vector/v.to.points vector/v.transform vector/v.type vector/v.vol.rst vector/v.voronoi vector/v.what

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 14 06:26:18 EST 2008


Author: glynn
Date: 2008-11-14 06:26:17 -0500 (Fri, 14 Nov 2008)
New Revision: 34284

Modified:
   grass/trunk/gui/wxpython/vdigit/driver.cpp
   grass/trunk/gui/wxpython/vdigit/line.cpp
   grass/trunk/include/Vect.h
   grass/trunk/lib/manage/do_copy.c
   grass/trunk/lib/manage/do_rename.c
   grass/trunk/lib/sites/sites.c
   grass/trunk/lib/vector/Vlib/break_lines.c
   grass/trunk/lib/vector/Vlib/break_polygons.c
   grass/trunk/lib/vector/Vlib/bridges.c
   grass/trunk/lib/vector/Vlib/build.c
   grass/trunk/lib/vector/Vlib/build_nat.c
   grass/trunk/lib/vector/Vlib/build_ogr.c
   grass/trunk/lib/vector/Vlib/clean_nodes.c
   grass/trunk/lib/vector/Vlib/dangles.c
   grass/trunk/lib/vector/Vlib/map.c
   grass/trunk/lib/vector/Vlib/open.c
   grass/trunk/lib/vector/Vlib/remove_areas.c
   grass/trunk/lib/vector/Vlib/remove_duplicates.c
   grass/trunk/lib/vector/Vlib/select.c
   grass/trunk/lib/vector/Vlib/sindex.c
   grass/trunk/lib/vector/Vlib/snap.c
   grass/trunk/lib/vector/vedit/select.c
   grass/trunk/raster/r.carve/vect.c
   grass/trunk/raster/r.contour/main.c
   grass/trunk/raster/r.flow/io.c
   grass/trunk/raster/r.random/random.c
   grass/trunk/raster/r.to.vect/main.c
   grass/trunk/vector/lidar/v.outlier/main.c
   grass/trunk/vector/v.buffer/main.c
   grass/trunk/vector/v.build.polylines/main.c
   grass/trunk/vector/v.build/main.c
   grass/trunk/vector/v.category/main.c
   grass/trunk/vector/v.clean/main.c
   grass/trunk/vector/v.clean/prune.c
   grass/trunk/vector/v.convert/old2new.c
   grass/trunk/vector/v.digit/centre.c
   grass/trunk/vector/v.digit/main.c
   grass/trunk/vector/v.distance/main.c
   grass/trunk/vector/v.drape/main.c
   grass/trunk/vector/v.edit/a2b.c
   grass/trunk/vector/v.edit/main.c
   grass/trunk/vector/v.edit/snap.c
   grass/trunk/vector/v.external/main.c
   grass/trunk/vector/v.extract/main.c
   grass/trunk/vector/v.extrude/main.c
   grass/trunk/vector/v.generalize/main.c
   grass/trunk/vector/v.hull/main.c
   grass/trunk/vector/v.in.ascii/main.c
   grass/trunk/vector/v.in.db/main.c
   grass/trunk/vector/v.in.dxf/main.c
   grass/trunk/vector/v.in.ogr/main.c
   grass/trunk/vector/v.in.region/main.c
   grass/trunk/vector/v.in.sites/main.c
   grass/trunk/vector/v.kcv/main.c
   grass/trunk/vector/v.kernel/main.c
   grass/trunk/vector/v.lrs/v.lrs.create/main.c
   grass/trunk/vector/v.lrs/v.lrs.label/main.c
   grass/trunk/vector/v.lrs/v.lrs.segment/main.c
   grass/trunk/vector/v.mkgrid/main.c
   grass/trunk/vector/v.net.alloc/main.c
   grass/trunk/vector/v.net.iso/main.c
   grass/trunk/vector/v.net.path/main.c
   grass/trunk/vector/v.net.salesman/main.c
   grass/trunk/vector/v.net.steiner/main.c
   grass/trunk/vector/v.net.visibility/main.c
   grass/trunk/vector/v.net/connect.c
   grass/trunk/vector/v.net/main.c
   grass/trunk/vector/v.overlay/area_area.c
   grass/trunk/vector/v.overlay/line_area.c
   grass/trunk/vector/v.overlay/main.c
   grass/trunk/vector/v.parallel/main.c
   grass/trunk/vector/v.patch/main.c
   grass/trunk/vector/v.perturb/main.c
   grass/trunk/vector/v.proj/main.c
   grass/trunk/vector/v.qcount/main.c
   grass/trunk/vector/v.random/main.c
   grass/trunk/vector/v.reclass/main.c
   grass/trunk/vector/v.sample/main.c
   grass/trunk/vector/v.segment/main.c
   grass/trunk/vector/v.select/main.c
   grass/trunk/vector/v.split/main.c
   grass/trunk/vector/v.surf.rst/main.c
   grass/trunk/vector/v.to.points/main.c
   grass/trunk/vector/v.transform/main.c
   grass/trunk/vector/v.type/main.c
   grass/trunk/vector/v.vol.rst/main.c
   grass/trunk/vector/v.voronoi/dt_main.c
   grass/trunk/vector/v.voronoi/vo_main.c
   grass/trunk/vector/v.what/main.c
Log:
Eliminate non-standard logging mechanism


Modified: grass/trunk/gui/wxpython/vdigit/driver.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/driver.cpp	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/gui/wxpython/vdigit/driver.cpp	2008-11-14 11:26:17 UTC (rev 34284)
@@ -104,8 +104,8 @@
     if (mapInfo) {
 	if (mapInfo->mode == GV_MODE_RW) {
 	    /* rebuild topology */
-	    Vect_build_partial(mapInfo, GV_BUILD_NONE, NULL);
-	    Vect_build(mapInfo, NULL);
+	    Vect_build_partial(mapInfo, GV_BUILD_NONE);
+	    Vect_build(mapInfo);
 	}
 	/* close map and store topo/cidx */
 	ret = Vect_close(mapInfo); 

Modified: grass/trunk/gui/wxpython/vdigit/line.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/line.cpp	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/gui/wxpython/vdigit/line.cpp	2008-11-14 11:26:17 UTC (rev 34284)
@@ -603,7 +603,7 @@
     changeset = AddActionsBefore();
     
     ret = Vect_break_lines_list(display->mapInfo, display->selected.values, NULL,
-				GV_LINES, NULL, NULL);
+				GV_LINES, NULL);
 
     if (ret > 0) {
 	AddActionsAfter(changeset, nlines);
@@ -639,7 +639,7 @@
     changeset = AddActionsBefore();
     
     Vect_snap_lines_list (display->mapInfo, display->selected.values,
-			  thresh, NULL, NULL);
+			  thresh, NULL);
 
     if (nlines < Vect_get_num_lines(display->mapInfo)) {
 	AddActionsAfter(changeset, nlines);
@@ -957,7 +957,7 @@
     }
 
     ret = Vect_break_lines_list(display->mapInfo, listBreak, listRef,
-				GV_LINES, NULL, NULL);
+				GV_LINES, NULL);
 
     for (int i = 0; i < listBreak->n_values; i++) {	
 	if (Vect_line_alive(display->mapInfo, listBreak->value[i]))

Modified: grass/trunk/include/Vect.h
===================================================================
--- grass/trunk/include/Vect.h	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/include/Vect.h	2008-11-14 11:26:17 UTC (rev 34284)
@@ -194,9 +194,9 @@
 int Vect_open_update(struct Map_info *, const char *, const char *);
 int Vect_open_update_head(struct Map_info *, const char *, const char *);
 int Vect_copy_head_data(struct Map_info *, struct Map_info *);
-int Vect_build(struct Map_info *, FILE *);
+int Vect_build(struct Map_info *);
 int Vect_get_built(struct Map_info *);
-int Vect_build_partial(struct Map_info *, int, FILE *);
+int Vect_build_partial(struct Map_info *, int);
 int Vect_set_constraint_region(struct Map_info *, double, double, double,
 			       double, double, double);
 int Vect_set_constraint_type(struct Map_info *, int);
@@ -296,30 +296,25 @@
 int Vect_point_in_island(double, double, struct Map_info *, int);
 
 /* Cleaning */
-void Vect_break_lines(struct Map_info *, int, struct Map_info *, FILE *);
+void Vect_break_lines(struct Map_info *, int, struct Map_info *);
 int Vect_break_lines_list(struct Map_info *, struct ilist *, struct ilist *,
-			  int, struct Map_info *, FILE *);
-void Vect_break_polygons(struct Map_info *, int, struct Map_info *, FILE *);
-void Vect_remove_duplicates(struct Map_info *, int, struct Map_info *,
-			    FILE *);
+			  int, struct Map_info *);
+void Vect_break_polygons(struct Map_info *, int, struct Map_info *);
+void Vect_remove_duplicates(struct Map_info *, int, struct Map_info *);
 int Vect_line_check_duplicate(const struct line_pnts *,
 			      const struct line_pnts *, int);
-void Vect_snap_lines(struct Map_info *, int, double, struct Map_info *,
-		     FILE *);
+void Vect_snap_lines(struct Map_info *, int, double, struct Map_info *);
 void Vect_snap_lines_list(struct Map_info *, struct ilist *, double,
-			  struct Map_info *, FILE *);
-void Vect_remove_dangles(struct Map_info *, int, double, struct Map_info *,
-			 FILE *);
-void Vect_chtype_dangles(struct Map_info *, double, struct Map_info *,
-			 FILE *);
-void Vect_select_dangles(struct Map_info *, int, double, FILE *,
-			 struct ilist *);
-void Vect_remove_bridges(struct Map_info *, struct Map_info *, FILE *);
-void Vect_chtype_bridges(struct Map_info *, struct Map_info *, FILE *);
+			  struct Map_info *);
+void Vect_remove_dangles(struct Map_info *, int, double, struct Map_info *);
+void Vect_chtype_dangles(struct Map_info *, double, struct Map_info *);
+void Vect_select_dangles(struct Map_info *, int, double, struct ilist *);
+void Vect_remove_bridges(struct Map_info *, struct Map_info *);
+void Vect_chtype_bridges(struct Map_info *, struct Map_info *);
 int Vect_remove_small_areas(struct Map_info *, double, struct Map_info *,
-			    FILE *, double *);
+			    double *);
 int Vect_clean_small_angles_at_nodes(struct Map_info *, int,
-				     struct Map_info *, FILE *);
+				     struct Map_info *);
 
 /* Overlay */
 int Vect_overlay_str_to_operator(const char *);
@@ -360,8 +355,8 @@
 			    int);
 int Vect_option_to_types(struct Option *);
 int Vect_copy_map_lines(struct Map_info *, struct Map_info *);
-int Vect_copy(const char *, const char *, const char *, FILE *);
-int Vect_rename(const char *, const char *, FILE *);
+int Vect_copy(const char *, const char *, const char *);
+int Vect_rename(const char *, const char *);
 int Vect_copy_table(struct Map_info *, struct Map_info *, int, int,
 		    const char *, int);
 int Vect_copy_table_by_cats(struct Map_info *, struct Map_info *, int, int,
@@ -392,8 +387,8 @@
 int Vect_open_spatial_index(struct Map_info *);
 int Vect_save_spatial_index(struct Map_info *);
 int Vect_spatial_index_dump(struct Map_info *, FILE *);
-int Vect_build_sidx_from_topo(struct Map_info *, FILE *);
-int Vect_build_spatial_index(struct Map_info *, FILE *);
+int Vect_build_sidx_from_topo(struct Map_info *);
+int Vect_build_spatial_index(struct Map_info *);
 
 int Vect__write_head(struct Map_info *);
 int Vect__read_head(struct Map_info *);
@@ -446,8 +441,8 @@
 #endif
 
     /* Miscellaneous */
-int Vect_build_nat(struct Map_info *, int, FILE *);
-int Vect_build_ogr(struct Map_info *, int, FILE *);
+int Vect_build_nat(struct Map_info *, int);
+int Vect_build_ogr(struct Map_info *, int);
 int Vect_build_line_area(struct Map_info *, int, int);
 int Vect_isle_find_area(struct Map_info *, int);
 int Vect_attach_isle(struct Map_info *, int);

Modified: grass/trunk/lib/manage/do_copy.c
===================================================================
--- grass/trunk/lib/manage/do_copy.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/manage/do_copy.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -24,7 +24,7 @@
 
     hold_signals(1);
     if (G_strcasecmp(list[n].alias, "vect") == 0) {
-	ret = Vect_copy(old, mapset, new, stderr);
+	ret = Vect_copy(old, mapset, new);
 	if (ret == -1) {
 	    G_warning("Cannot copy <%s> to current mapset as <%s>",
 		      G_fully_qualified_name(old, mapset), new);

Modified: grass/trunk/lib/manage/do_rename.c
===================================================================
--- grass/trunk/lib/manage/do_rename.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/manage/do_rename.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -37,7 +37,7 @@
 	    G_warning(_("Vector map <%s> not found"), old);
 	}
 	else {
-	    ret = Vect_rename(old, new, stderr);
+	    ret = Vect_rename(old, new);
 	    if (ret != -1) {
 		renamed = 1;
 	    }

Modified: grass/trunk/lib/sites/sites.c
===================================================================
--- grass/trunk/lib/sites/sites.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/sites/sites.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -440,7 +440,7 @@
     int i, j;
 
     if (Map->mode == GV_MODE_WRITE || Map->mode == GV_MODE_RW)
-	Vect_build(Map, stderr);
+	Vect_build(Map);
 
     Vect_close(Map);
 

Modified: grass/trunk/lib/vector/Vlib/break_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_lines.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/break_lines.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -28,16 +28,14 @@
    \param Map input vector map 
    \param type feature type
    \param[out] Err vector map where points at intersections will be written or NULL
-   \param[out] msgout file pointer where messages will be written or NULL
 
    \return
  */
 
 void
-Vect_break_lines(struct Map_info *Map, int type, struct Map_info *Err,
-		 FILE * msgout)
+Vect_break_lines(struct Map_info *Map, int type, struct Map_info *Err)
 {
-    Vect_break_lines_list(Map, NULL, NULL, type, Err, msgout);
+    Vect_break_lines_list(Map, NULL, NULL, type, Err);
 
     return;
 }
@@ -60,15 +58,13 @@
    \param List_ref list of reference lines or NULL
    \param type feature type
    \param[out] Err vector map where points at intersections will be written or NULL
-   \param[out] msgout file pointer where messages will be written or NULL
 
    \return number of intersections
  */
 
 int
 Vect_break_lines_list(struct Map_info *Map, struct ilist *List_break,
-		      struct ilist *List_ref, int type, struct Map_info *Err,
-		      FILE * msgout)
+		      struct ilist *List_ref, int type, struct Map_info *Err)
 {
     struct line_pnts *APoints, *BPoints, *Points;
     struct line_pnts **AXLines, **BXLines;
@@ -84,7 +80,6 @@
     int is3d;
     int node, anode1, anode2, bnode1, bnode2;
     double nodex, nodey;
-    int printed;
 
     APoints = Vect_new_line_struct();
     BPoints = Vect_new_line_struct();
@@ -116,10 +111,8 @@
      * the file, and process next line (remaining lines overlapping box are skipped)
      */
     nbreaks = 0;
-    printed = 0;
 
-    if (msgout)
-	fprintf(msgout, _("%s %5d"), _("Intersections:"), nbreaks);
+    G_verbose_message(_("Intersections: %5d"), nbreaks);
 
     for (iline = 0; iline < nlines; iline++) {
 	if (List_break) {
@@ -361,14 +354,6 @@
 		G_free(yx);
 		G_free(zx);
 	    }
-
-	    if (msgout && printed > 1000) {
-		fprintf(msgout, "\r%s %5d (line %d)", _("Intersections:"),
-			nbreaks, aline);
-		fflush(msgout);
-		printed = 0;
-	    }
-	    printed++;
 	    if (naxlines > 0)
 		break;		/* first line was broken and deleted -> take the next one */
 	}
@@ -382,9 +367,7 @@
 	G_debug(3, "nlines =  %d", nlines);
     }				/* for each line */
 
-    if (msgout)
-	fprintf(msgout, "\r%s %5d                        \n",
-		_("Intersections:"), nbreaks);
+    G_verbose_message(_("Intersections: %5d"), nbreaks);
 
     Vect_destroy_list(List);
 

Modified: grass/trunk/lib/vector/Vlib/break_polygons.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_polygons.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/break_polygons.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -55,13 +55,11 @@
    \param Map input map where polygons will be broken
    \param type type of line to be broken
    \param Err vector map where points at intersections will be written or NULL
-   \param msgout file pointer where messages will be written or NULL
 
    \return
  */
 void
-Vect_break_polygons(struct Map_info *Map, int type, struct Map_info *Err,
-		    FILE * msgout)
+Vect_break_polygons(struct Map_info *Map, int type, struct Map_info *Err)
 {
     struct line_pnts *BPoints, *Points;
     struct line_cats *Cats;
@@ -73,7 +71,6 @@
     struct Rect rect;
     double dx, dy, a1 = 0, a2 = 0;
     int closed, last_point, cross;
-    int printed;
 
     RTree = RTreeNewIndex();
 
@@ -93,7 +90,6 @@
     nallpoints = 0;
     XPnts = NULL;
 
-    printed = 0;
     for (i = 1; i <= nlines; i++) {
 	G_debug(3, "i =  %d", i);
 	if (!Vect_line_alive(Map, i))
@@ -210,28 +206,11 @@
 		npoints++;
 	    }
 	}
-	if (msgout && printed > 5000) {
-	    fprintf(msgout, "\r%s %d", _("Registering points"), npoints - 1);
-	    fflush(msgout);
-	    printed = 0;
-	}
-	printed++;
     }
-    if (msgout) {
-	fprintf(msgout, "\r%s %d", _("Registering points"), npoints - 1);
-	fprintf(msgout, "\n");
-	fprintf(msgout, "%s: %5d\n", _("All points (vertices)"), nallpoints);
-	fprintf(msgout, "%s: %5d\n",
-		_("Registered points (unique coordinates)"), npoints - 1);
-	fprintf(msgout, "%s: %5d\n", _("Points marked for break"), nmarks);
-    }
 
     /* G_sleep (10); */
 
     nbreaks = 0;
-    if (msgout)
-	fprintf(msgout, "%s: %5d", _("Breaks"), nbreaks);
-    printed = 0;
 
     /* Second loop through lines (existing when loop is started, no need to process lines written again)
      * and break at points marked for break */
@@ -305,13 +284,6 @@
 		broken = 1;
 		nbreaks++;
 	    }
-
-	    if (msgout && printed > 1000) {
-		fprintf(msgout, "\r%s: %5d", _("Breaks"), nbreaks);
-		fflush(msgout);
-		printed = 0;
-	    }
-	    printed++;
 	}
 	if (!broken && n_orig_points > Points->n_points) {	/* was pruned before -> rewrite */
 	    if (Points->n_points > 1) {
@@ -329,9 +301,6 @@
 	}
     }
 
-    if (msgout)
-	fprintf(msgout, "\r%s: %5d", _("Breaks"), nbreaks);
-
     /* Write points on breaks */
     if (Err) {
 	Vect_reset_cats(Cats);
@@ -344,9 +313,6 @@
 	}
     }
 
-    if (msgout)
-	fprintf(msgout, "\n");
-
     G_free(XPnts);
     RTreeDestroyNode(RTree);
 }

Modified: grass/trunk/lib/vector/Vlib/bridges.c
===================================================================
--- grass/trunk/lib/vector/Vlib/bridges.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/bridges.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -23,8 +23,7 @@
 #include <grass/glocale.h>
 
 static void
-remove_bridges(struct Map_info *Map, int chtype, struct Map_info *Err,
-	       FILE * msgout);
+remove_bridges(struct Map_info *Map, int chtype, struct Map_info *Err);
 
 /*!
    \brief Remove bridges from vector map.
@@ -37,15 +36,14 @@
 
    \param Map input map where bridges are deleted
    \param Err vector map where deleted bridges are written or NULL
-   \param msgout file pointer where messages will be written or NULL
 
    \return
  */
 
 void
-Vect_remove_bridges(struct Map_info *Map, struct Map_info *Err, FILE * msgout)
+Vect_remove_bridges(struct Map_info *Map, struct Map_info *Err)
 {
-    remove_bridges(Map, 0, Err, msgout);
+    remove_bridges(Map, 0, Err);
 }
 
 /*!
@@ -59,15 +57,14 @@
 
    \param Map input map where bridges are changed
    \param Err vector map where changed bridges are written or NULL
-   \param msgout file pointer where messages will be written or NULL
 
    \return
  */
 
 void
-Vect_chtype_bridges(struct Map_info *Map, struct Map_info *Err, FILE * msgout)
+Vect_chtype_bridges(struct Map_info *Map, struct Map_info *Err)
 {
-    remove_bridges(Map, 1, Err, msgout);
+    remove_bridges(Map, 1, Err);
 }
 
 /* 
@@ -84,8 +81,7 @@
    List of all lines in chain is created during the cycle.
  */
 void
-remove_bridges(struct Map_info *Map, int chtype, struct Map_info *Err,
-	       FILE * msgout)
+remove_bridges(struct Map_info *Map, int chtype, struct Map_info *Err)
 {
     int i, type, nlines, line;
     int left, right, node1, node2, current_line, next_line;
@@ -116,10 +112,6 @@
 
     G_debug(1, "nlines =  %d", nlines);
 
-    if (msgout)
-	fprintf(msgout, "%s: %5d  %s: %5d",
-		_("Removed bridges"), bridges_removed, lmsg, lines_removed);
-
     for (line = 1; line <= nlines; line++) {
 	if (!Vect_line_alive(Map, line))
 	    continue;
@@ -196,17 +188,5 @@
 	    }
 	    bridges_removed++;
 	}
-
-	if (msgout) {
-	    fprintf(msgout, "\r%s: %5d  %s: %5d",
-		    _("Removed bridges"), bridges_removed, lmsg,
-		    lines_removed);
-	    fflush(msgout);
-	}
     }
-    if (msgout) {
-	fprintf(msgout, "\r%s: %5d  %s: %5d",
-		_("Removed bridges"), bridges_removed, lmsg, lines_removed);
-	fprintf(msgout, "\n");
-    }
 }

Modified: grass/trunk/lib/vector/Vlib/build.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/build.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -42,37 +42,17 @@
 #endif
 };
 
-FILE *Msgout = NULL;
-
-
-int prnmsg(char *msg, ...)
-{
-    char buffer[1000];
-    va_list ap;
-
-    if (Msgout != NULL) {
-	va_start(ap, msg);
-	vsprintf(buffer, msg, ap);
-	va_end(ap);
-	fprintf(Msgout, "%s", buffer);
-	fflush(Msgout);
-    }
-
-    return 1;
-}
-
 /*!
    \brief Build topology for vector map
 
    \param Map vector map
-   \param msgout file for message output (stdout/stderr for example) or NULL
 
    \return 1 on success
    \return 0 on error
  */
-int Vect_build(struct Map_info *Map, FILE * msgout)
+int Vect_build(struct Map_info *Map)
 {
-    return Vect_build_partial(Map, GV_BUILD_ALL, msgout);
+    return Vect_build_partial(Map, GV_BUILD_ALL);
 }
 
 
@@ -121,17 +101,15 @@
 
    \param Map vector map
    \param build highest level of build
-   \param msgout file pointer for message output (stdout/stderr for example) or NULL
 
    \return 1 on success, 0 on error
  */
-int Vect_build_partial(struct Map_info *Map, int build, FILE * msgout)
+int Vect_build_partial(struct Map_info *Map, int build)
 {
     struct Plus_head *plus;
     int ret;
 
     G_debug(3, "Vect_build(): build = %d", build);
-    Msgout = msgout;
 
     /* If topology is already build (map on level2), set level to 1 so that lines will
      *  be read by V1_read_ (all lines) */
@@ -141,8 +119,8 @@
     Map->plus.Spidx_built = 1;
 
     plus = &(Map->plus);
-    prnmsg(_("Building topology for vector map <%s>...\n"),
-	   Vect_get_name(Map));
+    G_verbose_message(_("Building topology for vector map <%s>..."),
+		      Vect_get_name(Map));
     plus->with_z = Map->head.with_z;
     plus->spidx_with_z = Map->head.with_z;
 
@@ -151,13 +129,13 @@
 	dig_cidx_init(plus);
     }
 
-    ret = ((*Build_array[Map->format]) (Map, build, msgout));
+    ret = ((*Build_array[Map->format]) (Map, build));
 
     if (ret == 0) {
 	return 0;
     }
 
-    prnmsg(_("Topology was built\n"));
+    G_verbose_message(_("Topology was built"));
 
     Map->level = LEVEL_2;
     plus->mode = GV_MODE_WRITE;
@@ -167,20 +145,18 @@
 	dig_cidx_sort(plus);
     }
 
-    /* prnmsg ("Topology was built.\n") ; */
+    G_verbose_message(_("Number of nodes: %d"), plus->n_nodes);
+    G_verbose_message(_("Number of primitives: %d"), plus->n_lines);
+    G_verbose_message(_("Number of points: %d"), plus->n_plines);
+    G_verbose_message(_("Number of lines: %d"), plus->n_llines);
+    G_verbose_message(_("Number of boundaries: %d"), plus->n_blines);
+    G_verbose_message(_("Number of centroids: %d"), plus->n_clines);
 
-    prnmsg(_("Number of nodes     :   %d\n"), plus->n_nodes);
-    prnmsg(_("Number of primitives:   %d\n"), plus->n_lines);
-    prnmsg(_("Number of points    :   %d\n"), plus->n_plines);
-    prnmsg(_("Number of lines     :   %d\n"), plus->n_llines);
-    prnmsg(_("Number of boundaries:   %d\n"), plus->n_blines);
-    prnmsg(_("Number of centroids :   %d\n"), plus->n_clines);
-
     if (plus->n_flines > 0)
-	prnmsg(_("Number of faces     :   %d\n"), plus->n_flines);
+	G_verbose_message(_("Number of faces: %d"), plus->n_flines);
 
     if (plus->n_klines > 0)
-	prnmsg(_("Number of kernels   :   %d\n"), plus->n_klines);
+	G_verbose_message(_("Number of kernels: %d"), plus->n_klines);
 
     if (plus->built >= GV_BUILD_AREAS) {
 	int line, nlines, area, nareas, err_boundaries, err_centr_out,
@@ -220,29 +196,29 @@
 		err_nocentr++;
 	}
 
-	prnmsg(_("Number of areas     :   %d\n"), plus->n_areas);
-	prnmsg(_("Number of isles     :   %d\n"), plus->n_isles);
+	G_verbose_message(_("Number of areas: %d"), plus->n_areas);
+	G_verbose_message(_("Number of isles: %d"), plus->n_isles);
 
 	if (err_boundaries)
-	    prnmsg(_("Number of incorrect boundaries   :   %d\n"),
-		   err_boundaries);
+	    G_verbose_message(_("Number of incorrect boundaries: %d"),
+			      err_boundaries);
 
 	if (err_centr_out)
-	    prnmsg(_("Number of centroids outside area :   %d\n"),
-		   err_centr_out);
+	    G_verbose_message(_("Number of centroids outside area: %d"),
+			      err_centr_out);
 
 	if (err_centr_dupl)
-	    prnmsg(_("Number of duplicate centroids    :   %d\n"),
-		   err_centr_dupl);
+	    G_verbose_message(_("Number of duplicate centroids: %d"),
+			      err_centr_dupl);
 
 	if (err_nocentr)
-	    prnmsg(_("Number of areas without centroid :   %d\n"),
-		   err_nocentr);
+	    G_verbose_message(_("Number of areas without centroid: %d"),
+			      err_nocentr);
 
     }
     else {
-	prnmsg(_("Number of areas     :   -\n"));
-	prnmsg(_("Number of isles     :   -\n"));
+	G_verbose_message(_("Number of areas: -"));
+	G_verbose_message(_("Number of isles: -"));
     }
     return 1;
 }
@@ -451,7 +427,7 @@
 int Vect_spatial_index_dump(struct Map_info *Map, FILE * out)
 {
     if (!(Map->plus.Spidx_built)) {
-	Vect_build_sidx_from_topo(Map, NULL);
+	Vect_build_sidx_from_topo(Map);
     }
 
     fprintf(out, "---------- SPATIAL INDEX DUMP ----------\n");

Modified: grass/trunk/lib/vector/Vlib/build_nat.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_nat.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/build_nat.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -23,9 +23,6 @@
 #include <grass/gis.h>
 #include <grass/Vect.h>
 
-extern FILE *Msgout;
-extern int prnmsg(char *msg, ...);
-
 /*!
    \brief Build area on given side of line (GV_LEFT or GV_RIGHT)
 
@@ -417,12 +414,11 @@
 
    \param Map_info vector map
    \param build build level
-   \param msgout message output (stdout/stderr for example) or NULL
 
    \return 1 on success
    \return 0 on error
  */
-int Vect_build_nat(struct Map_info *Map, int build, FILE * msgout)
+int Vect_build_nat(struct Map_info *Map, int build)
 {
     struct Plus_head *plus;
     int i, j, s, type, lineid;
@@ -439,7 +435,6 @@
     G_debug(3, "Vect_build_nat() build = %d", build);
 
     plus = &(Map->plus);
-    Msgout = msgout;
 
     if (build == plus->built)
 	return 1;		/* Do nothing */
@@ -507,7 +502,7 @@
 
 	/* register lines, create nodes */
 	Vect_rewind(Map);
-	prnmsg(_("Registering primitives: "));
+	G_verbose_message(_("Registering primitives:"));
 	i = 1;
 	j = 1;
 	npoints = 0;
@@ -547,18 +542,11 @@
 		if (Cats->n_cats == 0)	/* add field 0, cat 0 */
 		    dig_cidx_add_cat(plus, 0, 0, lineid, type);
 	    }
-
-	    /* print progress */
-	    if (i == 1000) {
-		prnmsg("%7d\b\b\b\b\b\b\b", j);
-		i = 0;
-	    }
 	    i++;
 	    j++;
 	}
-	prnmsg("\r%d %s            \n", plus->n_lines,
-	       _("primitives registered"));
-	prnmsg("%d %s\n", npoints, _("vertices registered"));
+	G_verbose_message(_("%d primitives registered"), plus->n_lines);
+	G_verbose_message(_("%d vertices registered"), npoints);
 
 	plus->built = GV_BUILD_BASE;
     }
@@ -569,9 +557,9 @@
     if (plus->built < GV_BUILD_AREAS) {
 	/* Build areas */
 	/* Go through all bundaries and try to build area for both sides */
-	prnmsg(_("Building areas: "));
+	G_verbose_message(_("Building areas:"));
 	for (i = 1; i <= plus->n_lines; i++) {
-	    G_percent2(i, plus->n_lines, 1, msgout);
+	    G_percent(i, plus->n_lines, 1);
 
 	    /* build */
 	    if (plus->Line[i] == NULL) {
@@ -592,8 +580,8 @@
 		Vect_build_line_area(Map, i, side);
 	    }
 	}
-	prnmsg("\r%d %s      \n%d %s\n", plus->n_areas, _("areas built"),
-	       plus->n_isles, _("isles built"));
+	G_verbose_message(_("%d areas built"), plus->n_areas);
+	G_verbose_message(_("%d isles built"), plus->n_isles);
 	plus->built = GV_BUILD_AREAS;
     }
 
@@ -602,13 +590,11 @@
 
     /* Attach isles to areas */
     if (plus->built < GV_BUILD_ATTACH_ISLES) {
-	prnmsg(_("Attaching islands: "));
+	G_verbose_message(_("Attaching islands:"));
 	for (i = 1; i <= plus->n_isles; i++) {
-	    G_percent2(i, plus->n_isles, 1, msgout);
+	    G_percent(i, plus->n_isles, 1);
 	    Vect_attach_isle(Map, i);
 	}
-	if (i == 1)
-	    prnmsg("\n");
 	plus->built = GV_BUILD_ATTACH_ISLES;
     }
 
@@ -619,11 +605,11 @@
     if (plus->built < GV_BUILD_CENTROIDS) {
 	int nlines;
 
-	prnmsg(_("Attaching centroids: "));
+	G_verbose_message(_("Attaching centroids:"));
 
 	nlines = Vect_get_num_lines(Map);
 	for (line = 1; line <= nlines; line++) {
-	    G_percent2(line, nlines, 1, msgout);
+	    G_percent(line, nlines, 1);
 
 	    Line = plus->Line[line];
 	    if (!Line)

Modified: grass/trunk/lib/vector/Vlib/build_ogr.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_ogr.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/build_ogr.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -36,9 +36,6 @@
 #ifdef HAVE_OGR
 #include <ogr_api.h>
 
-extern FILE *Msgout;
-extern int prnmsg(char *msg, ...);
-
 /* 
  *  This structure keeps info about geometry parts above current geometry, path to curent geometry in the 
  *  feature. First 'part' number however is feature Id 
@@ -321,12 +318,11 @@
 
    \param Map_info vector map
    \param build build level 
-   \param msgout message output (stdout/stderr for example) or NULL
 
    \return 1 on success
    \return 0 on error
  */
-int Vect_build_ogr(struct Map_info *Map, int build, FILE * msgout)
+int Vect_build_ogr(struct Map_info *Map, int build)
 {
     int iFeature, count, FID;
     GEOM_PARTS parts;
@@ -336,8 +332,6 @@
     if (build != GV_BUILD_ALL)
 	G_fatal_error(_("Partial build for OGR is not supported"));
 
-    Msgout = msgout;
-
     /* TODO move this init to better place (Vect_open_ ?), because in theory build may be reused on level2 */
     Map->fInfo.ogr.offset = NULL;
     Map->fInfo.ogr.offset_num = 0;
@@ -352,7 +346,7 @@
     init_parts(&parts);
 
     /* Note: Do not use OGR_L_GetFeatureCount (it may scan all features)!!! */
-    prnmsg(_("Feature: "));
+    G_verbose_message(_("Feature: "));
 
     OGR_L_ResetReading(Map->fInfo.ogr.layer);
     count = iFeature = 0;
@@ -362,12 +356,6 @@
 
 	G_debug(4, "---- Feature %d ----", iFeature);
 
-	/* print progress */
-	if (count == 1000) {
-	    prnmsg("%7d\b\b\b\b\b\b\b", iFeature);
-	    count = 0;
-	}
-
 	hGeom = OGR_F_GetGeometryRef(hFeature);
 	if (hGeom == NULL) {
 	    G_warning(_("Feature %d without geometry ignored"), iFeature);
@@ -391,8 +379,6 @@
     }				/* while */
     free_parts(&parts);
 
-    prnmsg("%4d\n", iFeature);
-
     Map->plus.built = GV_BUILD_ALL;
     return 1;
 }

Modified: grass/trunk/lib/vector/Vlib/clean_nodes.c
===================================================================
--- grass/trunk/lib/vector/Vlib/clean_nodes.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/clean_nodes.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -32,13 +32,12 @@
 
    \param Map input map
    \param Err vector map where error line segments are written
-   \param msgout file pointer where messages will be written or NULL
 
    \return number of line modifications
  */
 int
 Vect_clean_small_angles_at_nodes(struct Map_info *Map, int otype,
-				 struct Map_info *Err, FILE * msgout)
+				 struct Map_info *Err)
 {
     int node;
     int nmodif = 0;
@@ -50,9 +49,6 @@
     LCats = Vect_new_cats_struct();
     OCats = Vect_new_cats_struct();
 
-    if (msgout)
-	fprintf(msgout, "%s: %5d", _("Modifications"), nmodif);
-
     for (node = 1; node <= Vect_get_num_nodes(Map); node++) {
 	int i, nlines;
 
@@ -246,19 +242,10 @@
 		angle1 = angle2;
 	    }
 
-	    if (msgout) {
-		fprintf(msgout, "\r%s: %5d", _("Modifications"), nmodif);
-		fflush(msgout);
-	    }
-
 	    if (clean)
 		break;
-
 	}
-
     }
-    if (msgout)
-	fprintf(stderr, "\n");
 
     return (nmodif);
 }

Modified: grass/trunk/lib/vector/Vlib/dangles.c
===================================================================
--- grass/trunk/lib/vector/Vlib/dangles.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/dangles.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -27,7 +27,7 @@
 #define SELECT_DANGLE 2
 
 static void dangles(struct Map_info *, int, int, double,
-		    struct Map_info *, FILE *, struct ilist *);
+		    struct Map_info *, struct ilist *);
 
 /*!
    \brief Remove dangles from vector map.
@@ -47,15 +47,14 @@
    \param type type of dangles (GV_LINES, GV_LINE or GV_BOUNDARY)
    \param maxlength maxlength of dangles or -1 for all dangles
    \param Err vector map where deleted dangles are written or NULL
-   \param msgout file pointer where messages will be written or NULL
 
    \return
  */
 void
 Vect_remove_dangles(struct Map_info *Map, int type, double maxlength,
-		    struct Map_info *Err, FILE * msgout)
+		    struct Map_info *Err)
 {
-    dangles(Map, type, REMOVE_DANGLE, maxlength, Err, msgout, NULL);
+    dangles(Map, type, REMOVE_DANGLE, maxlength, Err, NULL);
 }
 
 /*!
@@ -74,15 +73,14 @@
    \param Map input map where have to be deleted
    \param maxlength maxlength of dangles or -1 for all dangles
    \param Err vector map where deleted dangles are written or NULL
-   \param msgout file pointer where messages will be written or NULL
 
    \return 
  */
 void
 Vect_chtype_dangles(struct Map_info *Map, double maxlength,
-		    struct Map_info *Err, FILE * msgout)
+		    struct Map_info *Err)
 {
-    dangles(Map, 0, CHTYPE_DANGLE, maxlength, Err, msgout, NULL);
+    dangles(Map, 0, CHTYPE_DANGLE, maxlength, Err, NULL);
 }
 
 /*!
@@ -99,15 +97,14 @@
    \param Map input map where have to be deleted
    \param type type of dangles (GV_LINES, GV_LINE or GV_BOUNDARY)
    \param maxlength maxlength of dangles or -1 for all dangles
-   \param msgout file pointer where messages will be written or NULL
 
    \return
  */
 void
 Vect_select_dangles(struct Map_info *Map, int type, double maxlength,
-		    FILE * msgout, struct ilist *List)
+		    struct ilist *List)
 {
-    dangles(Map, type, SELECT_DANGLE, maxlength, NULL, msgout, List);
+    dangles(Map, type, SELECT_DANGLE, maxlength, NULL, List);
 }
 
 /*
@@ -126,11 +123,10 @@
    option dangle option (REMOVE_DANGLE, CHTYPE_DANGLE, SELECT_DANGLE)
    maxlength maxlength of dangles or -1 for all dangles
    Err vector map where deleted dangles are written or NULL
-   msgout file pointer where messages will be written or NULL
    List_dangle list of feature (selected dangles) ids 
  */
 static void dangles(struct Map_info *Map, int type, int option,
-		    double maxlength, struct Map_info *Err, FILE * msgout,
+		    double maxlength, struct Map_info *Err,
 		    struct ilist *List_dangle)
 {
     struct line_pnts *Points;
@@ -168,10 +164,6 @@
     Cats = Vect_new_cats_struct();
     List = Vect_new_list();
 
-    if (msgout)
-	fprintf(msgout, "%s %5d  %s: %5d",
-		_("Removed dangles:"), dangles_removed, lmsg, lines_removed);
-
     nnodes = Vect_get_num_nodes(Map);
     G_debug(2, "nnodes =  %d", nnodes);
 
@@ -266,23 +258,7 @@
 		}
 	    }			/* delete the chain */
 
-	    if (msgout) {
-		if (msgout)
-		    fprintf(msgout, "\r%s %5d  %s: %5d",
-			    _("Removed dangles:"), dangles_removed, lmsg,
-			    lines_removed);
-		fflush(msgout);
-	    }
-
 	    dangles_removed++;
 	}			/* lcount == 1 */
     }				/* node <= nnodes */
-
-    if (msgout) {
-	if (msgout)
-	    fprintf(msgout, "\r%s %5d  %s: %5d",
-		    _("Removed dangles:"), dangles_removed, lmsg,
-		    lines_removed);
-	fprintf(msgout, "\n");
-    }
 }

Modified: grass/trunk/lib/vector/Vlib/map.c
===================================================================
--- grass/trunk/lib/vector/Vlib/map.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/map.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -148,13 +148,12 @@
    \param[in] in input vector map name
    \param[in] mapset mapset name
    \param[in] out output vector map name
-   \param[in] msgout output file for messages or NULL 
 
    \return -1 error
    \return 0 success
  */
 int
-Vect_copy(const char *in, const char *mapset, const char *out, FILE * msgout)
+Vect_copy(const char *in, const char *mapset, const char *out)
 {
     int i, n, ret, type;
     struct Map_info In, Out;
@@ -294,12 +293,11 @@
 
    \param[in] in input vector map name
    \param[in] out output vector map name
-   \param[in] msgout output file for messages or NULL 
 
    \return -1 error
    \return 0 success
  */
-int Vect_rename(const char *in, const char *out, FILE * msgout)
+int Vect_rename(const char *in, const char *out)
 {
     int i, n, ret, type;
     struct Map_info Map;

Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/open.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -445,7 +445,7 @@
 	Map->plus.alloc_upnodes = 0;
 
 	/* Build spatial index from topo */
-	Vect_build_sidx_from_topo(Map, NULL);
+	Vect_build_sidx_from_topo(Map);
     }
 
     return ret;

Modified: grass/trunk/lib/vector/Vlib/remove_areas.c
===================================================================
--- grass/trunk/lib/vector/Vlib/remove_areas.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/remove_areas.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -32,15 +32,13 @@
    \param Map vector map
    \param thresh maximum area size for removed areas
    \param Err vector map where removed lines and centroids are written
-   \param msgout file pointer where messages will be written or NULL
    \param removed_area  pointer to where total size of removed area is stored or NULL
 
    \return number of removed areas 
  */
 int
 Vect_remove_small_areas(struct Map_info *Map, double thresh,
-			struct Map_info *Err, FILE * msgout,
-			double *removed_area)
+			struct Map_info *Err, double *removed_area)
 {
     int area;
     int nremoved = 0;
@@ -55,9 +53,6 @@
     Points = Vect_new_line_struct();
     Cats = Vect_new_cats_struct();
 
-    if (msgout)
-	fprintf(msgout, "%s: %5d", _("Removed areas"), nremoved);
-
     for (area = 1; area <= Vect_get_num_areas(Map); area++) {
 	int i, j, centroid, dissolve_neighbour;
 	double length, size;
@@ -176,13 +171,7 @@
 	}
 
 	nremoved++;
-	if (msgout) {
-	    fprintf(msgout, "\r%s: %5d", _("Removed areas"), nremoved);
-	    fflush(stderr);
-	}
     }
-    if (msgout)
-	fprintf(stderr, "\n");
 
     if (removed_area)
 	*removed_area = size_removed;

Modified: grass/trunk/lib/vector/Vlib/remove_duplicates.c
===================================================================
--- grass/trunk/lib/vector/Vlib/remove_duplicates.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/remove_duplicates.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -31,13 +31,11 @@
    \param Map vector map where duplicate lines will be deleted
    \param type type of line to be delete
    \param Err vector map where duplicate lines will be written or NULL
-   \param msgout file pointer where messages will be written or NULL
 
    \return void
  */
 void
-Vect_remove_duplicates(struct Map_info *Map, int type, struct Map_info *Err,
-		       FILE * msgout)
+Vect_remove_duplicates(struct Map_info *Map, int type, struct Map_info *Err)
 {
     struct line_pnts *APoints, *BPoints;
     struct line_cats *ACats, *BCats, *Cats;
@@ -65,9 +63,6 @@
 
     ndupl = 0;
 
-    if (msgout)
-	fprintf(msgout, "%s: %5d", _("Duplicates"), ndupl);
-
     for (i = 1; i <= nlines; i++) {
 	if (!Vect_line_alive(Map, i))
 	    continue;
@@ -113,20 +108,11 @@
 
 	    ndupl++;
 
-	    if (msgout) {
-		fprintf(msgout, "\r%s: %5d", _("Duplicates"), ndupl);
-		fflush(msgout);
-	    }
-
 	    break;		/* line was deleted -> take the next one */
 	}
 	nlines = Vect_get_num_lines(Map);	/* For future when lines with cats will be rewritten */
 	G_debug(3, "nlines =  %d\n", nlines);
     }
-    if (msgout)
-	fprintf(msgout, "\n");
-
-    return;
 }
 
 /*!

Modified: grass/trunk/lib/vector/Vlib/select.c
===================================================================
--- grass/trunk/lib/vector/Vlib/select.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/select.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -50,7 +50,7 @@
 
     if (!(plus->Spidx_built)) {
 	G_debug(3, "Building spatial index.");
-	Vect_build_sidx_from_topo(Map, NULL);
+	Vect_build_sidx_from_topo(Map);
     }
 
     list->n_values = 0;
@@ -100,7 +100,7 @@
 
     if (!(Map->plus.Spidx_built)) {
 	G_debug(3, "Building spatial index.");
-	Vect_build_sidx_from_topo(Map, NULL);
+	Vect_build_sidx_from_topo(Map);
     }
 
     dig_select_areas(&(Map->plus), Box, list);
@@ -137,7 +137,7 @@
 
     if (!(Map->plus.Spidx_built)) {
 	G_debug(3, "Building spatial index.");
-	Vect_build_sidx_from_topo(Map, NULL);
+	Vect_build_sidx_from_topo(Map);
     }
 
     dig_select_isles(&(Map->plus), Box, list);
@@ -169,7 +169,7 @@
 
     if (!(plus->Spidx_built)) {
 	G_debug(3, "Building spatial index.");
-	Vect_build_sidx_from_topo(Map, NULL);
+	Vect_build_sidx_from_topo(Map);
     }
 
     list->n_values = 0;

Modified: grass/trunk/lib/vector/Vlib/sindex.c
===================================================================
--- grass/trunk/lib/vector/Vlib/sindex.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/sindex.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -121,14 +121,14 @@
    \return 0 OK
    \return 1 error
  */
-int Vect_build_spatial_index(struct Map_info *Map, FILE * msgout)
+int Vect_build_spatial_index(struct Map_info *Map)
 {
     if (Map->level < 2) {
 	G_fatal_error(_("Unable to build spatial index from topology, "
 			"vector map is not opened at topo level 2"));
     }
     if (!(Map->plus.Spidx_built)) {
-	return (Vect_build_sidx_from_topo(Map, msgout));
+	return (Vect_build_sidx_from_topo(Map));
     }
     return 0;
 }
@@ -137,12 +137,11 @@
    \brief Create spatial index from topo if necessary
 
    \param Map pointer to vector map
-   \param msgout print progress here
 
    \return 0 OK
    \return 1 error
  */
-int Vect_build_sidx_from_topo(struct Map_info *Map, FILE * msgout)
+int Vect_build_sidx_from_topo(struct Map_info *Map)
 {
     int i, total, done;
     struct Plus_head *plus;
@@ -162,7 +161,7 @@
 
     /* Nodes */
     for (i = 1; i <= plus->n_nodes; i++) {
-	G_percent2(i, total, 1, msgout);
+	G_percent(i, total, 1);
 
 	Node = plus->Node[i];
 	if (!Node)
@@ -174,7 +173,7 @@
     /* Lines */
     done = plus->n_nodes;
     for (i = 1; i <= plus->n_lines; i++) {
-	G_percent2(done + i, total, 1, msgout);
+	G_percent(done + i, total, 1);
 
 	Line = plus->Line[i];
 	if (!Line)
@@ -193,7 +192,7 @@
     /* Areas */
     done += plus->n_lines;
     for (i = 1; i <= plus->n_areas; i++) {
-	G_percent2(done + i, total, 1, msgout);
+	G_percent(done + i, total, 1);
 
 	Area = plus->Area[i];
 	if (!Area)
@@ -212,7 +211,7 @@
     /* Isles */
     done += plus->n_areas;
     for (i = 1; i <= plus->n_isles; i++) {
-	G_percent2(done + i, total, 1, msgout);
+	G_percent(done + i, total, 1);
 
 	Isle = plus->Isle[i];
 	if (!Isle)

Modified: grass/trunk/lib/vector/Vlib/snap.c
===================================================================
--- grass/trunk/lib/vector/Vlib/snap.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/Vlib/snap.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -62,7 +62,6 @@
  * \param[in] List_lines list of lines to snap
  * \param[in] thresh threshold in which snap vertices
  * \param[out] Err vector map where lines representing snap are written or NULL
- * \param[out] msgout file pointer where messages will be written or NULL
  *
  * \return void
  */
@@ -80,13 +79,12 @@
  */
 void
 Vect_snap_lines_list(struct Map_info *Map, struct ilist *List_lines,
-		     double thresh, struct Map_info *Err, FILE * msgout)
+		     double thresh, struct Map_info *Err)
 {
     struct line_pnts *Points, *NPoints;
     struct line_cats *Cats;
     int line, ltype, line_idx;
     double thresh2;
-    int printed;
 
     struct Node *RTree;
     int point;			/* index in points array */
@@ -100,7 +98,6 @@
     struct ilist *List;
     int *Index = NULL;		/* indexes of anchors for vertices */
     int aindex = 0;		/* allocated Index */
-    int width = 26;		/* fprintf width */
 
     if (List_lines->n_values < 1)
 	return;
@@ -118,11 +115,7 @@
     point = 1;			/* index starts from 1 ! */
     nvertices = 0;
     XPnts = NULL;
-    printed = 0;
 
-    if (msgout)
-	fprintf(msgout, "%s...", _("Registering points"));
-
     for (line_idx = 0; line_idx < List_lines->n_values; line_idx++) {
 	int v;
 
@@ -166,21 +159,8 @@
 		point++;
 	    }
 	}
-	if (msgout && printed > 1000) {
-	    fprintf(msgout, "\r%s... %d", _("Registering points"), point - 1);
-	    fflush(msgout);
-	    printed = 0;
-	}
-	printed++;
     }
     npoints = point - 1;
-    if (msgout) {
-	fprintf(msgout,
-		"\r                                               \r");
-	fprintf(msgout, "%-*s: %4d\n", width, _("All vertices"), nvertices);
-	fprintf(msgout, "%-*s: %4d\n", width, _("Registered points"),
-		npoints);
-    }
 
     /* Go through all registered points and if not yet marked mark it as anchor and assign this anchor
      * to all not yet marked points in threshold */
@@ -226,21 +206,12 @@
 	    }
 	}
     }
-    if (msgout) {
-	fprintf(msgout, "%-*s: %4d\n", width, _("Nodes marked as anchor"),
-		nanchors);
-	fprintf(msgout, "%-*s: %4d\n", width, _("Nodes marked to be snapped"),
-		ntosnap);
-    }
 
     /* Go through all lines and: 
      *   1) for all vertices: if not anchor snap it to its anchor
      *   2) for all segments: snap it to all anchors in threshold (except anchors of vertices of course) */
 
-    printed = 0;
     nsnapped = ncreated = 0;
-    if (msgout)
-	fprintf(msgout, "%-*s: %4d", width, _("Snaps"), nsnapped + ncreated);
 
     for (line_idx = 0; line_idx < List_lines->n_values; line_idx++) {
 	int v, spoint, anchor;
@@ -407,22 +378,8 @@
 		Vect_write_line(Err, ltype, Points, Cats);
 	    }
 	}
-
-	if (msgout && printed > 1000) {
-	    fprintf(msgout, "\r%s: %5d  (line = %d)", _("Snaps"),
-		    nsnapped + ncreated, line);
-	    fflush(msgout);
-	    printed = 0;
-	}
-	printed++;
     }				/* for each line */
 
-    if (msgout) {
-	fprintf(msgout, "\r%-*s: %4d\n", width, _("Snapped vertices"),
-		nsnapped);
-	fprintf(msgout, "%-*s: %4d\n", width, _("New vertices"), ncreated);
-    }
-
     Vect_destroy_line_struct(Points);
     Vect_destroy_line_struct(NPoints);
     Vect_destroy_cats_struct(Cats);
@@ -454,13 +411,12 @@
  * \param[in] type type of lines to snap
  * \param[in] thresh threshold in which snap vertices
  * \param[out] Err vector map where lines representing snap are written or NULL
- * \param[out] msgout file pointer where messages will be written or NULL
  *
  * \return void
  */
 void
 Vect_snap_lines(struct Map_info *Map, int type, double thresh,
-		struct Map_info *Err, FILE * msgout)
+		struct Map_info *Err)
 {
     int line, nlines, ltype;
 
@@ -484,7 +440,7 @@
 	Vect_list_append(List, line);
     }
 
-    Vect_snap_lines_list(Map, List, thresh, Err, msgout);
+    Vect_snap_lines_list(Map, List, thresh, Err);
 
     Vect_destroy_list(List);
 

Modified: grass/trunk/lib/vector/vedit/select.c
===================================================================
--- grass/trunk/lib/vector/vedit/select.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/lib/vector/vedit/select.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -91,7 +91,7 @@
 	    thresh_tmp = fabs(thresh);
 
 	    /* select dangles shorter than 'thresh_tmp' */
-	    Vect_select_dangles(Map, type, thresh_tmp, NULL, List_dangle);
+	    Vect_select_dangles(Map, type, thresh_tmp, List_dangle);
 
 	    if (thresh <= 0.0) {	/* shorter than */
 		for (i = 0; i < List_dangle->n_values; i++) {

Modified: grass/trunk/raster/r.carve/vect.c
===================================================================
--- grass/trunk/raster/r.carve/vect.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/raster/r.carve/vect.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -42,7 +42,7 @@
 int close_vect(struct Map_info *map, const int build_support)
 {
     if (build_support)
-	Vect_build(map, stderr);
+	Vect_build(map);
 
     Vect_set_release_support(map);
     Vect_close(map);

Modified: grass/trunk/raster/r.contour/main.c
===================================================================
--- grass/trunk/raster/r.contour/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/raster/r.contour/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -198,7 +198,7 @@
 
     db_close_database_shutdown_driver(Driver);
 
-    Vect_build(&Map, stderr);
+    Vect_build(&Map);
     Vect_close(&Map);
 
     G_done_msg("");

Modified: grass/trunk/raster/r.flow/io.c
===================================================================
--- grass/trunk/raster/r.flow/io.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/raster/r.flow/io.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -181,7 +181,7 @@
     /*   if (parm.lgout)
        G_close_cell(lgfd); */
     if (parm.flout) {
-	Vect_build(&fl, stderr);
+	Vect_build(&fl);
 	Vect_close(&fl);
     }
 }

Modified: grass/trunk/raster/r.random/random.c
===================================================================
--- grass/trunk/raster/r.random/random.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/raster/r.random/random.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -251,7 +251,7 @@
     if (theState->outvector) {
 	db_commit_transaction(driver);
 	db_close_database_shutdown_driver(driver);
-	Vect_build(&Out, stderr);
+	Vect_build(&Out);
 	Vect_close(&Out);
     }
     if (theState->outraster)

Modified: grass/trunk/raster/r.to.vect/main.c
===================================================================
--- grass/trunk/raster/r.to.vect/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/raster/r.to.vect/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -240,7 +240,7 @@
     G_close_cell(input_fd);
 
     if (!no_topol->answer)
-	Vect_build(&Map, stderr);
+	Vect_build(&Map);
 
 
     /* insert cats and optionally labels if raster cats were used */

Modified: grass/trunk/vector/lidar/v.outlier/main.c
===================================================================
--- grass/trunk/vector/lidar/v.outlier/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/lidar/v.outlier/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -352,7 +352,7 @@
     Vect_close(&Out);
     Vect_close(&Outlier);
     if (qgis_opt->answer) {
-	Vect_build(&Qgis, stderr);
+	Vect_build(&Qgis);
 	Vect_close(&Qgis);
     }
 

Modified: grass/trunk/vector/v.buffer/main.c
===================================================================
--- grass/trunk/vector/v.buffer/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.buffer/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -222,8 +222,8 @@
     Vect_close(In);
 
     G_message(_("Rebuilding topology..."));
-    Vect_build_partial(Out, GV_BUILD_NONE, NULL);
-    Vect_build(Out, stderr);
+    Vect_build_partial(Out, GV_BUILD_NONE);
+    Vect_build(Out);
     Vect_close(Out);
 }
 
@@ -601,7 +601,7 @@
 
     /* Break lines */
     G_message(_("Building parts of topology..."));
-    Vect_build_partial(&Out, GV_BUILD_BASE, stderr);
+    Vect_build_partial(&Out, GV_BUILD_BASE);
 
     /* Warning: snapping must be done, otherwise colinear boundaries are not broken and 
      * topology cannot be built (the same angle). But snapping distance must be very, very 
@@ -613,13 +613,13 @@
      * the same angles of lines at nodes, don't forget about LongLat data, probably
      * calculate different threshold for each map, depending on map's bounding box */
     G_message(_("Snapping boundaries..."));
-    Vect_snap_lines(&Out, GV_BOUNDARY, 1e-7, NULL, stderr);
+    Vect_snap_lines(&Out, GV_BOUNDARY, 1e-7, NULL);
 
     G_message(_("Breaking boundaries..."));
-    Vect_break_lines(&Out, GV_BOUNDARY, NULL, stderr);
+    Vect_break_lines(&Out, GV_BOUNDARY, NULL);
 
     G_message(_("Removing duplicates..."));
-    Vect_remove_duplicates(&Out, GV_BOUNDARY, NULL, stderr);
+    Vect_remove_duplicates(&Out, GV_BOUNDARY, NULL);
 
     /* Dangles and bridges don't seem to be necessary if snapping is small enough. */
     /*
@@ -631,7 +631,7 @@
      */
 
     G_message(_("Attaching islands..."));
-    Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES, stderr);
+    Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES);
 
     /* Calculate new centroids for all areas */
     nareas = Vect_get_num_areas(&Out);
@@ -745,7 +745,7 @@
     }
 
     G_message(_("Attaching centroids..."));
-    Vect_build_partial(&Out, GV_BUILD_CENTROIDS, stderr);
+    Vect_build_partial(&Out, GV_BUILD_CENTROIDS);
 
     stop(&In, &Out);
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.build/main.c
===================================================================
--- grass/trunk/vector/v.build/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.build/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -82,7 +82,7 @@
 	Vect_set_open_level(1);
 	Vect_open_old(&Map, map_opt->answer, G_mapset());
 
-	Vect_build(&Map, stderr);
+	Vect_build(&Map);
     }
     /* dump topology */
     if (dump || sdump || cdump) {
@@ -150,7 +150,7 @@
 	    }
 	}
 
-	Vect_build(&Err, stderr);
+	Vect_build(&Err);
 	Vect_close(&Err);
     }
 

Modified: grass/trunk/vector/v.build.polylines/main.c
===================================================================
--- grass/trunk/vector/v.build.polylines/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.build.polylines/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -213,11 +213,7 @@
     G_free(lines_visited);
     Vect_close(&map);
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Out, stderr);
-    else
-	Vect_build(&Out, NULL);
-
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.category/main.c
===================================================================
--- grass/trunk/vector/v.category/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.category/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -483,12 +483,7 @@
     if (option == O_ADD || option == O_DEL || option == O_CHFIELD ||
 	option == O_SUM) {
 	Vect_copy_tables(&In, &Out, 0);
-	if (G_verbose() > G_verbose_min()) {
-	    Vect_build(&Out, stderr);
-	}
-	else {
-	    Vect_build(&Out, NULL);
-	}
+	Vect_build(&Out);
 	Vect_close(&Out);
     }
     Vect_close(&In);

Modified: grass/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.clean/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -35,7 +35,6 @@
     int level;
     int count;
     double size;
-    FILE *output;		/* NULL | stderr */
 
     G_gisinit(argv[0]);
 
@@ -277,32 +276,27 @@
     Vect_set_release_support(&In);
     Vect_close(&In);
 
-    if (G_verbose() > G_verbose_min())
-	output = stderr;
-    else
-	output = NULL;
-
     /* Start with GV_BUILD_NONE and for each tool use unly the necessary level! */
 
     for (i = 0; i < ntools; i++) {
 	if (tools[i] == TOOL_RMDAC || tools[i] == TOOL_PRUNE ||
 	    tools[i] == TOOL_RMAREA) {
 	    if (Vect_get_built(&Out) >= GV_BUILD_CENTROIDS) {
-		Vect_build_partial(&Out, GV_BUILD_CENTROIDS, NULL);
+		Vect_build_partial(&Out, GV_BUILD_CENTROIDS);
 	    }
 	    else {
 		G_important_message(_("Rebuilding parts of topology..."));
-		Vect_build_partial(&Out, GV_BUILD_CENTROIDS, output);
+		Vect_build_partial(&Out, GV_BUILD_CENTROIDS);
 		G_message(SEP);
 	    }
 	}
 	else {
 	    if (Vect_get_built(&Out) >= GV_BUILD_BASE) {
-		Vect_build_partial(&Out, GV_BUILD_BASE, NULL);
+		Vect_build_partial(&Out, GV_BUILD_BASE);
 	    }
 	    else {
 		G_important_message(_("Rebuilding parts of topology..."));
-		Vect_build_partial(&Out, GV_BUILD_BASE, output);
+		Vect_build_partial(&Out, GV_BUILD_BASE);
 		G_message(SEP);
 	    }
 	}
@@ -310,27 +304,27 @@
 	switch (tools[i]) {
 	case TOOL_BREAK:
 	    G_message(_("Tool: Break lines at intersections"));
-	    Vect_break_lines(&Out, otype, pErr, output);
+	    Vect_break_lines(&Out, otype, pErr);
 	    break;
 	case TOOL_RMDUPL:
 	    G_message(_("Tool: Remove duplicates"));
-	    Vect_remove_duplicates(&Out, otype, pErr, output);
+	    Vect_remove_duplicates(&Out, otype, pErr);
 	    break;
 	case TOOL_RMDANGLE:
 	    G_message(_("Tool: Remove dangles"));
-	    Vect_remove_dangles(&Out, otype, threshs[i], pErr, output);
+	    Vect_remove_dangles(&Out, otype, threshs[i], pErr);
 	    break;
 	case TOOL_CHDANGLE:
 	    G_message(_("Tool: Change type of boundary dangles"));
-	    Vect_chtype_dangles(&Out, threshs[i], pErr, stderr);
+	    Vect_chtype_dangles(&Out, threshs[i], pErr);
 	    break;
 	case TOOL_RMBRIDGE:
 	    G_message(_("Tool: Remove bridges"));
-	    Vect_remove_bridges(&Out, pErr, output);
+	    Vect_remove_bridges(&Out, pErr);
 	    break;
 	case TOOL_CHBRIDGE:
 	    G_message(_("Tool: Change type of boundary bridges"));
-	    Vect_chtype_bridges(&Out, pErr, output);
+	    Vect_chtype_bridges(&Out, pErr);
 	    break;
 	case TOOL_RMDAC:
 	    G_message(_("Tool: Remove duplicate area centroids"));
@@ -338,11 +332,11 @@
 	    break;
 	case TOOL_SNAP:
 	    G_message(_("Tool: Snap line to vertex in threshold"));
-	    Vect_snap_lines(&Out, otype, threshs[i], pErr, output);
+	    Vect_snap_lines(&Out, otype, threshs[i], pErr);
 	    break;
 	case TOOL_BPOL:
 	    G_message(_("Tool: Break polygons"));
-	    Vect_break_polygons(&Out, otype, pErr, stderr);
+	    Vect_break_polygons(&Out, otype, pErr);
 	    break;
 	case TOOL_PRUNE:
 	    G_message(_("Tool: Prune lines/boundaries"));
@@ -351,14 +345,13 @@
 	case TOOL_RMAREA:
 	    G_message(_("Tool: Remove small areas"));
 	    count =
-		Vect_remove_small_areas(&Out, threshs[i], pErr, output,
-					&size);
+		Vect_remove_small_areas(&Out, threshs[i], pErr, &size);
 	    G_message(_("%d areas of total size %g removed"), count, size);
 	    break;
 	case TOOL_RMSA:
 	    G_message(_("Tool: Remove small angles at nodes"));
 	    count =
-		Vect_clean_small_angles_at_nodes(&Out, otype, pErr, output);
+		Vect_clean_small_angles_at_nodes(&Out, otype, pErr);
 	    G_message(_("%d modifications done"), count);
 	    break;
 	case TOOL_RMLINE:
@@ -373,18 +366,18 @@
 
     if (!no_build_flag->answer) {
 	G_important_message(_("Rebuilding topology for output vector map..."));
-	Vect_build_partial(&Out, GV_BUILD_NONE, NULL);
-	Vect_build(&Out, output);
+	Vect_build_partial(&Out, GV_BUILD_NONE);
+	Vect_build(&Out);
     }
     else {
-	Vect_build_partial(&Out, GV_BUILD_NONE, NULL);	/* -> topo not saved */
+	Vect_build_partial(&Out, GV_BUILD_NONE);	/* -> topo not saved */
     }
     Vect_close(&Out);
 
     if (pErr) {
 	G_message(SEP);
 	G_important_message(_("Building topology for error vector map..."));
-	Vect_build(pErr, output);
+	Vect_build(pErr);
 	Vect_close(pErr);
     }
 

Modified: grass/trunk/vector/v.clean/prune.c
===================================================================
--- grass/trunk/vector/v.clean/prune.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.clean/prune.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -56,11 +56,8 @@
     G_debug(1, "nlines =  %d", nlines);
 
     if (Err)
-	Vect_build_partial(Err, GV_BUILD_BASE, NULL);
+	Vect_build_partial(Err, GV_BUILD_BASE);
 
-    if (G_verbose() > G_verbose_min())
-	fprintf(stderr, _("Removed vertices: %5d"), nremoved);
-
     for (line = 1; line <= nlines; line++) {
 
 	if (!Vect_line_alive(Out, line))
@@ -210,11 +207,6 @@
 	    nremoved += norig - TPoints->n_points;
 	    G_debug(4, "%d vertices removed", norig - TPoints->n_points);
 	}
-
-	if (G_verbose() > G_verbose_min())
-	    fprintf(stderr, "\r%s: %5d", _("Removed vertices"), nremoved);
-
-	fflush(stderr);
     }
 
     G_important_message(_("\n%d vertices from input %d (vertices of given type) removed, i.e. %.2f %%"),

Modified: grass/trunk/vector/v.convert/old2new.c
===================================================================
--- grass/trunk/vector/v.convert/old2new.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.convert/old2new.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -141,7 +141,7 @@
     /* Convert dig_cats to table */
     attributes(in, &Mapout);
 
-    Vect_build(&Mapout, stderr);
+    Vect_build(&Mapout);
     Vect_close(&Mapout);
 
     fclose(Digin);

Modified: grass/trunk/vector/v.digit/centre.c
===================================================================
--- grass/trunk/vector/v.digit/centre.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.digit/centre.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -168,8 +168,8 @@
 void end(void)
 {
     G_debug(1, "end()");
-    Vect_build_partial(&Map, GV_BUILD_NONE, NULL);
-    Vect_build(&Map, stdout);
+    Vect_build_partial(&Map, GV_BUILD_NONE);
+    Vect_build(&Map);
     Vect_close(&Map);
 
     if (1 == G_put_window(&GRegion))

Modified: grass/trunk/vector/v.digit/main.c
===================================================================
--- grass/trunk/vector/v.digit/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.digit/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -192,7 +192,7 @@
 	if (new_f->answer) {
 	    G_message(_("New empty map created."));
 	    Vect_open_new(&Map, map_opt->answer, 0);
-	    Vect_build(&Map, NULL);
+	    Vect_build(&Map);
 	    Vect_close(&Map);
 	    Vect_open_update(&Map, map_opt->answer, G_mapset());
 	}

Modified: grass/trunk/vector/v.distance/main.c
===================================================================
--- grass/trunk/vector/v.distance/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.distance/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -1131,10 +1131,7 @@
 
     Vect_close(&From);
     if (Outp != NULL) {
-	if (G_verbose() > G_verbose_min())
-	    Vect_build(Outp, stderr);
-	else
-	    Vect_build(Outp, NULL);
+	Vect_build(Outp);
 	Vect_close(Outp);
     }
 

Modified: grass/trunk/vector/v.drape/main.c
===================================================================
--- grass/trunk/vector/v.drape/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.drape/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -267,13 +267,7 @@
     /* close input vector */
     Vect_close(&In);
     /* build topology for output vector */
-    if (G_verbose() > G_verbose_min()) {
-	Vect_build(&Out, stderr);
-    }
-    else {
-	Vect_build(&Out, NULL);
-    }
-
+    Vect_build(&Out);
     /* close output vector */
     Vect_close(&Out);
 

Modified: grass/trunk/vector/v.edit/a2b.c
===================================================================
--- grass/trunk/vector/v.edit/a2b.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.edit/a2b.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -299,7 +299,7 @@
 
     nlines_modified = 0;
 
-    Vect_build_partial(Map, GV_BUILD_BASE, NULL);
+    Vect_build_partial(Map, GV_BUILD_BASE);
     nlines = Vect_get_num_lines(Map);
 
     for (line = 1; line <= nlines; line++) {

Modified: grass/trunk/vector/v.edit/main.c
===================================================================
--- grass/trunk/vector/v.edit/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.edit/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -286,8 +286,7 @@
 				    coord, thresh[THRESH_COORDS], NULL);
 	}
 	else {
-	    ret = Vect_break_lines_list(&Map, List, NULL,
-					GV_LINES, NULL, NULL);
+	    ret = Vect_break_lines_list(&Map, List, NULL, GV_LINES, NULL);
 	}
 	G_message(_("%d lines broken"), ret);
 	break;
@@ -410,11 +409,8 @@
     /* build topology only if requested or if tool!=select */
     if (!(action_mode == MODE_SELECT || params.topo->answer == 1 ||
 	 !MODE_NONE)) {
-	Vect_build_partial(&Map, GV_BUILD_NONE, NULL);
-	if (G_verbose() > G_verbose_min())
-	    Vect_build(&Map, stderr);
-	else
-	    Vect_build(&Map, NULL);
+	Vect_build_partial(&Map, GV_BUILD_NONE);
+	Vect_build(&Map);
     }
 
     if (List)

Modified: grass/trunk/vector/v.edit/snap.c
===================================================================
--- grass/trunk/vector/v.edit/snap.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.edit/snap.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -31,21 +31,13 @@
  */
 int snap_lines(struct Map_info *Map, struct ilist *List, double thresh)
 {
-
-    FILE *output;
-
-    if (G_verbose() > G_verbose_min()) {
+    if (G_verbose() > G_verbose_min())
 	G_important_message(SEP);
-	output = stderr;
-    }
-    else
-	output = NULL;
 
-    Vect_snap_lines_list(Map, List, thresh, NULL, output);
+    Vect_snap_lines_list(Map, List, thresh, NULL);
 
-    if (G_verbose() > G_verbose_min()) {
+    if (G_verbose() > G_verbose_min())
 	G_important_message(SEP);
-    }
 
     return 1;
 }

Modified: grass/trunk/vector/v.external/main.c
===================================================================
--- grass/trunk/vector/v.external/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.external/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -158,7 +158,7 @@
     fclose(fd);
 
     Vect_open_old(&Map, out_opt->answer, G_mapset());
-    Vect_build(&Map, stderr);
+    Vect_build(&Map);
     Vect_close(&Map);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.extract/main.c
===================================================================
--- grass/trunk/vector/v.extract/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.extract/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -369,12 +369,8 @@
     xtract_line(cat_count, cat_array, &In, &Out, new_cat, type, dissolve,
 		field, type_only, r_flag->answer ? 1 : 0);
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Out, stderr);
-    else
-	Vect_build(&Out, NULL);
+    Vect_build(&Out);
 
-
     /* Copy tables */
     if (!t_flag->answer) {
 	int nlines, line;
@@ -500,11 +496,8 @@
 		Vect_delete_line(&Out, line);
 	    }
 	}
-	Vect_build_partial(&Out, GV_BUILD_NONE, NULL);
-	if (G_verbose() > G_verbose_min())
-	    Vect_build(&Out, stderr);
-	else
-	    Vect_build(&Out, NULL);
+	Vect_build_partial(&Out, GV_BUILD_NONE);
+	Vect_build(&Out);
     }
 
     Vect_close(&Out);

Modified: grass/trunk/vector/v.extrude/main.c
===================================================================
--- grass/trunk/vector/v.extrude/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.extrude/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -61,6 +61,7 @@
     dbColumn *column;
     dbValue *value;
     int more;
+    char *comment;
 
     module = G_define_module();
     module->keywords = _("vector, geometry, 3D");
@@ -324,14 +325,9 @@
 	db_shutdown_driver(driver);
     }
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Out, stderr);
-    else
-	Vect_build(&Out, NULL);
+    Vect_build(&Out);
 
     /* header */
-    char *comment;
-
     G_asprintf(&comment, "Generated by %s from vector map <%s>",
 	       G_program_name(), old->answer);
     Vect_set_comment(&Out, comment);

Modified: grass/trunk/vector/v.generalize/main.c
===================================================================
--- grass/trunk/vector/v.generalize/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.generalize/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -432,7 +432,7 @@
     /* remove incorrect boundaries
      * they may occur only if they were generalized */
     if (mask_type & GV_BOUNDARY) {
-	Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES, NULL);
+	Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES);
 	n_lines = Vect_get_num_lines(&Out);
 	for (i = 1; i <= n_lines; i++) {
 	    type = Vect_read_line(&Out, Points, Cats, i);
@@ -452,7 +452,7 @@
      * were generalized
      */
     if ((mask_type & GV_BOUNDARY) && method != DISPLACEMENT) {
-	Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES, NULL);
+	Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES);
 	n_areas = Vect_get_num_areas(&Out);
 	for (i = 1; i <= n_areas; i++) {
 	    /* skip dead area */
@@ -472,14 +472,11 @@
 
     /* remove small areas */
     if (rs_flag->answer && simplification && (mask_type & GV_AREA)) {
-	Vect_build_partial(&Out, GV_BUILD_CENTROIDS, NULL);
-	Vect_remove_small_areas(&Out, thresh, NULL, NULL, &slide);
+	Vect_build_partial(&Out, GV_BUILD_CENTROIDS);
+	Vect_remove_small_areas(&Out, thresh, NULL, &slide);
     }
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Out, stderr);
-    else
-	Vect_build(&Out, NULL);
+    Vect_build(&Out);
 
     /* finally copy tables */
     if (ca_flag->answer)

Modified: grass/trunk/vector/v.hull/main.c
===================================================================
--- grass/trunk/vector/v.hull/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.hull/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -368,7 +368,7 @@
 
 
     /* clean up and bye bye */
-    Vect_build(&Map, stderr);
+    Vect_build(&Map);
     Vect_close(&Map);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.in.ascii/main.c
===================================================================
--- grass/trunk/vector/v.in.ascii/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.in.ascii/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -221,7 +221,7 @@
     Vect_hist_command(&Map);
 
     if (e_flag->answer) {
-	Vect_build(&Map, stderr);
+	Vect_build(&Map);
 	Vect_close(&Map);
 	exit(EXIT_SUCCESS);
     }
@@ -535,7 +535,7 @@
 	Vect_close(&Map);
     }
     else {
-	Vect_build(&Map, stderr);
+	Vect_build(&Map);
 	Vect_close(&Map);
     }
 

Modified: grass/trunk/vector/v.in.db/main.c
===================================================================
--- grass/trunk/vector/v.in.db/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.in.db/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -223,11 +223,7 @@
 			    fi->database, fi->driver);
     }
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Map, stderr);
-    else
-	Vect_build(&Map, NULL);
-
+    Vect_build(&Map);
     Vect_close(&Map);
 
     G_done_msg(" ");

Modified: grass/trunk/vector/v.in.dxf/main.c
===================================================================
--- grass/trunk/vector/v.in.dxf/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.in.dxf/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -163,7 +163,7 @@
 	if (found_layers) {
 	    if (Vect_open_old(Map, output, G_mapset())) {
 		if (!flag_topo)
-		    if (!Vect_build(Map, stderr))
+		    if (!Vect_build(Map))
 			G_warning(_("Building topology failed"));
 		Vect_close(Map);
 	    }

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.in.ogr/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -94,7 +94,6 @@
     int navailable_layers;
     int layer_id;
     int overwrite;
-    FILE *output;
 
     G_gisinit(argv[0]);
 
@@ -246,11 +245,6 @@
 
     OGRRegisterAll();
 
-    if (G_verbose() > G_verbose_min())
-	output = stderr;
-    else
-	output = NULL;
-
     /* list supported formats */
     if (formats_flag->answer) {
 	int iDriver;
@@ -888,7 +882,7 @@
     G_message("%s", separator);
 
     /* TODO: is it necessary to build here? probably not, consumes time */
-    Vect_build(&Map, output);
+    Vect_build(&Map);
 
     if (!no_clean_flag->answer &&
 	Vect_get_num_primitives(&Map, GV_BOUNDARY) > 0) {
@@ -908,12 +902,12 @@
 	Vect_set_release_support(&Map);
 	Vect_close(&Map);
 	Vect_open_update(&Map, out_opt->answer, G_mapset());
-	Vect_build_partial(&Map, GV_BUILD_BASE, output);	/* Downgrade topo */
+	Vect_build_partial(&Map, GV_BUILD_BASE);	/* Downgrade topo */
 
 	if (snap >= 0) {
 	    G_message("%s", separator);
 	    G_message(_("Snap boundaries (threshold = %.3e):"), snap);
-	    Vect_snap_lines(&Map, GV_BOUNDARY, snap, NULL, output);
+	    Vect_snap_lines(&Map, GV_BOUNDARY, snap, NULL);
 	}
 
 	/* It is not to clean to snap centroids, but I have seen data with 2 duplicate polygons
@@ -927,12 +921,12 @@
 
 	G_message("%s", separator);
 	G_message(_("Break polygons:"));
-	Vect_break_polygons(&Map, GV_BOUNDARY, NULL, output);
+	Vect_break_polygons(&Map, GV_BOUNDARY, NULL);
 
 	/* It is important to remove also duplicate centroids in case of duplicate imput polygons */
 	G_message("%s", separator);
 	G_message(_("Remove duplicates:"));
-	Vect_remove_duplicates(&Map, GV_BOUNDARY | GV_CENTROID, NULL, output);
+	Vect_remove_duplicates(&Map, GV_BOUNDARY | GV_CENTROID, NULL);
 
 	/* Vect_clean_small_angles_at_nodes() can change the geometry so that new intersections
 	 * are created. We must call Vect_break_lines(), Vect_remove_duplicates()
@@ -940,42 +934,41 @@
 	do {
 	    G_message("%s", separator);
 	    G_message(_("Break boundaries:"));
-	    Vect_break_lines(&Map, GV_BOUNDARY, NULL, output);
+	    Vect_break_lines(&Map, GV_BOUNDARY, NULL);
 
 	    G_message("%s", separator);
 	    G_message(_("Remove duplicates:"));
-	    Vect_remove_duplicates(&Map, GV_BOUNDARY, NULL, output);
+	    Vect_remove_duplicates(&Map, GV_BOUNDARY, NULL);
 
 	    G_message("%s", separator);
 	    G_message(_("Clean boundaries at nodes:"));
 	    nmodif =
-		Vect_clean_small_angles_at_nodes(&Map, GV_BOUNDARY, NULL,
-						 output);
+		Vect_clean_small_angles_at_nodes(&Map, GV_BOUNDARY, NULL);
 	} while (nmodif > 0);
 
 	G_message("%s", separator);
 	if (type & GV_BOUNDARY) {	/* that means lines were converted boundaries */
 	    G_message(_("Change boundary dangles to lines:"));
-	    Vect_chtype_dangles(&Map, -1.0, NULL, output);
+	    Vect_chtype_dangles(&Map, -1.0, NULL);
 	}
 	else {
 	    G_message(_("Change dangles to lines:"));
-	    Vect_remove_dangles(&Map, GV_BOUNDARY, -1.0, NULL, output);
+	    Vect_remove_dangles(&Map, GV_BOUNDARY, -1.0, NULL);
 	}
 
 	G_message("%s", separator);
 	if (type & GV_BOUNDARY) {
 	    G_message(_("Change boundary bridges to lines:"));
-	    Vect_chtype_bridges(&Map, NULL, output);
+	    Vect_chtype_bridges(&Map, NULL);
 	}
 	else {
 	    G_message(_("Remove bridges:"));
-	    Vect_remove_bridges(&Map, NULL, output);
+	    Vect_remove_bridges(&Map, NULL);
 	}
 
 	/* Boundaries are hopefully clean, build areas */
 	G_message("%s", separator);
-	Vect_build_partial(&Map, GV_BUILD_ATTACH_ISLES, output);
+	Vect_build_partial(&Map, GV_BUILD_ATTACH_ISLES);
 
 	/* Calculate new centroids for all areas, centroids have the same id as area */
 	ncentr = Vect_get_num_areas(&Map);
@@ -1059,10 +1052,10 @@
 	if (Centr)
 	    G_free(Centr);
 	G_message("%s", separator);
-	Vect_build_partial(&Map, GV_BUILD_NONE, NULL);
+	Vect_build_partial(&Map, GV_BUILD_NONE);
 
 	G_message("%s", separator);
-	Vect_build(&Map, output);
+	Vect_build(&Map);
 
 	G_message("%s", separator);
 

Modified: grass/trunk/vector/v.in.region/main.c
===================================================================
--- grass/trunk/vector/v.in.region/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.in.region/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -94,7 +94,7 @@
 	Vect_write_line(&Out, GV_LINE, Points, Cats);
     }
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.in.sites/main.c
===================================================================
--- grass/trunk/vector/v.in.sites/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.in.sites/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -247,7 +247,7 @@
     db_close_database(driver);
     db_shutdown_driver(driver);
 
-    Vect_build(&Map, stderr);
+    Vect_build(&Map);
     Vect_close(&Map);
 
     G_site_free_struct(s);

Modified: grass/trunk/vector/v.kcv/main.c
===================================================================
--- grass/trunk/vector/v.kcv/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.kcv/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -253,7 +253,7 @@
 
     db_close_database_shutdown_driver(Driver);
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.kernel/main.c
===================================================================
--- grass/trunk/vector/v.kernel/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.kernel/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -384,7 +384,7 @@
 
 	Vect_close(&Net);
 
-	Vect_build(&Out, stderr);
+	Vect_build(&Out);
 	Vect_close(&Out);
     }
     else {

Modified: grass/trunk/vector/v.lrs/v.lrs.create/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.create/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.lrs/v.lrs.create/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -861,13 +861,13 @@
     Vect_close(&PMap);
 
     G_message(_("Building topology for output (out_lines) map..."));
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     /* Write errors */
     if (err_opt->answer) {
 	G_message(_("Building topology for error (err) map..."));
-	Vect_build(&EMap, stderr);
+	Vect_build(&EMap);
 	Vect_close(&EMap);
     }
 

Modified: grass/trunk/vector/v.lrs/v.lrs.label/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.label/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.lrs/v.lrs.label/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -513,7 +513,7 @@
     }
 
     db_close_database(rsdriver);
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, close ... */
     Vect_close(&In);

Modified: grass/trunk/vector/v.lrs/v.lrs.segment/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.segment/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.lrs/v.lrs.segment/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -334,7 +334,7 @@
     }
 
     db_close_database(rsdriver);
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, close ... */
     Vect_close(&In);

Modified: grass/trunk/vector/v.mkgrid/main.c
===================================================================
--- grass/trunk/vector/v.mkgrid/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.mkgrid/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -276,10 +276,7 @@
 
     db_close_database_shutdown_driver(Driver);
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Map, stderr);
-    else
-	Vect_build(&Map, NULL);
+    Vect_build(&Map);
     Vect_close(&Map);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.net/connect.c
===================================================================
--- grass/trunk/vector/v.net/connect.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net/connect.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -54,7 +54,7 @@
 
     /* rewrite all primitives to output file */
     Vect_copy_map_lines(In, Out);
-    Vect_build_partial(Out, GV_BUILD_BASE, NULL);
+    Vect_build_partial(Out, GV_BUILD_BASE);
 
     /* go thorough all points in point map and write a new arcs if missing */
     while ((type = Vect_read_next_line(Pnts, Points, Cats)) >= 0) {

Modified: grass/trunk/vector/v.net/main.c
===================================================================
--- grass/trunk/vector/v.net/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -185,11 +185,8 @@
 	Vect_copy_tables(&In, &Out, 0);
 
 	/* support */
-	Vect_build_partial(&Out, GV_BUILD_NONE, NULL);
-	if (G_verbose() > G_verbose_min())
-	    Vect_build(&Out, stderr);
-	else
-	    Vect_build(&Out, NULL);
+	Vect_build_partial(&Out, GV_BUILD_NONE);
+	Vect_build(&Out);
 
 	Vect_close(&In);
 	Vect_close(&Out);

Modified: grass/trunk/vector/v.net.alloc/main.c
===================================================================
--- grass/trunk/vector/v.net.alloc/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net.alloc/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -360,7 +360,7 @@
 	}
     }
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, ... */
     G_free(Nodes);

Modified: grass/trunk/vector/v.net.iso/main.c
===================================================================
--- grass/trunk/vector/v.net.iso/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net.iso/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -520,7 +520,7 @@
 	}
     }
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, ... */
     G_free(Nodes);

Modified: grass/trunk/vector/v.net.path/main.c
===================================================================
--- grass/trunk/vector/v.net.path/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net.path/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -142,7 +142,7 @@
 
     Vect_close(&In);
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.net.salesman/main.c
===================================================================
--- grass/trunk/vector/v.net.salesman/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net.salesman/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -371,7 +371,7 @@
     }
     fprintf(stdout, "\n\n");
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, ... */
     Vect_destroy_list(StArcs);

Modified: grass/trunk/vector/v.net.steiner/main.c
===================================================================
--- grass/trunk/vector/v.net.steiner/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net.steiner/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -629,7 +629,7 @@
 
     fprintf(stdout, "\n\n");
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, ... */
     Vect_destroy_list(StArcs);

Modified: grass/trunk/vector/v.net.visibility/main.c
===================================================================
--- grass/trunk/vector/v.net.visibility/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.net.visibility/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -118,11 +118,7 @@
     G_free(points);
     G_free(lines);
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&out, stderr);
-    else
-	Vect_build(&out, NULL);
-
+    Vect_build(&out);
     Vect_close(&out);
     Vect_close(&in);
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.overlay/area_area.c
===================================================================
--- grass/trunk/vector/v.overlay/area_area.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.overlay/area_area.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -29,13 +29,6 @@
     dbString stmt;
     int nmodif;
 
-    FILE *output;
-
-    if (G_verbose() > G_verbose_min())
-	output = stderr;
-    else
-	output = NULL;
-
     Points = Vect_new_line_struct();
     Cats = Vect_new_cats_struct();
 
@@ -44,15 +37,15 @@
      * and Vect_clean_small_angles_at_nodes() until no more small dangles are found */
     do {
 	G_message(_("Breaking lines..."));
-	Vect_break_lines(Out, GV_LINE | GV_BOUNDARY, NULL, output);
+	Vect_break_lines(Out, GV_LINE | GV_BOUNDARY, NULL);
 
 	/* Probably not necessary for LINE x AREA */
 	G_message(_("Removing duplicates..."));
-	Vect_remove_duplicates(Out, GV_BOUNDARY, NULL, output);
+	Vect_remove_duplicates(Out, GV_BOUNDARY, NULL);
 
 	G_message(_("Cleaning boundaries at nodes..."));
 	nmodif =
-	    Vect_clean_small_angles_at_nodes(Out, GV_BOUNDARY, NULL, output);
+	    Vect_clean_small_angles_at_nodes(Out, GV_BOUNDARY, NULL);
     } while (nmodif > 0);
 
     /* ?: May be result of Vect_break_lines() + Vect_remove_duplicates() any dangle or bridge?
@@ -60,7 +53,7 @@
 
     /* Attach islands */
     G_message(_("Attaching islands..."));
-    Vect_build_partial(Out, GV_BUILD_ATTACH_ISLES, output);
+    Vect_build_partial(Out, GV_BUILD_ATTACH_ISLES);
 
 
     /* Calculate new centroids for all areas */
@@ -269,7 +262,7 @@
 
     /* Build topology and remove boundaries with area without centroid on both sides */
     G_message(_("Attaching centroids..."));
-    Vect_build_partial(Out, GV_BUILD_ALL, output);
+    Vect_build_partial(Out, GV_BUILD_ALL);
 
     /* Create a list of lines to be deleted */
     nlines = Vect_get_num_lines(Out);

Modified: grass/trunk/vector/v.overlay/line_area.c
===================================================================
--- grass/trunk/vector/v.overlay/line_area.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.overlay/line_area.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -67,13 +67,10 @@
     db_init_string(&stmt);
 
     G_message(_("Breaking lines..."));
-    if (G_verbose() > G_verbose_min())
-	Vect_break_lines(Out, GV_LINE | GV_BOUNDARY, NULL, stderr);
-    else
-	Vect_break_lines(Out, GV_LINE | GV_BOUNDARY, NULL, NULL);
+    Vect_break_lines(Out, GV_LINE | GV_BOUNDARY, NULL);
 
     /* Basic topology needed only */
-    Vect_build_partial(Out, GV_BUILD_BASE, NULL);
+    Vect_build_partial(Out, GV_BUILD_BASE);
 
     nlines = Vect_get_num_lines(Out);
 

Modified: grass/trunk/vector/v.overlay/main.c
===================================================================
--- grass/trunk/vector/v.overlay/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.overlay/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -461,7 +461,7 @@
 
     G_message(_("Building partial topology..."));
     /* do not print output, because befor cleaning it is nonsense */
-    Vect_build_partial(&Out, GV_BUILD_BASE, NULL);
+    Vect_build_partial(&Out, GV_BUILD_BASE);
 
     /* AREA x AREA */
     if (type[0] == GV_AREA) {
@@ -472,11 +472,8 @@
     }
 
     G_message(_("Rebuilding topology..."));
-    Vect_build_partial(&Out, GV_BUILD_NONE, NULL);
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Out, stderr);
-    else
-	Vect_build(&Out, NULL);
+    Vect_build_partial(&Out, GV_BUILD_NONE);
+    Vect_build(&Out);
     /* Build topology to show the final result and prepare for Vect_close() */
 
     if (driver) {

Modified: grass/trunk/vector/v.parallel/main.c
===================================================================
--- grass/trunk/vector/v.parallel/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.parallel/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -89,7 +89,7 @@
     }
 
     Vect_close(&In);
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.patch/main.c
===================================================================
--- grass/trunk/vector/v.patch/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.patch/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -353,11 +353,7 @@
     Vect_set_map_name(&OutMap, "Output from v.patch");
     Vect_set_person(&OutMap, G_whoami());
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&OutMap, stderr);
-    else
-	Vect_build(&OutMap, NULL);
-
+    Vect_build(&OutMap);
     Vect_close(&OutMap);
 
     if (bbox_name) {
@@ -366,11 +362,7 @@
 	G_important_message("");
 	G_important_message(_("Building topology for vector map <%s>..."),
 			    bbox_name);
-	if (G_verbose() > G_verbose_min())
-	    Vect_build(&BBoxMap, stderr);
-	else
-	    Vect_build(&BBoxMap, NULL);
-
+	Vect_build(&BBoxMap);
 	Vect_close(&BBoxMap);
     }
 

Modified: grass/trunk/vector/v.perturb/main.c
===================================================================
--- grass/trunk/vector/v.perturb/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.perturb/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -241,7 +241,7 @@
 
     Vect_close(&In);
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     return (EXIT_SUCCESS);

Modified: grass/trunk/vector/v.proj/main.c
===================================================================
--- grass/trunk/vector/v.proj/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.proj/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -279,11 +279,7 @@
 
     Vect_close(&Map);
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&Out_Map, stderr);
-    else
-	Vect_build(&Out_Map, NULL);
-
+    Vect_build(&Out_Map);
     Vect_close(&Out_Map);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.qcount/main.c
===================================================================
--- grass/trunk/vector/v.qcount/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.qcount/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -147,7 +147,7 @@
 	    Vect_write_line(&Out, GV_POINT, Points, Cats);
 	}
 
-	Vect_build(&Out, stderr);
+	Vect_build(&Out);
 	Vect_close(&Out);
 
     }

Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.random/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -296,10 +296,7 @@
     }
 
     if (!flag.notopo->answer) {
-	if (G_verbose() > G_verbose_min())
-	    Vect_build(&Out, stderr);
-	else
-	    Vect_build(&Out, NULL);
+	Vect_build(&Out);
     }
     Vect_close(&Out);
 

Modified: grass/trunk/vector/v.reclass/main.c
===================================================================
--- grass/trunk/vector/v.reclass/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.reclass/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -414,7 +414,7 @@
 
     Vect_close(&In);
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     G_message(_("%d features reclassed"), rclelem);

Modified: grass/trunk/vector/v.sample/main.c
===================================================================
--- grass/trunk/vector/v.sample/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.sample/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -283,7 +283,7 @@
 
     Vect_close(&In);
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.segment/main.c
===================================================================
--- grass/trunk/vector/v.segment/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.segment/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -228,13 +228,7 @@
     G_message(_("%d lines written to output map (%d lost)"),
 	      lines_written, lines_read - lines_written);
 
-    if (G_verbose() > G_verbose_min()) {
-	Vect_build(&Out, stderr);
-    }
-    else {
-	Vect_build(&Out, NULL);
-    }
-
+    Vect_build(&Out);
     /* Free, close ... */
     Vect_close(&In);
     Vect_close(&Out);

Modified: grass/trunk/vector/v.select/main.c
===================================================================
--- grass/trunk/vector/v.select/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.select/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -509,7 +509,7 @@
 
     Vect_close(&(In[0]));
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     G_done_msg(" ");

Modified: grass/trunk/vector/v.split/main.c
===================================================================
--- grass/trunk/vector/v.split/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.split/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -183,7 +183,7 @@
     }
 
     Vect_close(&In);
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(0);

Modified: grass/trunk/vector/v.surf.rst/main.c
===================================================================
--- grass/trunk/vector/v.surf.rst/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.surf.rst/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -597,7 +597,7 @@
 	   TreeMap.head.plani_zone = G_zone ();
 	 */
 	print_tree(root, x_orig, y_orig, &TreeMap);
-	Vect_build(&TreeMap, NULL);
+	Vect_build(&TreeMap);
 	Vect_close(&TreeMap);
     }
 
@@ -691,7 +691,7 @@
 	   OverMap.head.plani_zone = G_zone ();
 	 */
 	print_tree(root, x_orig, y_orig, &OverMap);
-	Vect_build(&OverMap, NULL);
+	Vect_build(&OverMap);
 	Vect_close(&OverMap);
     }
 
@@ -711,7 +711,7 @@
     if (cvdev != NULL || devi != NULL) {
 	/*  db_close_database_shutdown_driver ( driver2 ); */
 	db_close_database(driver2);
-	Vect_build(&Map2, stderr);
+	Vect_build(&Map2);
 	Vect_close(&Map2);
     }
 

Modified: grass/trunk/vector/v.to.points/main.c
===================================================================
--- grass/trunk/vector/v.to.points/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.to.points/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -367,7 +367,7 @@
 	db_close_database_shutdown_driver(driver);
     }
 
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
 
     /* Free, close ... */
     Vect_close(&In);

Modified: grass/trunk/vector/v.transform/main.c
===================================================================
--- grass/trunk/vector/v.transform/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.transform/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -338,12 +338,8 @@
 
     Vect_copy_tables(&Old, &New, 0);
     Vect_close(&Old);
+    Vect_build(&New);
 
-    if (G_verbose() > G_verbose_min())
-	Vect_build(&New, stderr);
-    else
-	Vect_build(&New, NULL);
-
     if (!quiet_flag->answer) {
 	Vect_get_map_box(&New, &box);
 	G_message(_("\nNew vector map <%s> boundary coordinates:"),

Modified: grass/trunk/vector/v.type/main.c
===================================================================
--- grass/trunk/vector/v.type/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.type/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -226,7 +226,7 @@
     }
 
     Vect_copy_tables(&In, &Out, 0);
-    Vect_build(&Out, stderr);
+    Vect_build(&Out);
     Vect_close(&Out);
     Vect_close(&In);
 

Modified: grass/trunk/vector/v.vol.rst/main.c
===================================================================
--- grass/trunk/vector/v.vol.rst/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.vol.rst/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -885,7 +885,7 @@
 
 	    if (cvdev != NULL || devi != NULL) {
 		db_close_database_shutdown_driver(driver);
-		Vect_build(&Map, stderr);
+		Vect_build(&Map);
 		Vect_close(&Map);
 	    }
 

Modified: grass/trunk/vector/v.voronoi/dt_main.c
===================================================================
--- grass/trunk/vector/v.voronoi/dt_main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.voronoi/dt_main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -98,7 +98,7 @@
     Vect_hist_copy(&In, &Out);
     Vect_hist_command(&Out);
 
-    Vect_build_partial(&Out, GV_BUILD_BASE, NULL);
+    Vect_build_partial(&Out, GV_BUILD_BASE);
 
     /* initialize working region */
     G_get_window(&Window);
@@ -119,7 +119,7 @@
 
     Vect_close(&In);
 
-    Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES, NULL);
+    Vect_build_partial(&Out, GV_BUILD_ATTACH_ISLES);
 
     nareas = Vect_get_num_areas(&Out);
     G_debug(3, "nareas = %d", nareas);
@@ -150,8 +150,8 @@
 	Vect_write_line(&Out, GV_CENTROID, Points, Cats);
     }
 
-    Vect_build_partial(&Out, GV_BUILD_NONE, NULL);
-    Vect_build(&Out, stderr);
+    Vect_build_partial(&Out, GV_BUILD_NONE);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.voronoi/vo_main.c
===================================================================
--- grass/trunk/vector/v.voronoi/vo_main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.voronoi/vo_main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -177,7 +177,7 @@
     voronoi(triangulate, nextone);
 
     /* Close free ends by cyrrent region */
-    Vect_build_partial(&Out, GV_BUILD_BASE, NULL);
+    Vect_build_partial(&Out, GV_BUILD_BASE);
 
     ncoor = 0;
     acoor = 100;
@@ -346,8 +346,8 @@
 
     Vect_close(&In);
 
-    Vect_build_partial(&Out, GV_BUILD_NONE, NULL);
-    Vect_build(&Out, stderr);
+    Vect_build_partial(&Out, GV_BUILD_NONE);
+    Vect_build(&Out);
     Vect_close(&Out);
 
     exit(EXIT_SUCCESS);

Modified: grass/trunk/vector/v.what/main.c
===================================================================
--- grass/trunk/vector/v.what/main.c	2008-11-14 11:22:33 UTC (rev 34283)
+++ grass/trunk/vector/v.what/main.c	2008-11-14 11:26:17 UTC (rev 34284)
@@ -137,7 +137,7 @@
 			      vect[i]);
 
 	    G_verbose_message(_("Building spatial index..."));
-	    Vect_build_spatial_index(&Map[i], NULL);
+	    Vect_build_spatial_index(&Map[i]);
 	}
     }
 



More information about the grass-commit mailing list