summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/dvi.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-08-06 09:37:05 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-08-06 09:37:05 +0000
commitf231a5d58023c8f1319480643976f01b3b8797d3 (patch)
treef5f526d2de916574507a91ad064cbe06057056f6 /Build/source/texk/dvipdfm-x/dvi.c
parent23efce276c60a5a2f3b2f1decb9a17fc894df597 (diff)
dvipdfm-x: Additional tests. Bugfix from Akira
git-svn-id: svn://tug.org/texlive/trunk@31363 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dvi.c')
-rw-r--r--Build/source/texk/dvipdfm-x/dvi.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvi.c b/Build/source/texk/dvipdfm-x/dvi.c
index 6a51e118776..25bdbe6e7eb 100644
--- a/Build/source/texk/dvipdfm-x/dvi.c
+++ b/Build/source/texk/dvipdfm-x/dvi.c
@@ -542,7 +542,6 @@ get_dvi_info (long post_location)
}
}
-#ifdef XETEX
static void
get_preamble_dvi_info (void)
{
@@ -583,7 +582,6 @@ get_preamble_dvi_info (void)
num_pages = 0x7FFFFFFUL; /* for linear processing: we just keep going! */
}
-#endif
const char *
dvi_comment (void)
@@ -2257,8 +2255,7 @@ dvi_init (char *dvi_filename, double mag)
{
long post_location;
-#ifdef XETEX
- if (dvi_filename == NULL) { /* no filename: reading from stdin, probably a pipe */
+ if (!dvi_filename) { /* no filename: reading from stdin, probably a pipe */
#ifdef WIN32
setmode(fileno(stdin), _O_BINARY);
#endif
@@ -2267,12 +2264,8 @@ dvi_init (char *dvi_filename, double mag)
get_preamble_dvi_info();
do_scales(mag);
- }
- else
-#endif
- {
+ } else {
dvi_file = MFOPEN(dvi_filename, FOPEN_RBIN_MODE);
-#ifdef XETEX
if (!dvi_file) {
char *p;
p = strrchr(dvi_filename, '.');
@@ -2291,7 +2284,6 @@ dvi_init (char *dvi_filename, double mag)
#endif
}
}
-#endif
if (!dvi_file) {
ERROR("Could not open specified DVI%s file: %s",
is_xetex ? " (or XDV)" : "", dvi_filename);