From 45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Sep 2014 00:32:17 +0200 Subject: add names to the parameters in the .c files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libgamma_Site.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/libgamma_Site.c') diff --git a/src/libgamma_Site.c b/src/libgamma_Site.c index ba66c35..5edadfb 100644 --- a/src/libgamma_Site.c +++ b/src/libgamma_Site.c @@ -18,6 +18,10 @@ #include "libgamma_Site.h" +#define J JNIEnv* env, jclass class + + + /** * Create a site state. * @@ -27,7 +31,7 @@ * Element 1: The value for {@link #partitions_available} * Element 2: Error code, zero on success. */ -jlongArray Java_libgamma_Site_libgamma_1site_1create(JNIEnv *, jclass, jint, jstring); +jlongArray Java_libgamma_Site_libgamma_1site_1create(J, jint method, jstring site); /** @@ -36,7 +40,7 @@ jlongArray Java_libgamma_Site_libgamma_1site_1create(JNIEnv *, jclass, jint, jst * * @param address The site state. */ -void Java_libgamma_Site_libgamma_1site_1free(JNIEnv *, jclass, jlong); +void Java_libgamma_Site_libgamma_1site_1free(J, jlong address); /** @@ -45,5 +49,5 @@ void Java_libgamma_Site_libgamma_1site_1free(JNIEnv *, jclass, jlong); * @param address The site state. * @return Zero on success, and error code on failure. */ -jint Java_libgamma_Site_libgamma_1site_1restore(JNIEnv *, jclass, jlong); +jint Java_libgamma_Site_libgamma_1site_1restore(J, jlong address); -- cgit v1.2.3-70-g09d2