diff options
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfobj.c | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 9a3ee71ebcc..1d14727f586 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,7 @@ +2020-07-28 Clerk Ma <maqiyuan130324@vip.qq.com> + + * pdfobj.c: Simple modifications for LIBDPX. + 2020-07-26 Shunsaku Hirata <shunsaku.hirata74@gmail.com> * cmap_write.c: Change ariable names. diff --git a/Build/source/texk/dvipdfm-x/pdfobj.c b/Build/source/texk/dvipdfm-x/pdfobj.c index 12bd39ba862..6c90ad861a8 100644 --- a/Build/source/texk/dvipdfm-x/pdfobj.c +++ b/Build/source/texk/dvipdfm-x/pdfobj.c @@ -215,9 +215,6 @@ struct pdf_out { 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 @@ struct pdf_out { 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 @@ init_pdf_out_struct (pdf_out *p) 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 @@ dump_xref_stream (pdf_out *p) 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 @@ pdf_out_flush (void) #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); |