summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-08-24 23:39:57 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-01 23:09:05 +0800
commit9ccbd3fc7d3b7589d6ec6274e15a2d2530837d8f (patch)
treec940f354c9d0d00c4186ac680bd3b9cdb7b7c455
parent77d455f8e2cb2399b13e0ecb628199be2a2f4ad5 (diff)
downloadmupdf-9ccbd3fc7d3b7589d6ec6274e15a2d2530837d8f.tar.xz
JNI: Whitespace/comment/error message cleanup.
-rw-r--r--platform/java/mupdf_native.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index fc3bebbb..8ad28c77 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -1155,7 +1155,8 @@ static inline void from_jfloatArray(JNIEnv *env, float *color, jint n, jfloatArr
if (jcolor == NULL)
len = 0;
- else {
+ else
+ {
len = (*env)->GetArrayLength(env, jcolor);
if (len > n)
len = n;
@@ -3124,7 +3125,8 @@ FUN(Path_getBounds)(JNIEnv *env, jobject self, jobject jstroke, jobject jctm)
return jrect;
}
-typedef struct {
+typedef struct
+{
JNIEnv *env;
jobject obj;
} path_walker_state;
@@ -3807,8 +3809,6 @@ FUN(Annotation_toDisplayList)(JNIEnv *env, jobject self)
return to_DisplayList_safe_own(ctx, env, list);
}
-/* Link interface */
-
/* Document interface */
JNIEXPORT void JNICALL
@@ -4233,7 +4233,7 @@ FUN(Page_getAnnotations)(JNIEnv *env, jobject self)
annot = fz_next_annot(ctx, annot);
}
if (annot != NULL || i != annot_count)
- fz_throw(ctx, FZ_ERROR_GENERIC, "getAnnotations failed (4)");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "getAnnotations failed (2)");
}
fz_catch(ctx)
{
@@ -4304,7 +4304,7 @@ FUN(Page_getLinks)(JNIEnv *env, jobject self)
link = link->next;
}
if (link != NULL || i != link_count)
- fz_throw(ctx, FZ_ERROR_GENERIC, "getLinks failed (3)");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "getLinks failed (2)");
}
fz_always(ctx)
fz_drop_link(ctx, links);