/[gcjwebplugin]/gcjwebplugin/include/classpath/jni.h
ViewVC logotype

Diff of /gcjwebplugin/include/classpath/jni.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mkoch, Mon Jul 5 21:30:16 2004 UTC revision 1.2 by mkoch, Tue Jul 13 13:29:03 2004 UTC
# Line 54  typedef jint jsize; Line 54  typedef jint jsize;
54  #ifdef __cplusplus  #ifdef __cplusplus
55  }  }
56  #endif  #endif
57      
58    /*
59     * Before jni.h is #included within a typical JVM, the source code should
60     * #define _JNI_VM_INTERNAL_TYPES_DEFINED and provide the real declarations
61     * for 'jobject', 'jfieldID', 'jMethodID' and other implementation types.
62     * If _JNI_VM_INTERNAL_TYPES_DEFINED is not defined, the following
63     * declares the old versions of the types.
64     */
65    #ifndef _JNI_VM_INTERNAL_TYPES_DEFINED
66    /*
67    typedef void *jobject;
68    typedef void *jfieldID;
69    typedef void *jmethodID;
70    */
71    struct _jfieldID;
72    struct _jmethodID;
73    typedef struct _jfieldID *jfieldID;
74    typedef struct _jmethodID *jmethodID;
75    #endif
76      
77  #ifdef __cplusplus  #ifdef __cplusplus
78        
79  class _jobject {};  class _jobject {};
# Line 92  typedef struct _Jv_JavaVM JavaVM; Line 111  typedef struct _Jv_JavaVM JavaVM;
111    
112  #else /* __cplusplus */  #else /* __cplusplus */
113    
114  /*  
  * Before jni.h is #included within a typical JVM, the source code should  
  * #define _JNI_VM_INTERNAL_TYPES_DEFINED and provide the real declarations  
  * for 'jobject', 'jfieldID', 'jMethodID' and other implementation types.  
  * If _JNI_VM_INTERNAL_TYPES_DEFINED is not defined, the following  
  * declares the old versions of the types.  
  */  
 #ifndef _JNI_VM_INTERNAL_TYPES_DEFINED  
 /*  
 typedef void *jobject;  
 typedef void *jfieldID;  
 typedef void *jmethodID;  
 */  
 struct _jfieldID;  
 struct _jmethodID;  
 typedef struct _jfieldID *jfieldID;  
 typedef struct _jmethodID *jmethodID;  
 #endif  
     
115  typedef void *jobject;  typedef void *jobject;
116  typedef jobject jclass;  typedef jobject jclass;
117  typedef jobject jstring;  typedef jobject jstring;
# Line 467  struct JNINativeInterface Line 468  struct JNINativeInterface
468  };  };
469    
470  #ifdef __cplusplus  #ifdef __cplusplus
471    } /* Extern "C" */
472    
473  struct _Jv_JNIEnv  struct _Jv_JNIEnv
474  {  {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26