Remove paren_depth global
[deliverable/binutils-gdb.git] / gdb / m2-exp.y
index c1418c751f1486081b31ba0f429bca68bab9a950..c0f5e75be2a9f09bd00fda96161272dc5ffbedda 100644 (file)
@@ -763,6 +763,9 @@ static struct keyword keytab[] =
 };
 
 
+/* Depth of parentheses.  */
+static int paren_depth;
+
 /* Read one token, getting characters through lexptr.  */
 
 /* This is where we will check to make sure that the language and the
@@ -1039,6 +1042,7 @@ m2_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.025416 seconds and 4 git commands to generate.