This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: gengtype and .hh
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 22 Jan 2005 19:01:54 -0700
- Subject: [gcjx] Patch: FYI: gengtype and .hh
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
I had forgotten that I needed gengtype to also handle .hh files.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* gengtype.c (get_output_file_with_visibility): Recognize '.hh'.
Index: gengtype.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.c,v
retrieving revision 1.68.4.1
diff -u -r1.68.4.1 gengtype.c
--- gengtype.c 23 Jan 2005 01:53:15 -0000 1.68.4.1
+++ gengtype.c 23 Jan 2005 02:06:10 -0000
@@ -1217,7 +1217,8 @@
if ((len > 2 && memcmp (basename+len-2, ".c", 2) == 0)
|| (len > 2 && memcmp (basename+len-2, ".y", 2) == 0)
|| (len > 3 && memcmp (basename+len-3, ".in", 3) == 0)
- || (len > 3 && memcmp (basename+len-3, ".cc", 3) == 0))
+ || (len > 3 && memcmp (basename+len-3, ".cc", 3) == 0)
+ || (len > 3 && memcmp (basename+len-3, ".hh", 3) == 0))
{
char *s;