texlive[55974] Build/source/texk/dvipdfm-x: simple modifications for

commits+kakuto at tug.org commits+kakuto at tug.org
Tue Jul 28 07:13:10 CEST 2020


Revision: 55974
          http://tug.org/svn/texlive?view=revision&revision=55974
Author:   kakuto
Date:     2020-07-28 07:13:09 +0200 (Tue, 28 Jul 2020)
Log Message:
-----------
simple modifications for LIBDPX (Clerk Ma)

Modified Paths:
--------------
    trunk/Build/source/texk/dvipdfm-x/ChangeLog
    trunk/Build/source/texk/dvipdfm-x/pdfobj.c

Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog	2020-07-27 23:53:39 UTC (rev 55973)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog	2020-07-28 05:13:09 UTC (rev 55974)
@@ -1,3 +1,7 @@
+2020-07-28  Clerk Ma  <maqiyuan130324 at vip.qq.com>
+
+	* pdfobj.c: Simple modifications for LIBDPX.
+
 2020-07-26  Shunsaku Hirata  <shunsaku.hirata74 at gmail.com>
 
 	* cmap_write.c: Change ariable names.

Modified: trunk/Build/source/texk/dvipdfm-x/pdfobj.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/pdfobj.c	2020-07-27 23:53:39 UTC (rev 55973)
+++ trunk/Build/source/texk/dvipdfm-x/pdfobj.c	2020-07-28 05:13:09 UTC (rev 55974)
@@ -215,9 +215,6 @@
     size_t      file_position;
     int         line_position;
     size_t      compression_saved;
-#if defined(LIBDPX)
-    size_t      file_stats;
-#endif /* LIBDPX */
   } output;
 
   struct {
@@ -236,6 +233,10 @@
   pdf_obj      *current_objstm;
 };
 
+#if defined(LIBDPX)
+size_t output_file_size;
+#endif /* LIBDPX */
+
 /* Underway to reform PDF related code... For a moment place pdf_out
  * object as a static variable. */
 static pdf_out pout;
@@ -269,7 +270,7 @@
   p->output.line_position = 0;
   p->output.compression_saved = 0;
 #if defined(LIBDPX)
-  p->output.file_stats = 0;
+  output_file_size = 0;
 #endif /* LIBDPX */
 
   p->obj.next_label = 1;
@@ -639,8 +640,7 @@
 long
 pdf_output_stats (void)
 {
-  pdf_out *p = current_output();
-  return p->output.file_stats;
+  return (long) output_file_size;
 }
 #endif /* LIBDPX */
 
@@ -700,7 +700,7 @@
 #if !defined(LIBDPX)
     MESG("%ld bytes written", p->output.file_position);
 #else
-    p->output.file_stats = p->output.file_position;
+    output_file_size = p->output.file_position;
 #endif /* !LIBDPX */
 
     MFCLOSE(p->output.file);



More information about the tex-live-commits mailing list.