mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
style: rename spec_defines_file as spec_header_file
The variable spec_defines_file denotes the name of the generated header. Its name is derived from --defines/%defines, whose name in turn is derived from the fact that the header, in Yacc, contained the Not only does the header now contain a lot more than just the token definitions, but we no longer even generate macros, but an enum... Let's modernize our vocabulary. * src/files.h, src/files.c (spec_defines_file): Rename as... (spec_header_file): this.
This commit is contained in:
@@ -51,7 +51,7 @@ location spec_name_prefix_loc = EMPTY_LOCATION_INIT;
|
||||
char *spec_verbose_file = NULL; /* for --verbose. */
|
||||
char *spec_graph_file = NULL; /* for -g. */
|
||||
char *spec_xml_file = NULL; /* for -x. */
|
||||
char *spec_defines_file = NULL; /* for --defines. */
|
||||
char *spec_header_file = NULL; /* for --defines. */
|
||||
char *parser_file_name;
|
||||
|
||||
/* All computed output file names. */
|
||||
@@ -335,8 +335,8 @@ compute_output_file_names (void)
|
||||
|
||||
if (defines_flag)
|
||||
{
|
||||
if (! spec_defines_file)
|
||||
spec_defines_file = concat2 (all_but_ext, header_extension);
|
||||
if (! spec_header_file)
|
||||
spec_header_file = concat2 (all_but_ext, header_extension);
|
||||
}
|
||||
|
||||
if (graph_flag)
|
||||
@@ -429,7 +429,7 @@ output_file_names_free (void)
|
||||
free (spec_verbose_file);
|
||||
free (spec_graph_file);
|
||||
free (spec_xml_file);
|
||||
free (spec_defines_file);
|
||||
free (spec_header_file);
|
||||
free (parser_file_name);
|
||||
free (dir_prefix);
|
||||
for (int i = 0; i < generated_files_size; i++)
|
||||
|
||||
Reference in New Issue
Block a user