summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/c-pathch.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-13 17:23:10 +0000
committerKarl Berry <karl@freefriends.org>2018-12-13 17:23:10 +0000
commit4d763ea3fc9e08f00534d39b6ba9dfc621bf6402 (patch)
tree9c93c3d6f8122be8235a9dce24564348125ed558 /Build/source/texk/kpathsea/c-pathch.h
parentf29df809ce8fc8a1295118a60b33a476ab42399e (diff)
have kpsewhich --var-value expand braces too; also, recognize eithe ; or : regardless of the current system when parsing elements from a path (https://github.com/TeX-Live/texlive-source/issues/3)
git-svn-id: svn://tug.org/texlive/trunk@49400 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/c-pathch.h')
-rw-r--r--Build/source/texk/kpathsea/c-pathch.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/c-pathch.h b/Build/source/texk/kpathsea/c-pathch.h
index 76352f82a6d..6234b56c9b6 100644
--- a/Build/source/texk/kpathsea/c-pathch.h
+++ b/Build/source/texk/kpathsea/c-pathch.h
@@ -1,7 +1,7 @@
/* c-pathch.h: define the characters which separate components of
filenames and environment variable paths.
- Copyright 1992, 1993, 1995, 1997, 2008 Karl Berry.
+ Copyright 1992, 1993, 1995, 1997, 2008, 2018 Karl Berry.
Copyright 1997, 1999, 2001, 2005 Olaf Weber.
This library is free software; you can redistribute it and/or
@@ -97,4 +97,13 @@
#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. */
+#endif
+
#endif /* not C_PATHCH_H */