summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/kdefault.c
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/kdefault.c
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/kdefault.c')
-rw-r--r--Build/source/texk/kpathsea/kdefault.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/kdefault.c b/Build/source/texk/kpathsea/kdefault.c
index b5fa764a4ea..235be28cd9b 100644
--- a/Build/source/texk/kpathsea/kdefault.c
+++ b/Build/source/texk/kpathsea/kdefault.c
@@ -29,10 +29,11 @@
that is fastest. Usually it will be leading or trailing. */
string
-kpse_expand_default P2C(const_string, path, const_string, fallback)
+kpathsea_expand_default (kpathsea kpse, const_string path, const_string fallback)
{
unsigned path_length;
string expansion;
+ (void)kpse; /* currenty not used */
/* The default path better not be null. */
assert (fallback);
@@ -82,6 +83,14 @@ kpse_expand_default P2C(const_string, path, const_string, fallback)
return expansion;
}
+#if defined (KPSE_COMPAT_API)
+string
+kpse_expand_default (const_string path, const_string fallback)
+{
+ return kpathsea_expand_default (kpse_def, path, fallback);
+}
+#endif
+
#ifdef TEST
@@ -116,6 +125,6 @@ main ()
/*
Local variables:
-standalone-compile-command: "gcc -g -I. -I.. -DTEST default.c kpathsea.a"
+standalone-compile-command: "gcc -g -I. -I.. -DTEST kdefault.c kpathsea.a"
End:
*/