summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2017-03-25 17:39:45 -0400
committerRobin Watts <Robin.Watts@artifex.com>2017-03-27 10:50:17 -0400
commit66f878d1d7c580f9010e9f362399606989671a45 (patch)
treeb00058d13efff94b659230e05f3df485f2c42287 /source/tools/murun.c
parentd3087bb261de53557572a49458a2ae88a2d38453 (diff)
downloadmupdf-66f878d1d7c580f9010e9f362399606989671a45.tar.xz
Tweak document_writer - don't pass dev back in.
It seems odd for a document writer to pass a device pointer out, and then require it to be passed back in. Hide that in the public API.
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c
index 75f5d19f..9ee0f0da 100644
--- a/source/tools/murun.c
+++ b/source/tools/murun.c
@@ -2755,9 +2755,8 @@ static void ffi_DocumentWriter_endPage(js_State *J)
{
fz_context *ctx = js_getcontext(J);
fz_document_writer *wri = js_touserdata(J, 0, "fz_document_writer");
- fz_device *device = js_touserdata(J, 1, "fz_device");
fz_try(ctx)
- fz_end_page(ctx, wri, device);
+ fz_end_page(ctx, wri);
fz_catch(ctx)
rethrow(J);
}
@@ -4360,8 +4359,8 @@ int murun_main(int argc, char **argv)
js_newobject(J);
{
jsB_propfun(J, "DocumentWriter.beginPage", ffi_DocumentWriter_beginPage, 1);
- jsB_propfun(J, "DocumentWriter.endPage", ffi_DocumentWriter_endPage, 1);
- jsB_propfun(J, "DocumentWriter.close", ffi_DocumentWriter_close, 1);
+ jsB_propfun(J, "DocumentWriter.endPage", ffi_DocumentWriter_endPage, 0);
+ jsB_propfun(J, "DocumentWriter.close", ffi_DocumentWriter_close, 0);
}
js_setregistry(J, "fz_document_writer");