* src/files.c, src/files.h (output_infix): New.

(tab_extension): Remove.
(compute_base_names): Compute the former, drop the latter.
* src/output.c (prepare): Insert the muscles `output-infix', and
`output-suffix'.
* src/parse-skel.y (string, string.1): New.
(section.header): Use it.
(section.yacc): Remove.
(prefix): Remove too.
* src/scan-skel.l: Adjust.
* src/bison.simple, src/bison.hairy: Adjust.
This commit is contained in:
Akim Demaille
2002-01-09 13:03:45 +00:00
parent cae601224e
commit b85810aec0
8 changed files with 59 additions and 61 deletions

View File

@@ -1,5 +1,5 @@
/* File names and variables for bison,
Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
Copyright 1984, 1989, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -76,10 +76,11 @@ int strsuffix (const char* string, const char* suffix);
STRING1, and STRING2. */
char* stringappend (const char* string1, const char* string2);
/* Should we insert '.tab' in yacc-compatible parsers? */
extern int tab_extension;
/* Prefix used to generate output file names. */
extern char *short_base_name;
/* Prefix used to generate output files names. */
extern char* short_base_name;
/* Infix used to generate output file names (i.e., `.tab', or `_tab',
or `'). */
extern char *output_infix;
#endif /* !FILES_H_ */