diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-10 13:02:06 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-10 13:02:06 +0000 |
commit | 0d1dcea12f68a273faa21a51057c75738dca9428 (patch) | |
tree | ec61d62c596ea7938b90bceefd8d41fb0d56cb6c /Build/source/texk/dvipdfm-x/pdfobj.c | |
parent | 9a65ae034683ca1b3fea9021eb9a13a2fbdcacb2 (diff) |
dvipdfm-x: Reduce diffs between dvipdfmx and xdvipdfmx
git-svn-id: svn://tug.org/texlive/trunk@31407 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfobj.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfobj.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfobj.c b/Build/source/texk/dvipdfm-x/pdfobj.c index bca5bb2ad8e..711a4aca288 100644 --- a/Build/source/texk/dvipdfm-x/pdfobj.c +++ b/Build/source/texk/dvipdfm-x/pdfobj.c @@ -315,15 +315,12 @@ pdf_out_init (const char *filename, int do_encryption) output_stream = NULL; -#ifdef XETEX if (filename == NULL) { /* no filename: writing to stdout */ #ifdef WIN32 - setmode(fileno(stdout), _O_BINARY); + setmode(fileno(stdout), _O_BINARY); #endif pdf_output_file = stdout; - } else -#endif - { + } else { pdf_output_file = MFOPEN(filename, FOPEN_WBIN_MODE); if (!pdf_output_file) { if (strlen(filename) < 128) @@ -1363,7 +1360,7 @@ pdf_pop_array (pdf_obj *array) static void write_dict (pdf_dict *dict, FILE *file) { -#ifdef XETEX +#if 0 pdf_out (file, "<<\n", 3); /* dropping \n saves few kb. */ #else pdf_out (file, "<<", 2); @@ -1374,12 +1371,12 @@ write_dict (pdf_dict *dict, FILE *file) pdf_out_white(file); } pdf_write_obj(dict->value, file); -#ifdef XETEX +#if 0 pdf_out_char (file, '\n'); /* removing this saves few kb. */ #endif dict = dict->next; } - pdf_out(file, ">>", 2); + pdf_out (file, ">>", 2); } pdf_obj * |