calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes.
2003-01-24 Ranjit Mathew <rmathew@hotmail.com> * libjava.jni/calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. * libjava.jni/field.c (Java_field_fetch): Likewise. * libjava.jni/final_method.c (Java_final_1method_meth): Likewise. * libjava.jni/findclass.c (Java_findclass_doit): Likewise. * libjava.jni/invoke.c (Java_invoke_val): Likewise. * libjava.jni/martin.c (Java_martin_myNative): Likewise. * libjava.jni/noclass.c (Java_noclass_find_1it): Likewise. * libjava.jni/overload.c (Java_overload_over__I): Likewise. (Java_overload_over__II): Likewise. * libjava.jni/register.c (JNI_OnLoad): Likewise. * libjava.jni/simple_int.c (Java_simple_1int_nat): Likewise. * libjava.jni/throwit.c (Java_throwit_throwit): Likewise. * libjava.jni/virtual.c (Java_virtual_equals): Likewise. From-SVN: r61720
This commit is contained in:
parent
a38b3eea74
commit
38997f1bf5
@ -1,3 +1,20 @@
|
||||
2003-01-24 Ranjit Mathew <rmathew@hotmail.com>
|
||||
|
||||
* libjava.jni/calls.c (Java_calls_docall): Define with
|
||||
JNIEXPORT and JNICALL method attributes.
|
||||
* libjava.jni/field.c (Java_field_fetch): Likewise.
|
||||
* libjava.jni/final_method.c (Java_final_1method_meth): Likewise.
|
||||
* libjava.jni/findclass.c (Java_findclass_doit): Likewise.
|
||||
* libjava.jni/invoke.c (Java_invoke_val): Likewise.
|
||||
* libjava.jni/martin.c (Java_martin_myNative): Likewise.
|
||||
* libjava.jni/noclass.c (Java_noclass_find_1it): Likewise.
|
||||
* libjava.jni/overload.c (Java_overload_over__I): Likewise.
|
||||
(Java_overload_over__II): Likewise.
|
||||
* libjava.jni/register.c (JNI_OnLoad): Likewise.
|
||||
* libjava.jni/simple_int.c (Java_simple_1int_nat): Likewise.
|
||||
* libjava.jni/throwit.c (Java_throwit_throwit): Likewise.
|
||||
* libjava.jni/virtual.c (Java_virtual_equals): Likewise.
|
||||
|
||||
2003-01-21 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.jacks/jacks.xfail: All 8.4.3 tests and 9.4-modifier-10
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <calls.h>
|
||||
|
||||
jint
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_calls_docall (JNIEnv *env, jobject _this)
|
||||
{
|
||||
jmethodID method;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <jni.h>
|
||||
#include <field.h>
|
||||
|
||||
jobjectArray
|
||||
JNIEXPORT jobjectArray JNICALL
|
||||
Java_field_fetch (JNIEnv *env, jobject this)
|
||||
{
|
||||
jclass cls;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <final_method.h>
|
||||
|
||||
jstring
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_final_1method_meth (JNIEnv *env, jobject thisv)
|
||||
{
|
||||
return (*env)->NewStringUTF (env, "zardoz has spoken");
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <findclass.h>
|
||||
|
||||
jclass
|
||||
JNIEXPORT jclass JNICALL
|
||||
Java_findclass_doit (JNIEnv *env, jclass klass, jstring name)
|
||||
{
|
||||
const char *buf = (*env)->GetStringUTFChars (env, name, NULL);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <invoke.h>
|
||||
|
||||
jint
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_invoke_val (JNIEnv *env, jclass klass)
|
||||
{
|
||||
return 23;
|
||||
|
@ -2,7 +2,8 @@
|
||||
#include "martin.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void Java_martin_myNative(JNIEnv* env, jobject this, jstring s)
|
||||
JNIEXPORT void JNICALL
|
||||
Java_martin_myNative(JNIEnv* env, jobject this, jstring s)
|
||||
{
|
||||
jclass cls;
|
||||
jfieldID fid;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <noclass.h>
|
||||
|
||||
void
|
||||
JNIEXPORT void JNICALL
|
||||
Java_noclass_find_1it (JNIEnv *env, jclass k)
|
||||
{
|
||||
/* We cause an exception by asking for a class we know does not
|
||||
|
@ -1,13 +1,13 @@
|
||||
#include <overload.h>
|
||||
|
||||
jint
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_overload_over__I (JNIEnv *env, jclass klass, jint val)
|
||||
{
|
||||
return val;
|
||||
}
|
||||
|
||||
|
||||
jint
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_overload_over__II (JNIEnv *env, jclass klass, jint one, jint two)
|
||||
{
|
||||
return one + two;
|
||||
|
@ -8,7 +8,7 @@ some_random_name (JNIEnv *env, jclass k, jint v)
|
||||
return v - 1;
|
||||
}
|
||||
|
||||
jint
|
||||
JNIEXPORT jint JNICALL
|
||||
JNI_OnLoad (JavaVM *vm, void *nothing)
|
||||
{
|
||||
JNIEnv *env;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <simple_int.h>
|
||||
|
||||
jint
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_simple_1int_nat (JNIEnv *env, jclass klass, jint val)
|
||||
{
|
||||
return 2 * val;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <throwit.h>
|
||||
|
||||
void
|
||||
JNIEXPORT void JNICALL
|
||||
Java_throwit_throwit (JNIEnv *env, jclass klass, jstring name,
|
||||
jboolean is_new)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <virtual.h>
|
||||
|
||||
jboolean
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_virtual_equals (JNIEnv *env, jobject thisv, jobject other)
|
||||
{
|
||||
return JNI_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user