diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-13 23:29:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-13 23:29:33 +0000 |
commit | f3efe786d898c1b5696ae8e347876bc07c7f4505 (patch) | |
tree | 1f0aea9840213d3055a62a3416d1b51f4ea7e3ba /Build/source/texk/kpathsea/c-pathch.h | |
parent | e69f0b4add2631161752438c5fb8565d39b8635d (diff) |
IS_KPSE_SEP: check for both : and ; only on Unix
git-svn-id: svn://tug.org/texlive/trunk@49410 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/c-pathch.h')
-rw-r--r-- | Build/source/texk/kpathsea/c-pathch.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Build/source/texk/kpathsea/c-pathch.h b/Build/source/texk/kpathsea/c-pathch.h index 6234b56c9b6..44b10103512 100644 --- a/Build/source/texk/kpathsea/c-pathch.h +++ b/Build/source/texk/kpathsea/c-pathch.h @@ -90,6 +90,10 @@ #else # define ENV_SEP ':' # define ENV_SEP_STRING ":" +/* Because paths in Kpathsea cnf files allow use of either ; or : separators + regardless of the current system, on Unix we sometimes need to check + for either . */ +# define IS_KPSE_SEP(ch) ((ch) == ':' || (ch) == ';') #endif #endif /* not ENV_SEP */ @@ -97,13 +101,11 @@ #define IS_ENV_SEP(ch) ((ch) == ENV_SEP) #endif -/* Because paths in Kpathsea cnf files are system-independent, allowing - use of either ; or : regardless of the current system, sometimes we - need to check for either of the possible path separators. */ #ifndef IS_KPSE_SEP -#define IS_KPSE_SEP(ch) ((ch) == ':' || (ch) == ';') -/* In principle we should do it differently on VMS and VMCMS, - but I'm guessing no one is compiling current kpathsea sources there. */ +/* But for Windows, we do not want to consider : as a path separator, + ever, because it is the drive separator (as in c:\tex). So just + check for the regular separator (;). */ +#define IS_KPSE_SEP(ch) (IS_ENV_SEP (ch)) #endif #endif /* not C_PATHCH_H */ |