[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[branch]: yacc-names.patch
From: |
Marc Autret |
Subject: |
[branch]: yacc-names.patch |
Date: |
19 Jan 2002 02:56:13 -0500 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.262
diff -u -r1.173.2.262 ChangeLog
--- ChangeLog 14 Jan 2002 10:28:29 -0000 1.173.2.262
+++ ChangeLog 19 Jan 2002 07:48:17 -0000
@@ -1,3 +1,9 @@
+2002-01-19 Marc Autret <address@hidden>
+
+ * tests/output.at: New test.
+ * src/files.c (compute_base_names): Don't map extensions when
+ the YACC flag is set, use defaults.
+
2002-01-14 Akim Demaille <address@hidden>
Version 1.31.
Index: src/files.c
===================================================================
RCS file: /cvsroot/bison/bison/src/files.c,v
retrieving revision 1.51.2.16
diff -u -r1.51.2.16 files.c
--- src/files.c 8 Jan 2002 17:41:38 -0000 1.51.2.16
+++ src/files.c 19 Jan 2002 07:48:18 -0000
@@ -419,8 +419,9 @@
/* Computes the extensions from the grammar file name. */
filename_split (infile, &base, &tab, &ext);
- if (ext)
- compute_exts_from_gf (ext);
+
+ if (ext && !yacc_flag)
+ compute_exts_from_gf (ext);
}
}
Index: tests/output.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/output.at,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 output.at
--- tests/output.at 14 Nov 2001 15:16:40 -0000 1.1.2.6
+++ tests/output.at 19 Jan 2002 07:48:18 -0000
@@ -53,6 +53,9 @@
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])
--
Marc Autret
- [branch]: yacc-names.patch,
Marc Autret <=