[gcjx] Patch: FYI: gengtype and .hh

Tom Tromey tromey@redhat.com
Sun Jan 23 02:07:00 GMT 2005


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;
 



More information about the Java-patches mailing list