]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/f-exp.y
Remove paren_depth global
[thirdparty/binutils-gdb.git] / gdb / f-exp.y
index 5670136b2a6714a7dea700db4ab6719ed1f5036e..100a3bbec145a84643711ad23ba3ffbdda95490c 100644 (file)
@@ -68,6 +68,9 @@
 
 static struct parser_state *pstate = NULL;
 
+/* Depth of parentheses.  */
+static int paren_depth;
+
 int yyparse (void);
 
 static int yylex (void);
@@ -1328,6 +1331,7 @@ f_parse (struct parser_state *par_state)
                                                        parser_debug);
   gdb_assert (par_state != NULL);
   pstate = par_state;
+  paren_depth = 0;
 
   return yyparse ();
 }