diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-07 21:17:30 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-07 21:17:30 +0000 |
commit | 3db5a98c3247be0dd8c39aa8801a430567289986 (patch) | |
tree | faba3a37f43974f358ae5a8683da016bc6316c15 /libjava/jni.cc | |
parent | 18f5292304101ca5a3825aba0f034f80d5546634 (diff) | |
download | gcc-3db5a98c3247be0dd8c39aa8801a430567289986.tar.gz |
* jni.cc (add_char): Conditional on INTERPRETER.
(mangled_name): Likewise.
(call): Likewise.
* include/java-interp.h (class _Jv_MethodBase): Conditional on
INTERPRETER.
(class _Jv_JNIMethod): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index da964e14cf3..82105a4d66f 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -8,12 +8,6 @@ This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ -// Note: currently we take the approach of not checking most -// arguments. Instead we could do more checking conditionally (e.g., -// if DEBUG is defined). That might be beneficial in some cases, -// though to me it seems that one could just as easily use the -// debugger. - #include <config.h> #include <stddef.h> @@ -1205,6 +1199,8 @@ _Jv_JNI_FromReflectedMethod (JNIEnv *, jobject method) +#ifdef INTERPRETER + // Add a character to the buffer, encoding properly. static void add_char (char *buf, jchar c, int *here) @@ -1347,6 +1343,7 @@ _Jv_JNIMethod::call (ffi_cif *cif, void *ret, ffi_raw *args, void *__this) } // The actual call to the JNI function. + // FIXME: if this is a static function we must include the class! ffi_raw_call (cif, (void (*) (...)) _this->function, ret, args); do @@ -1359,6 +1356,8 @@ _Jv_JNIMethod::call (ffi_cif *cif, void *ret, ffi_raw *args, void *__this) JvThrow (env.ex); } +#endif /* INTERPRETER */ + #define NOT_IMPL NULL |