mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
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:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user