[GRASS-SVN] r40366 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 10 14:43:35 EST 2010
Author: hamish
Date: 2010-01-10 14:43:33 -0500 (Sun, 10 Jan 2010)
New Revision: 40366
Modified:
grass/trunk/lib/vector/Vlib/field.c
Log:
place holder code for future use
Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c 2010-01-10 19:28:43 UTC (rev 40365)
+++ grass/trunk/lib/vector/Vlib/field.c 2010-01-10 19:43:33 UTC (rev 40366)
@@ -721,12 +721,21 @@
if (strlen(buf) == 0)
continue;
-
+
+#ifdef NOT_ABLE_TO_READ_GRASS_6
+ int ndef;
+ ndef = sscanf(buf, "%s|%s|%s|%s|%s", fldstr, tab, col, db, drv);
+
+ if (ndef < 2 || (ndef < 5 && rule < 1)) {
+ G_warning(_("Error in rule on row %d in <%s>"), row, file);
+ continue;
+ }
+#else
tokens = G_tokenize(buf, " |");
ntok = G_number_of_tokens(tokens);
if (ntok < 2 || (ntok < 5 && rule < 1)) {
- G_warning(_("Error in rule on row %d in %s"), row, file);
+ G_warning(_("Error in rule on row %d in <%s>"), row, file);
continue;
}
@@ -746,6 +755,7 @@
}
}
G_free_tokens(tokens);
+#endif
/* get field and field name */
fldname = strchr(fldstr, '/');
More information about the grass-commit
mailing list