[GRASS-CVS] markus: grass6/lib/gis parser.c,1.132,1.132.2.1

grass at intevation.de grass at intevation.de
Sun Nov 18 15:02:06 EST 2007


Author: markus

Update of /grassrepository/grass6/lib/gis
In directory doto:/tmp/cvs-serv23351

Modified Files:
      Tag: releasebranch_6_3
	parser.c 
Log Message:
Portability fixes (merge from HEAD)

Index: parser.c
===================================================================
RCS file: /grassrepository/grass6/lib/gis/parser.c,v
retrieving revision 1.132
retrieving revision 1.132.2.1
diff -u -d -r1.132 -r1.132.2.1
--- parser.c	15 Oct 2007 14:15:27 -0000	1.132
+++ parser.c	18 Nov 2007 20:02:04 -0000	1.132.2.1
@@ -1921,14 +1921,14 @@
 
 #ifdef __MINGW32__
 	if (getenv("GRASS_DEBUG_GUI"))
-		fp = popen("tee gui_dump.tcl | %GRASS_WISH%", "w");
+		fp = G_popen("tee gui_dump.tcl | %GRASS_WISH%", "w");
 	else
-		fp = popen("%GRASS_WISH%", "w");
+		fp = G_popen("%GRASS_WISH%", "w");
 #else
 	if (getenv("GRASS_DEBUG_GUI"))
-		fp = popen("tee gui_dump.tcl | $GRASS_WISH", "w");
+		fp = G_popen("tee gui_dump.tcl | $GRASS_WISH", "w");
 	else
-		fp = popen("$GRASS_WISH", "w");
+		fp = G_popen("$GRASS_WISH", "w");
 #endif
 
 	if (!fp)
@@ -1938,7 +1938,7 @@
 
 	generate_tcl(fp);
 
-	pclose(fp);
+	G_pclose(fp);
 }
 
 /* Build wxPython gui */




More information about the grass-commit mailing list