[GRASS-SVN] r58205 - grass/trunk/raster/r.in.xyz

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 13 01:54:30 PST 2013


Author: martinl
Date: 2013-11-13 01:54:30 -0800 (Wed, 13 Nov 2013)
New Revision: 58205

Modified:
   grass/trunk/raster/r.in.xyz/main.c
Log:
r.in.xyz: use G_option_to_separator()

Modified: grass/trunk/raster/r.in.xyz/main.c
===================================================================
--- grass/trunk/raster/r.in.xyz/main.c	2013-11-13 08:28:46 UTC (rev 58204)
+++ grass/trunk/raster/r.in.xyz/main.c	2013-11-13 09:54:30 UTC (rev 58205)
@@ -313,14 +313,8 @@
 	scan_flag->answer = 1; /* pointer not int, so set = shell_style->answer ? */
     }
 
-    fs = delim_opt->answer;
-    if (strcmp(fs, "\\t") == 0)
-	fs = "\t";
-    if (strcmp(fs, "tab") == 0)
-	fs = "\t";
-    if (strcmp(fs, "space") == 0)
-	fs = " ";
-
+    fs = G_option_to_separator(delim_opt);
+    
     xcol = atoi(xcol_opt->answer);
     ycol = atoi(ycol_opt->answer);
     zcol = atoi(zcol_opt->answer);



More information about the grass-commit mailing list