fixits: handle duplicates of %name-prefix

The test case "Deprecated directives" (currently 56) no longer emits
warnings after 'bison -u'!

* src/files.h, src/files.c (spec_name_prefix_loc): New.
* src/parse-gram.y (handle_name_prefix): Emit fixits for duplicate
%name-prefix.
* tests/input.at (Deprecated directives): Adjust.
This commit is contained in:
Akim Demaille
2019-01-17 08:49:34 +01:00
parent 25b7421c40
commit eb0f3e79e0
5 changed files with 44 additions and 32 deletions

View File

@@ -32,6 +32,7 @@ extern char *parser_file_name;
/* Symbol prefix specified with -p, or 0 if no -p. */
extern const char *spec_name_prefix;
extern location spec_name_prefix_loc;
/* File name prefix specified with -b, or 0 if no -b. */
extern char const *spec_file_prefix;