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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 28 20:19:56 PDT 2014


Author: hcho
Date: 2014-05-28 20:19:56 -0700 (Wed, 28 May 2014)
New Revision: 60571

Modified:
   grass/trunk/lib/gis/ls_filter.c
Log:
wc2regex(): allow nested braces in wildcard expressions

Modified: grass/trunk/lib/gis/ls_filter.c
===================================================================
--- grass/trunk/lib/gis/ls_filter.c	2014-05-29 03:17:59 UTC (rev 60570)
+++ grass/trunk/lib/gis/ls_filter.c	2014-05-29 03:19:56 UTC (rev 60571)
@@ -100,15 +100,13 @@
 	    add(buf, '.');
 	    break;
 	case '{':
-	    if (in_brace)
-		return 0;
-	    in_brace = 1;
+	    in_brace++;
 	    add(buf, '(');
 	    break;
 	case '}':
 	    if (!in_brace)
 		return 0;
-	    in_brace = 0;
+	    in_brace--;
 	    add(buf, ')');
 	    break;
 	case ',':



More information about the grass-commit mailing list