diff options
author | Karl Berry <karl@freefriends.org> | 2018-02-01 17:55:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-02-01 17:55:44 +0000 |
commit | 4ee655e7ae033901bf8b6c959fd72bdaf444aff7 (patch) | |
tree | a1338b8bfb88f1af5a16a12e0325cb1c06b50fc6 /Build/source/texk/kpathsea/lib.h | |
parent | f0b4f93decd9f9bf1a8b070777a6492ea8d5d496 (diff) |
KPSE_CNF_P convenience macro
git-svn-id: svn://tug.org/texlive/trunk@46512 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/lib.h')
-rw-r--r-- | Build/source/texk/kpathsea/lib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/lib.h b/Build/source/texk/kpathsea/lib.h index 8c1f8e1ecc4..df380f654d6 100644 --- a/Build/source/texk/kpathsea/lib.h +++ b/Build/source/texk/kpathsea/lib.h @@ -122,6 +122,12 @@ extern "C" { /* If the environment variable TEST is set, return it; otherwise, DEFAULT. This is useful for paths that use more than one envvar. */ #define ENVVAR(test, default) (getenv (test) ? (test) : (default)) + +/* Return whether a kpse configuration is (some sort of) true. Check + for negation values, so a value like "2" will be true, just in case. */ +#define KPSE_CNF_P(val) \ + ((val) && *(val) && *(val) != 'f' && *(val) != '0') + /* Return a fresh copy of S1 followed by S2, et al. */ extern KPSEDLL string concat (const_string s1, const_string s2); |