From e967e0cc978d647040ac5616d389e9007d593464 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 16 Mar 2009 15:13:07 +0000 Subject: new reentrant kpathsea API (from Taco) git-svn-id: svn://tug.org/texlive/trunk@12401 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/kdefault.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/kpathsea/kdefault.c') 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: */ -- cgit v1.2.3