summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/truncate.c')
-rw-r--r--Build/source/texk/kpathsea/truncate.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/truncate.c b/Build/source/texk/kpathsea/truncate.c
index 9ff92b4f86f..081ebdfff83 100644
--- a/Build/source/texk/kpathsea/truncate.c
+++ b/Build/source/texk/kpathsea/truncate.c
@@ -27,13 +27,15 @@
too bad this is necessary. See comments in readable.c for why. */
string
-kpse_truncate_filename P1C(const_string, name)
+kpathsea_truncate_filename (kpathsea kpse, const_string name)
{
unsigned c_len = 0; /* Length of current component. */
unsigned ret_len = 0; /* Length of constructed result. */
/* Allocate enough space. */
string ret = (string) xmalloc (strlen (name) + 1);
+
+ (void)kpse; /* currenty not used */
for (; *name; name++)
{
@@ -54,3 +56,11 @@ kpse_truncate_filename P1C(const_string, name)
return ret;
}
+
+#if defined (KPSE_COMPAT_API)
+string
+kpse_truncate_filename (const_string name)
+{
+ return kpathsea_truncate_filename (kpse_def, name);
+}
+#endif