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/absolute.c | |
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/absolute.c')
-rw-r--r-- | Build/source/texk/kpathsea/absolute.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/absolute.c b/Build/source/texk/kpathsea/absolute.c index b25ecc919d4..6012c398b5b 100644 --- a/Build/source/texk/kpathsea/absolute.c +++ b/Build/source/texk/kpathsea/absolute.c @@ -25,8 +25,9 @@ to usefully generalize. */ boolean -kpse_absolute_p P2C(const_string, filename, boolean, relative_ok) +kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok) { + (void)kpse; /* currenty not used */ #ifdef VMS #include <string.h> return strcspn (filename, "]>:") != strlen (filename); @@ -58,6 +59,14 @@ kpse_absolute_p P2C(const_string, filename, boolean, relative_ok) #endif /* not VMS */ } +#if defined (KPSE_COMPAT_API) +boolean +kpse_absolute_p (const_string filename, boolean relative_ok) +{ + return kpathsea_absolute_p (kpse_def, filename, relative_ok); +} +#endif + #ifdef TEST int main() { @@ -69,3 +78,9 @@ int main() } } #endif /* TEST */ + +/* +Local variables: +standalone-compile-command: "gcc -g -I. -I.. -DTEST absolute.c kpathsea.a" +End: +*/ |