mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
Add of %source_extension and %header_extension which specify
the source or/and the header output file extension. * src/files.c (compute_base_names): Remove initialisation of src_extension and header_extension. (compute_exts_from_gf): Update. (compute_exts_from_src): Update. (output_files): Update. * src/reader.c (parse_header_extension_decl): New. (parse_source_extension_decl): New. (read_declarations): New case statements for the new tokens. * src/lex.c (percent_table): Add entries for %source_extension and %header_extension. * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
This commit is contained in:
@@ -60,6 +60,9 @@ extern struct obstack output_obstack;
|
||||
extern char *infile;
|
||||
extern char *attrsfile;
|
||||
|
||||
extern const char *src_extension;
|
||||
extern const char *header_extension;
|
||||
|
||||
void open_files PARAMS((void));
|
||||
|
||||
void output_files PARAMS((void));
|
||||
|
||||
Reference in New Issue
Block a user