Remove paren_depth global
[deliverable/binutils-gdb.git] / gdb / p-exp.y
index dbccf358d5c58564efc4025d73cdf095a364e96a..768f302592198a1405c76d468d2065c880067b6c 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);
@@ -1723,6 +1726,7 @@ pascal_parse (struct parser_state *par_state)
   scoped_restore pstate_restore = make_scoped_restore (&pstate);
   gdb_assert (par_state != NULL);
   pstate = par_state;
+  paren_depth = 0;
 
   return yyparse ();
 }
This page took 0.025049 seconds and 4 git commands to generate.