Remove paren_depth global
[deliverable/binutils-gdb.git] / gdb / d-exp.y
index a701c2541d3fdfe75e7b25e7433a00e50946290b..c15199535214abc79a0e7b7e1d0c34a8abdbcb5c 100644 (file)
@@ -1020,6 +1020,9 @@ static int saw_name_at_eof;
    This is used only when parsing to do field name completion.  */
 static int last_was_structop;
 
+/* Depth of parentheses.  */
+static int paren_depth;
+
 /* Read one token, getting characters through lexptr.  */
 
 static int
@@ -1619,6 +1622,7 @@ d_parse (struct parser_state *par_state)
   /* Initialize some state used by the lexer.  */
   last_was_structop = 0;
   saw_name_at_eof = 0;
+  paren_depth = 0;
 
   token_fifo.clear ();
   popping = 0;
This page took 0.023588 seconds and 4 git commands to generate.