Move lexptr and prev_lexptr to parser_state
[external/binutils.git] / gdb / ada-exp.y
index 0cf85c5..f50500c 100644 (file)
@@ -745,7 +745,7 @@ ada_parse (struct parser_state *par_state)
 static void
 yyerror (const char *msg)
 {
-  error (_("Error in expression, near `%s'."), lexptr);
+  error (_("Error in expression, near `%s'."), pstate->lexptr);
 }
 
 /* Emit expression to access an instance of SYM, in block BLOCK (if