[GRASS-SVN] r37825 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 11 11:57:00 EDT 2009


Author: glynn
Date: 2009-06-11 11:57:00 -0400 (Thu, 11 Jun 2009)
New Revision: 37825

Modified:
   grass/trunk/lib/gis/parser.c
Log:
Use match_option()


Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2009-06-11 15:42:15 UTC (rev 37824)
+++ grass/trunk/lib/gis/parser.c	2009-06-11 15:57:00 UTC (rev 37825)
@@ -2016,8 +2016,15 @@
     got_one = 0;
     key_len = strlen(the_key);
     for (at_opt = &st->first_option; at_opt != NULL; at_opt = at_opt->next_opt) {
-	if (at_opt->key == NULL || strncmp(the_key, at_opt->key, key_len))
+	if (!at_opt->key)
 	    continue;
+#if 1
+	if (!match_option(the_key, at_opt->key))
+	    continue;
+#else
+	if (strncmp(the_key, at_opt->key, key_len))
+	    continue;
+#endif
 
 	got_one++;
 	opt = at_opt;



More information about the grass-commit mailing list