+2002-01-20 Marc Autret <marc@gnu.org>
+
+ * tests/output.at: New test.
+ * src/files.c (compute_base_names): Don't map extensions when
+ the YACC flag is set, use defaults.
+ Reported by Evgeny Stambulchik.
+
2002-01-20 Marc Autret <marc@gnu.org>
* src/system.h: Need to define __attribute__ away for non-GCC
David J. MacKenzie djm@gnu.org
Dick Streefland dick.streefland@altium.nl
Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de
+Evgeny Stambulchik fnevgeny@plasma-gate.weizmann.ac.il
Fabrice Bauzac noon@cote-dazur.com
H. Merijn Brand h.m.brand@hccnet.nl
Hans Aberg haberg@matematik.su.se
/* Computes the extensions from the grammar file name. */
filename_split (infile, &base, &tab, &ext);
- if (ext)
+ if (ext && !yacc_flag)
compute_exts_from_gf (ext);
}
}
src_extension = ".c";
if (!header_extension)
header_extension = ".h";
-
+
/* It the defines filename if not given, we create it. */
if (!spec_defines_file)
spec_defines_file = stringappend (full_base_name, header_extension);
AT_CHECK_OUTPUT([foo.y], [%defines %verbose %yacc],[],
[y.output y.tab.c y.tab.h])
+AT_CHECK_OUTPUT([foo.yy], [%defines %verbose %yacc],[],
+ [y.output y.tab.c y.tab.h])
+
# Exercise %output and %file-prefix
AT_CHECK_OUTPUT([foo.y], [%file-prefix="bar" %defines %verbose], [],
[bar.output bar.tab.c bar.tab.h])