diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-16 15:13:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-16 15:13:07 +0000 |
commit | e967e0cc978d647040ac5616d389e9007d593464 (patch) | |
tree | 1f33ce27a77473b2e90b549d42399b73d4123497 /Build/source/texk/kpathsea/variable.h | |
parent | 49f1fb6887627cdb7cf524aaef9b92108c894381 (diff) |
new reentrant kpathsea API (from Taco)
git-svn-id: svn://tug.org/texlive/trunk@12401 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/variable.h')
-rw-r--r-- | Build/source/texk/kpathsea/variable.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/variable.h b/Build/source/texk/kpathsea/variable.h index 4c92e0e00f2..2dd97c4cb30 100644 --- a/Build/source/texk/kpathsea/variable.h +++ b/Build/source/texk/kpathsea/variable.h @@ -24,7 +24,7 @@ /* Return the (variable-expanded) environment variable value or config file value, or NULL. */ -extern KPSEDLL string kpse_var_value P1H(const_string var); +extern KPSEDLL string kpathsea_var_value (kpathsea kpse, const_string var); /* Expand $VAR, ${VAR}, and ~ references in SRC, returning the (always newly dynamically-allocated) result. An unterminated ${ or any other @@ -36,6 +36,11 @@ extern KPSEDLL string kpse_var_value P1H(const_string var); In any case, ``expansion'' means calling `getenv'; if the variable is not set, look in texmf.cnf files for a definition. If not set there, either, the expansion is the empty string (no error). */ -extern KPSEDLL string kpse_var_expand P1H(const_string src); +extern KPSEDLL string kpathsea_var_expand (kpathsea kpse, const_string src); + +#if defined (KPSE_COMPAT_API) +extern KPSEDLL string kpse_var_value (const_string var); +extern KPSEDLL string kpse_var_expand (const_string src); +#endif #endif /* not KPATHSEA_VARIABLE_H */ |