]> git.saurik.com Git - bison.git/blobdiff - src/parse-gram.y
Merge branch 'maint'
[bison.git] / src / parse-gram.y
index 518969948f0586a22d438f41606175240e32e19d..fbb9b54645addc40f365c052e552bd665023459e 100644 (file)
@@ -775,11 +775,13 @@ add_param (param_type type, char *decl, location loc)
 
     /* Strip the surrounding '{' and '}', and any blanks just inside
        the braces.  */
-    while (*--p == ' ' || *p == '\t')
-      continue;
+    --p;
+    while (isspace ((unsigned char) *p))
+      --p;
     p[1] = '\0';
-    while (*++decl == ' ' || *decl == '\t')
-      continue;
+    ++decl;
+    while (isspace ((unsigned char) *decl))
+      ++decl;
   }
 
   if (! name_start)