summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/pdfobj.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 6925adaf163..fc5bbf1ef31 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2018-12-27 Clerk Ma <maqiyuan130324@vip.qq.com>
+
+ * pdfobj.c: Introduce a static variable pdf_output_file_stats
+ for LIBDPX. It does not affect (x)dvipdfmx.
+
2018-12-21 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* dvi.[ch], dvipdfmx.c, pdfdoc.[ch], pdfencrypt.[ch],
diff --git a/Build/source/texk/dvipdfm-x/pdfobj.c b/Build/source/texk/dvipdfm-x/pdfobj.c
index a09bb2a41b8..be799cc2290 100644
--- a/Build/source/texk/dvipdfm-x/pdfobj.c
+++ b/Build/source/texk/dvipdfm-x/pdfobj.c
@@ -476,10 +476,11 @@ dump_xref_stream (void)
}
#if defined(LIBDPX)
+static long pdf_output_file_stats = 0;
long
pdf_output_stats (void)
{
- return pdf_output_file_position;
+ return pdf_output_file_stats;
}
#endif /* LIBDPX */
@@ -535,6 +536,8 @@ pdf_out_flush (void)
}
#if !defined(LIBDPX)
MESG("%ld bytes written", pdf_output_file_position);
+#else
+ pdf_output_file_stats = pdf_output_file_position;
#endif /* !LIBDPX */
MFCLOSE(pdf_output_file);