mirror of git://gcc.gnu.org/git/gcc.git
jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops. (jboolean): Declare as an attributed int, not a bool. (_Jv_func): Declare differently for C. From-SVN: r31907
This commit is contained in:
parent
75cdca5bb9
commit
26439cc59c
|
@ -1,5 +1,9 @@
|
||||||
2000-02-10 Tom Tromey <tromey@cygnus.com>
|
2000-02-10 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
|
||||||
|
(jboolean): Declare as an attributed int, not a bool.
|
||||||
|
(_Jv_func): Declare differently for C.
|
||||||
|
|
||||||
* gnu/gcj/jni/natNativeThread.cc: New file.
|
* gnu/gcj/jni/natNativeThread.cc: New file.
|
||||||
* gnu/gcj/jni/NativeThread.java: New file.
|
* gnu/gcj/jni/NativeThread.java: New file.
|
||||||
* java/lang/Thread.java (data): Now a RawData.
|
* java/lang/Thread.java (data): Now a RawData.
|
||||||
|
|
|
@ -34,7 +34,7 @@ typedef int jbyte __attribute__((__mode__(__QI__)));
|
||||||
typedef int jshort __attribute__((__mode__(__HI__)));
|
typedef int jshort __attribute__((__mode__(__HI__)));
|
||||||
typedef int jint __attribute__((__mode__(__SI__)));
|
typedef int jint __attribute__((__mode__(__SI__)));
|
||||||
typedef int jlong __attribute__((__mode__(__DI__)));
|
typedef int jlong __attribute__((__mode__(__DI__)));
|
||||||
typedef bool jboolean __attribute__((__mode__(__QI__)));
|
typedef int jboolean __attribute__((__mode__(__QI__)));
|
||||||
typedef unsigned short jchar __attribute__((__mode__(__HI__)));
|
typedef unsigned short jchar __attribute__((__mode__(__HI__)));
|
||||||
typedef float jfloat;
|
typedef float jfloat;
|
||||||
typedef double jdouble;
|
typedef double jdouble;
|
||||||
|
@ -62,8 +62,8 @@ typedef void *jmethodID;
|
||||||
typedef const struct JNINativeInterface *JNIEnv;
|
typedef const struct JNINativeInterface *JNIEnv;
|
||||||
typedef const struct JNIInvokeInterface *JavaVM;
|
typedef const struct JNIInvokeInterface *JavaVM;
|
||||||
|
|
||||||
#define JNI_TRUE 1
|
#define JNI_TRUE 1
|
||||||
#define JNI_TRUE 0
|
#define JNI_FALSE 0
|
||||||
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
@ -117,7 +117,11 @@ typedef union jvalue
|
||||||
jobject l;
|
jobject l;
|
||||||
} jvalue;
|
} jvalue;
|
||||||
|
|
||||||
typedef void * (*_Jv_func)(...);
|
#ifdef __cplusplus
|
||||||
|
typedef void * (*_Jv_func) (...);
|
||||||
|
#else
|
||||||
|
typedef void * (*_Jv_func) ();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This structure is used when registering native methods. */
|
/* This structure is used when registering native methods. */
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
Loading…
Reference in New Issue