mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 22:33:03 +00:00
* lib/quotearg.h: Protect against multiple inclusions.
* src/location.h (location_t): Add a `file' member. (LOCATION_RESET, LOCATION_PRINT): Adjust. * src/complain.c (warn_at, complain_at, fatal_at): Drop `error_one_per_line' support.
This commit is contained in:
@@ -34,13 +34,14 @@
|
||||
#define YY_USER_INIT \
|
||||
do { \
|
||||
LOCATION_RESET (*yylloc); \
|
||||
yylloc->file = infile; \
|
||||
/* This is only to avoid GCC warnings. */ \
|
||||
if (yycontrol) {;}; \
|
||||
} while (0)
|
||||
|
||||
#define YY_USER_ACTION LOCATION_COLUMNS (*yylloc, yyleng)
|
||||
#define YY_USER_ACTION LOCATION_COLUMNS (*yylloc, yyleng);
|
||||
#define YY_LINES LOCATION_LINES (*yylloc, yyleng);
|
||||
#define YY_STEP LOCATION_STEP (*yylloc)
|
||||
#define YY_STEP LOCATION_STEP (*yylloc);
|
||||
|
||||
/* STRING_OBSTACK -- Used to store all the characters that we need to
|
||||
keep (to construct ID, STRINGS etc.). Use the following macros to
|
||||
|
||||
Reference in New Issue
Block a user