summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/expand.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-16 15:13:07 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-16 15:13:07 +0000
commite967e0cc978d647040ac5616d389e9007d593464 (patch)
tree1f33ce27a77473b2e90b549d42399b73d4123497 /Build/source/texk/kpathsea/expand.h
parent49f1fb6887627cdb7cf524aaef9b92108c894381 (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/expand.h')
-rw-r--r--Build/source/texk/kpathsea/expand.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/expand.h b/Build/source/texk/kpathsea/expand.h
index 7cb8a99de72..3bf21766d7b 100644
--- a/Build/source/texk/kpathsea/expand.h
+++ b/Build/source/texk/kpathsea/expand.h
@@ -24,19 +24,26 @@
/* Call kpse_var_expand and kpse_tilde_expand (in that order). Result
is always in fresh memory, even if no expansions were done. */
-extern KPSEDLL string kpse_expand P1H(const_string s);
+extern KPSEDLL string kpathsea_expand (kpathsea kpse, const_string s);
/* Do brace expansion and call `kpse_expand' on each element of the
result; return the final expansion (always in fresh memory, even if
no expansions were done). We don't call `kpse_expand_default'
because there is a whole sequence of defaults to run through; see
`kpse_init_format'. */
-extern KPSEDLL string kpse_brace_expand P1H(const_string path);
+extern KPSEDLL string kpathsea_brace_expand (kpathsea kpse, const_string path);
/* Do brace expansion and call `kpse_expand' on each argument of the
result, then expand any `//' constructs. The final expansion (always
in fresh memory) is a path of all the existing directories that match
the pattern. */
-extern KPSEDLL string kpse_path_expand P1H(const_string path);
+extern KPSEDLL string kpathsea_path_expand (kpathsea kpse, const_string path);
+
+#if defined(KPSE_COMPAT_API)
+extern KPSEDLL string kpse_expand (const_string s);
+extern KPSEDLL string kpse_brace_expand (const_string path);
+extern KPSEDLL string kpse_path_expand (const_string path);
+#endif
+
#endif /* not KPATHSEA_EXPAND_H */