[cp-patches] Patch: FYI: add 1.1 JNI structs

Mark Wielaard mark at klomp.org
Tue Jun 6 22:39:20 UTC 2006


Hi,

On Tue, 2006-06-06 at 13:07 -0600, Tom Tromey wrote:
> from  Tom Tromey  <tromey at redhat.com>
> 	* include/jni.h (JDK1_1InitArgs): New struct.
> 	(JDK1_1AttachArgs): Likewise.

Here is a small refinement that makes it compile with -Werror and adds
JNICALL to the pointer-to-function types in the new JDK1_1InitArgs
struct.

2006-06-06  Mark Wielaard  <mark at klomp.org>

    * include/jni.h (JDK1_1InitArgs): Mark pointer-to-function types
    with JNICALL.

Committed,

Mark

--- include/jni.h       6 Jun 2006 19:11:16 -0000       1.7
+++ include/jni.h       6 Jun 2006 22:39:00 -0000
@@ -1604,9 +1604,9 @@
   jint verifyMode;
   const char *classpath;

-  jint (*vfprintf) (FILE *file, const char *fmt, va_list args);
-  void (*exit) (jint value);
-  void (*abort) ();
+  jint (JNICALL *vfprintf) (FILE *file, const char *fmt, va_list args);
+  void (JNICALL *exit) (jint value);
+  void (JNICALL *abort) (void);

   jint enableClassGC;
   jint enableVerboseGC;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060607/c91e0564/attachment.pgp


More information about the Classpath-patches mailing list