aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_LibgammaException.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-05 00:32:17 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-05 00:32:17 +0200
commit45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8 (patch)
tree7bad7421c6ea20aa94e11dbf907ea550a290e137 /src/libgamma_LibgammaException.c
parentadd documation to .c files (diff)
downloadjlibgamma-45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8.tar.gz
jlibgamma-45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8.tar.bz2
jlibgamma-45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8.tar.xz
add names to the parameters in the .c files
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libgamma_LibgammaException.c')
-rw-r--r--src/libgamma_LibgammaException.c14
1 files changed, 9 insertions, 5 deletions
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 <tt>libgamma</tt> 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 <tt>libgamma</tt> 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);