2002-04-24 Michael Snyder <msnyder@redhat.com>

* parser-defs.h (prev_lexptr): New external variable.
	* parse.c (parse_exp_1): Set prev_lexptr to null before
	calling the language-specific parser.
	* c-exp.y (yylex): Set prev_lexptr to start of current token.
	(yyerror): Use prev_lexptr in error reporting.
This commit is contained in:
Michael Snyder
2002-04-24 22:26:32 +00:00
parent 6ff9af88cb
commit 665132f945
4 changed files with 18 additions and 0 deletions

View File

@ -150,6 +150,10 @@ extern struct type *follow_types (struct type *);
extern char *lexptr;
/* After a token has been recognized, this variable points to it.
Currently used only for error reporting. */
extern char *prev_lexptr;
/* Tokens that refer to names do so with explicit pointer and length,
so they can share the storage that lexptr is parsing.