diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2010-04-25 06:41:47 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2010-04-25 06:41:47 +0000 |
commit | 9da7e700be4aa780fce510d6f818891ef0b92ca0 (patch) | |
tree | 42f4d957517b04ae7f3fd62fce36ee1c1fed4f2d /Build | |
parent | d088323c2fc7b05be19deb741403148f63993c79 (diff) |
dvips.c: Use IS_DIR_SEP for the test of a directory separator.
git-svn-id: svn://tug.org/texlive/trunk@17986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 1 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/dvips.c | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 04304b01f47..8adec24d858 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,6 +1,7 @@ 2010-04-25 Akira Kakuto <kakuto@fuk.kindai.ac.jp> * writet1.c (edecrypt()): cast argument to byte to avoid warning. + * dvips.c: Use IS_DIR_SEP for the test of a directory separator. 2010-04-12 Peter Breitenlohner <peb@mppmu.mpg.de> diff --git a/Build/source/texk/dvipsk/dvips.c b/Build/source/texk/dvipsk/dvips.c index fe6f0283f6d..e03554540e3 100644 --- a/Build/source/texk/dvipsk/dvips.c +++ b/Build/source/texk/dvipsk/dvips.c @@ -79,7 +79,7 @@ int secure = 1; /* make safe for suid */ int secure_option = 0; /* set by -R */ int collatedcopies = 1; /* how many collated copies? */ int sectioncopies = 1; /* how many times to repeat each section? */ -integer pagecopies = 1; /* how many times to repeat each page? */ +integer pagecopies = 1; /* how many times to repeat each page? */ shalfword linepos = 0; /* where are we on the line being output? */ integer maxpages; /* the maximum number of pages */ Boolean notfirst, notlast; /* true if a first page was specified */ @@ -514,12 +514,8 @@ newoutname(void) { for (p = q; *p; p++) /* find last dot after last slash */ if (*p == '.') seqptr = p + 1; - else if (*p == '/') + else if (IS_DIR_SEP (*p)) seqptr = 0; -#ifdef DOSISH - else if (*p == '\\') - seqptr = 0; -#endif if (seqptr == 0) seqptr = p; nextstring += 5; /* make room for the number, up to five digits */ @@ -562,7 +558,7 @@ queryargs(void) } qargv[qargc] = (char *)NULL; } - + /* * Finally, our main routine. */ |