diff options
| -rw-r--r-- | DEPENDENCIES | 2 | ||||
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | libgamma_AdjustmentMethod.c | 12 | ||||
| -rw-r--r-- | libgamma_LibgammaException.c | 18 |
4 files changed, 16 insertions, 18 deletions
diff --git a/DEPENDENCIES b/DEPENDENCIES index 06cc166..cad084c 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -4,7 +4,6 @@ RUNTIME DEPENDENCIES: libgamma>=0.7.4 libc - BUILD DEPENDENCIES: java-environment>=1.5 @@ -15,7 +14,6 @@ BUILD DEPENDENCIES: coreutils sed - INSTALL DEPENDENCIES: make @@ -1 +1 @@ -Java wrapper for libgamma. +Java wrapper for libgamma diff --git a/libgamma_AdjustmentMethod.c b/libgamma_AdjustmentMethod.c index 9ebf4ec..2983652 100644 --- a/libgamma_AdjustmentMethod.c +++ b/libgamma_AdjustmentMethod.c @@ -46,7 +46,7 @@ Java_libgamma_AdjustmentMethod_libgamma_1list_1methods(JNIEnv *env, jclass class } /** - * Check whether an adjustment method is available, non-existing (invalid) methods will be + * Check whether an adjustment method is available; non-existing (invalid) methods will be * identified as not available under the rationale that the library may be out of date * * @param method The adjustment method @@ -111,8 +111,8 @@ out: jstring Java_libgamma_AdjustmentMethod_libgamma_1method_1default_1site(JNIEnv *env, jclass class, jint method) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; * therefore we will simply skip it */ const char *do_not_free_this = libgamma_method_default_site(method); @@ -134,15 +134,15 @@ Java_libgamma_AdjustmentMethod_libgamma_1method_1default_1site(JNIEnv *env, jcla * the default site for an adjustment method * * @param method The adjustment method (display server and protocol) - * @return The environ variables that is used to determine the + * @return The environment variables that are used to determine the * default site; {@code null} if there is none, that is, * if the method does not support multiple sites */ jstring Java_libgamma_AdjustmentMethod_libgamma_1method_1default_1site_1variable(JNIEnv *env, jclass class, jint method) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; * therefore we will simply skip it */ const char *do_not_free_this = libgamma_method_default_site_variable(method); diff --git a/libgamma_LibgammaException.c b/libgamma_LibgammaException.c index 47c5fde..5b7bd11 100644 --- a/libgamma_LibgammaException.c +++ b/libgamma_LibgammaException.c @@ -17,10 +17,10 @@ jstring Java_libgamma_LibgammaException_name_1of_1error(JNIEnv *env, jclass class, jint value) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; * therefore we will simply skip it */ - + const char *do_not_free_this = libgamma_name_of_error(value); char *this_will_be_freed; size_t n; @@ -37,7 +37,7 @@ Java_libgamma_LibgammaException_name_1of_1error(JNIEnv *env, jclass class, jint /** * Return the value of a <tt>libgamma</tt> error definition - * refered to by name + * referred to by name * * @param name The name of the definition associated with the error code * @return The error code, zero if the name is {@code null} @@ -78,8 +78,8 @@ Java_libgamma_LibgammaException_libgamma_1group_1gid(JNIEnv *env, jclass class) jstring Java_libgamma_LibgammaException_libgamma_1group_1name(JNIEnv *env, jclass class) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; * therefore we will simply skip it */ const char *do_not_free_this = libgamma_group_name_get(); @@ -105,9 +105,9 @@ Java_libgamma_LibgammaException_libgamma_1group_1name(JNIEnv *env, jclass class) jstring Java_libgamma_LibgammaException_strerror(JNIEnv *env, jclass class, jint error_code) { - /* It is really unlikely that `malloc` returns `NULL` here - * and error handing makes this unnecessarily comples, - * therefore we will simply skip it */ + /* It is really unlikely that `malloc` returns `NULL` here, + * and error handling makes this unnecessarily complex; + * therefore we will simply skip it. */ const char *do_not_free_this = strerror(error_code); char *this_will_be_freed; |
