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:
Ranjit Mathew 2003-01-24 17:39:49 +00:00 committed by Tom Tromey
parent a38b3eea74
commit 38997f1bf5
13 changed files with 31 additions and 13 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <calls.h>
jint
JNIEXPORT jint JNICALL
Java_calls_docall (JNIEnv *env, jobject _this)
{
jmethodID method;

View File

@ -1,7 +1,7 @@
#include <jni.h>
#include <field.h>
jobjectArray
JNIEXPORT jobjectArray JNICALL
Java_field_fetch (JNIEnv *env, jobject this)
{
jclass cls;

View File

@ -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");

View File

@ -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);

View File

@ -1,6 +1,6 @@
#include <invoke.h>
jint
JNIEXPORT jint JNICALL
Java_invoke_val (JNIEnv *env, jclass klass)
{
return 23;

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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)
{

View File

@ -1,6 +1,6 @@
#include <virtual.h>
jboolean
JNIEXPORT jboolean JNICALL
Java_virtual_equals (JNIEnv *env, jobject thisv, jobject other)
{
return JNI_FALSE;