mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* src/files.c (compute_base_names): When computing the output file
names from the input file name, strip the directory part.
This commit is contained in:
@@ -384,11 +384,11 @@ compute_base_names (void)
|
||||
else
|
||||
{
|
||||
/* Otherwise, the short base name is computed from the input
|
||||
grammar: `foo.yy' => `foo'. */
|
||||
grammar: `foo/bar.yy' => `bar'. */
|
||||
filename_split (infile, &base, &tab, &ext);
|
||||
short_base_name =
|
||||
xstrndup (infile,
|
||||
(strlen (infile) - (ext ? strlen (ext) : 0)));
|
||||
xstrndup (base,
|
||||
(strlen (base) - (ext ? strlen (ext) : 0)));
|
||||
}
|
||||
|
||||
/* In these cases, always append `.tab'. */
|
||||
|
||||
Reference in New Issue
Block a user