in the case of `-o foo.tab.c'.
+configure
+Makefile Makefile.in
config.log
config.status
intl
stamp-h
bison-*.tar.gz
config.log
config.status
intl
stamp-h
bison-*.tar.gz
+2000-12-20 Akim Demaille <akim@epita.fr>
+
+ * src/files.c (open_files): Fix the computation of short_base_name
+ in the case of `-o foo.tab.c'.
+
2000-12-20 Akim Demaille <akim@epita.fr>
* src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2000-12-20 Akim Demaille <akim@epita.fr>
* src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
base_length = strlen (spec_outfile);
if (strsuffix (spec_outfile, ".c"))
base_length -= 2;
base_length = strlen (spec_outfile);
if (strsuffix (spec_outfile, ".c"))
base_length -= 2;
+ base_name = strndup (spec_outfile, base_length);
/* SHORT_BASE_LENGTH includes neither ".tab" nor ".c". */
short_base_length = base_length;
/* SHORT_BASE_LENGTH includes neither ".tab" nor ".c". */
short_base_length = base_length;
- if (strsuffix (spec_outfile, ".tab") || strsuffix (spec_outfile, "_tab"))
+ if (strsuffix (base_name, ".tab") || strsuffix (base_name, "_tab"))
- base_name = strndup (spec_outfile, base_length);
short_base_name = strndup (spec_outfile, short_base_length);
return;
short_base_name = strndup (spec_outfile, short_base_length);
return;
-at-check-line
-at-setup-line
+Makefile.in
+at-*
+debug-*