diff options
author | Steven Augart <augart@watson.ibm.com> | 2004-05-14 16:35:07 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2004-05-14 16:35:07 +0000 |
commit | a01a235c76298c4f4e67e8128c416fe24724c865 (patch) | |
tree | 99f7ab656e94391404f72c482d6c05db4dcef0a9 /libjava/include/jni.h | |
parent | 7b08cf9291a33b05d61b19ffc77179cf2e9ba184 (diff) | |
download | gcc-a01a235c76298c4f4e67e8128c416fe24724c865.zip gcc-a01a235c76298c4f4e67e8128c416fe24724c865.tar.gz gcc-a01a235c76298c4f4e67e8128c416fe24724c865.tar.bz2 |
jni.h (_Jv_func): Removed.
2004-05-14 Steven Augart <augart@watson.ibm.com>
* include/jni.h (_Jv_func): Removed.
(struct JNINativeInterface): Use `void *' for reserved slots.
(struct JNIInvokeInterface): Likewise.
From-SVN: r81851
Diffstat (limited to 'libjava/include/jni.h')
-rw-r--r-- | libjava/include/jni.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/libjava/include/jni.h b/libjava/include/jni.h index 4e39e64..51fa7cb 100644 --- a/libjava/include/jni.h +++ b/libjava/include/jni.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Free Software Foundation This file is part of libgcj. @@ -240,12 +240,6 @@ typedef union jvalue jobject l; } jvalue; -#ifdef __cplusplus -typedef void * (*_Jv_func) (...); -#else -typedef void * (*_Jv_func) (); -#endif - /* This structure is used when registering native methods. */ typedef struct { @@ -256,10 +250,10 @@ typedef struct struct JNINativeInterface { - _Jv_func reserved0; - _Jv_func reserved1; - _Jv_func reserved2; - _Jv_func reserved3; + void *reserved0; + void *reserved1; + void *reserved2; + void *reserved3; jint (JNICALL *GetVersion) (JNIEnv *); jclass (JNICALL *DefineClass) (JNIEnv *, const char *, @@ -1574,9 +1568,9 @@ public: struct JNIInvokeInterface { - _Jv_func reserved0; - _Jv_func reserved1; - _Jv_func reserved2; + void *reserved0; + void *reserved1; + void *reserved2; jint (JNICALL *DestroyJavaVM) (JavaVM *); jint (JNICALL *AttachCurrentThread) (JavaVM *, void **, void *); |