This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: gcjh and JNIEXPORT
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java-patches at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 08 Nov 2002 10:30:02 +0530
- Subject: Re: Patch: FYI: gcjh and JNIEXPORT
- References: <871y5yqruh.fsf@fleche.redhat.com>
Tom Tromey wrote:
/* When printing a JNI header we need to respect the space. In
other cases we're just going to insert a newline anyway. */
fputs (need_space && ! stubs ? " " : "\n", stream);
+
+ if (flag_jni && ! stubs)
+ fputs ("JNICALL ", stream);
Shouldn't you also check "is_method && !is_init"?
stdcall is a calling convention and is valid only for methods
not fields.
stdcall does not seem to be valid for constructors as well.
Sincerely Yours,
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/