mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
parser: handle %locations as %define locations.
* src/getargs.h, src/getargs.c (locations_flag): Remove. * src/getargs.c, src/scan-code.l: Use muscle_percent_define_ensure to set "locations" to true. * src/output.c (prepare): Don't output "locations". * src/scan-gram.l (%locations): Handle it as a %<flag>. * src/parse-gram.y: It's no longer a token. Don't handle it. * data/bison.m4 (b4_locations_if): Define it with b4_percent_define_if_define. * data/c.m4, data/glr.cc: Adjust.
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
bool defines_flag;
|
||||
bool graph_flag;
|
||||
bool xml_flag;
|
||||
bool locations_flag;
|
||||
bool no_lines_flag;
|
||||
bool token_table_flag;
|
||||
bool yacc_flag; /* for -y */
|
||||
@@ -635,7 +634,8 @@ getargs (int argc, char *argv[])
|
||||
break;
|
||||
|
||||
case LOCATIONS_OPTION:
|
||||
locations_flag = true;
|
||||
muscle_percent_define_ensure ("locations",
|
||||
command_line_location (), true);
|
||||
break;
|
||||
|
||||
case PRINT_LOCALEDIR_OPTION:
|
||||
|
||||
Reference in New Issue
Block a user