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_LibgammaException.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/libgamma_LibgammaException.c') diff --git a/src/libgamma_LibgammaException.c b/src/libgamma_LibgammaException.c index fac3e1c..56c502d 100644 --- a/src/libgamma_LibgammaException.c +++ b/src/libgamma_LibgammaException.c @@ -18,6 +18,10 @@ #include "libgamma_LibgammaException.h" +#define J JNIEnv* env, jclass class + + + /** * Returns the name of the definition associated with * a libgamma error code. @@ -26,7 +30,7 @@ * @return The name of the definition associated with the error code, * {@code null} if the error code does not exist. */ -jstring Java_libgamma_LibgammaException_name_1of_1error(JNIEnv *, jclass, jint); +jstring Java_libgamma_LibgammaException_name_1of_1error(J, jint value); /** @@ -37,7 +41,7 @@ jstring Java_libgamma_LibgammaException_name_1of_1error(JNIEnv *, jclass, jint); * @return The error code, zero if the name is {@code null} * or does not refer to a libgamma error. */ -jint Java_libgamma_LibgammaException_value_1of_1error(JNIEnv *, jclass, jstring); +jint Java_libgamma_LibgammaException_value_1of_1error(J, jstring name); /** @@ -45,7 +49,7 @@ jint Java_libgamma_LibgammaException_value_1of_1error(JNIEnv *, jclass, jstring) * * @return The value that should go to {@link #group_gid}. */ -jint Java_libgamma_LibgammaException_libgamma_1group_1gid(JNIEnv *, jclass); +jint Java_libgamma_LibgammaException_libgamma_1group_1gid(J); /** @@ -53,7 +57,7 @@ jint Java_libgamma_LibgammaException_libgamma_1group_1gid(JNIEnv *, jclass); * * @return The value that should go to {@link #group_name}. */ -jstring Java_libgamma_LibgammaException_libgamma_1group_1name(JNIEnv *, jclass); +jstring Java_libgamma_LibgammaException_libgamma_1group_1name(J); /** @@ -62,5 +66,5 @@ jstring Java_libgamma_LibgammaException_libgamma_1group_1name(JNIEnv *, jclass); * @param error_code The error code. * @return A textual description of the error code. */ -jstring Java_libgamma_LibgammaException_strerror(JNIEnv *, jclass, jint); +jstring Java_libgamma_LibgammaException_strerror(J, jint error_code); -- cgit v1.2.3-70-g09d2