ソースを参照

r.in.xyz: use G_option_to_separator()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58205 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年 前
コミット
a4ba22a778
1 ファイル変更2 行追加8 行削除
  1. 2 8
      raster/r.in.xyz/main.c

+ 2 - 8
raster/r.in.xyz/main.c

@@ -313,14 +313,8 @@ int main(int argc, char *argv[])
 	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);