diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-07-05 23:27:32 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-07-05 23:27:32 +0000 |
commit | 6ae06b1532def77d3f173bf682d34a85ad5bc687 (patch) | |
tree | a39667ed934f712e74a2ebf3c5121372ff228eff | |
parent | 431e94591a17899cc4939a4de8306597b73c08d1 (diff) |
Use !FILESTRCASEEQ instead of STR_CMP
git-svn-id: svn://tug.org/texlive/trunk@31105 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/src/dvi.c | 6 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/xsrc/dvi.c | 10 |
3 files changed, 6 insertions, 14 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index baaad496b6b..f3bb907f286 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,7 @@ +2013-07-06 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * src/dvi.c, xsrc/dvi.c: Use !FILESTRCASEEQ instead of STR_CMP + 2013-07-05 Peter Breitenlohner <peb@mppmu.mpg.de> * Removed diffs between src/ and xsrc/ version of these files diff --git a/Build/source/texk/dvipdfm-x/src/dvi.c b/Build/source/texk/dvipdfm-x/src/dvi.c index 9e18d63e73c..61a8ab8e456 100644 --- a/Build/source/texk/dvipdfm-x/src/dvi.c +++ b/Build/source/texk/dvipdfm-x/src/dvi.c @@ -1613,12 +1613,6 @@ dvi_do_page (long n, } } -#ifdef WIN32 -#define STR_CMP strcasecmp -#else -#define STR_CMP strcmp -#endif - double dvi_init (const char *dvi_filename, double mag) { diff --git a/Build/source/texk/dvipdfm-x/xsrc/dvi.c b/Build/source/texk/dvipdfm-x/xsrc/dvi.c index 0db3adf96b3..c540706e6d6 100644 --- a/Build/source/texk/dvipdfm-x/xsrc/dvi.c +++ b/Build/source/texk/dvipdfm-x/xsrc/dvi.c @@ -2201,12 +2201,6 @@ dvi_do_page (long n, } } -#ifdef WIN32 -#define STR_CMP strcasecmp -#else -#define STR_CMP strcmp -#endif - double dvi_init (char *dvi_filename, double mag) { @@ -2228,9 +2222,9 @@ dvi_init (char *dvi_filename, double mag) char *p; p = strrchr(dvi_filename, '.'); #ifdef XETEX - if (p == NULL || (STR_CMP(p, ".dvi") && STR_CMP(p, ".xdv"))) { + if (p == NULL || (!FILESTRCASEEQ(p, ".dvi") && !FILESTRCASEEQ(p, ".xdv"))) { #else - if (p == NULL || STR_CMP(p, ".dvi")) { + if (p == NULL || !FILESTRCASEEQ(p, ".dvi")) { #endif #ifdef XETEX strcat(dvi_filename, ".xdv"); |