This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: Fix pR java/19742
- 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: 01 Feb 2005 17:40:15 -0700
- Subject: Patch: FYI: Fix pR java/19742
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes PR java/19742. We don't want to mangle field names when
generating a JNI header.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
PR java/19742:
* gjavah.c (get_field_name): Don't override name for JNI header.
Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.127
diff -u -r1.127 gjavah.c
--- gjavah.c 1 Feb 2005 18:38:12 -0000 1.127
+++ gjavah.c 2 Feb 2005 00:41:04 -0000
@@ -706,6 +706,8 @@
memcpy (override, name, length);
strcpy (override + length, "__");
}
+ else if (flag_jni)
+ override = NULL;
else
override = cxx_keyword_subst (name, length);