summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFred Ross-Perry <fred.ross-perry@artifex.com>2018-01-12 11:30:44 -0800
committerSebastian Rasmussen <sebras@gmail.com>2018-01-15 14:21:00 +0100
commita926254b62d3f0e99e19c1d979217ad585e41f2b (patch)
tree7223738bc477ee3e3b482b853d192c0f5be6c570 /platform
parent3df11d8c8cc3e6d638d0864d994219ac89f734ad (diff)
downloadmupdf-a926254b62d3f0e99e19c1d979217ad585e41f2b.tar.xz
Use C comments instead of C++ comments.
Diffstat (limited to 'platform')
-rw-r--r--platform/java/mupdf_native.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index eda01ed9..2268cc97 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -5890,28 +5890,28 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self)
if (block->type == FZ_STEXT_BLOCK_TEXT)
++len;
- // create block array
+ /* create block array */
barr = (*env)->NewObjectArray(env, len, cls_TextBlock, NULL);
if (!barr) return NULL;
for (b=0, block = page->first_block; block; ++b, block = block->next)
{
- // only do text blocks
+ /* only do text blocks */
if (block->type != FZ_STEXT_BLOCK_TEXT)
continue;
- // make a block
+ /* make a block */
jblock = (*env)->NewObject(env, cls_TextBlock, mid_TextBlock_init, self);
if (!jblock) return NULL;
- // set block's bbox
+ /* set block's bbox */
jrect = to_Rect_safe(ctx, env, &(block->bbox));
if (!jrect) return NULL;
(*env)->SetObjectField(env, jblock, fid_TextBlock_bbox, jrect);
(*env)->DeleteLocalRef(env, jrect);
- // create block's line array
+ /* create block's line array */
len = 0;
for (line = block->u.t.first_line; line; line = line->next)
++len;
@@ -5921,64 +5921,64 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self)
for (l=0, line = block->u.t.first_line; line; ++l, line = line->next)
{
- // make a line
+ /* make a line */
jline = (*env)->NewObject(env, cls_TextLine, mid_TextLine_init, self);
if (!jline) return NULL;
- // set line's bbox
+ /* set line's bbox */
jrect = to_Rect_safe(ctx, env, &(line->bbox));
if (!jrect) return NULL;
(*env)->SetObjectField(env, jline, fid_TextLine_bbox, jrect);
(*env)->DeleteLocalRef(env, jrect);
- // count the chars
+ /* count the chars */
len = 0;
for (ch = line->first_char; ch; ch = ch->next)
len++;
- // make a char array
+ /* make a char array */
carr = (*env)->NewObjectArray(env, len, cls_TextChar, NULL);
if (!carr) return NULL;
for (c=0, ch = line->first_char; ch; ++c, ch = ch->next)
{
- // create a char
+ /* create a char */
jchar = (*env)->NewObject(env, cls_TextChar, mid_TextChar_init, self);
if (!jchar) return NULL;
- // set the char's bbox
+ /* set the char's bbox */
jrect = to_Rect_safe(ctx, env, &(ch->bbox));
if (!jrect) return NULL;
(*env)->SetObjectField(env, jchar, fid_TextChar_bbox, jrect);
(*env)->DeleteLocalRef(env, jrect);
- // set the char's value
+ /* set the char's value */
(*env)->SetIntField(env, jchar, fid_TextChar_c, ch->c);
- // add it to the char array
+ /* add it to the char array */
(*env)->SetObjectArrayElement(env, carr, c, jchar);
if ((*env)->ExceptionCheck(env)) return NULL;
(*env)->DeleteLocalRef(env, jchar);
}
- // set the line's char array
+ /* set the line's char array */
(*env)->SetObjectField(env, jline, fid_TextLine_chars, carr);
- // add to the line array
+ /* add to the line array */
(*env)->SetObjectArrayElement(env, larr, l, jline);
if ((*env)->ExceptionCheck(env)) return NULL;
(*env)->DeleteLocalRef(env, jline);
}
- // set the block's line array
+ /* set the block's line array */
(*env)->SetObjectField(env, jblock, fid_TextBlock_lines, larr);
(*env)->DeleteLocalRef(env, larr);
- // add to the block array
+ /* add to the block array */
(*env)->SetObjectArrayElement(env, barr, b, jblock);
if ((*env)->ExceptionCheck(env)) return NULL;