summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/debug.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/debug.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/debug.c')
-rw-r--r--Build/source/texk/kpathsea/debug.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/Build/source/texk/kpathsea/debug.c b/Build/source/texk/kpathsea/debug.c
index a8a178f6839..9cddaae3854 100644
--- a/Build/source/texk/kpathsea/debug.c
+++ b/Build/source/texk/kpathsea/debug.c
@@ -19,32 +19,32 @@
#ifdef KPSE_DEBUG /* whole file */
-unsigned kpathsea_debug = 0;
-
/* If the real definitions of fopen or fclose are macros, we lose -- the
#undef won't restore them. */
FILE *
-fopen P2C(const_string, filename, const_string, mode)
+fopen (const char *filename, const char *mode)
{
#undef fopen
FILE *ret = fopen (filename, mode);
-
- if (KPSE_DEBUG_P (KPSE_DEBUG_FOPEN))
+#if defined (KPSE_COMPAT_API)
+ kpathsea kpse = kpse_def;
+ if (KPATHSEA_DEBUG_P (KPSE_DEBUG_FOPEN))
DEBUGF3 ("fopen(%s, %s) => 0x%lx\n", filename, mode, (unsigned long) ret);
-
+#endif
return ret;
}
int
-fclose P1C(FILE *, f)
+fclose (FILE * f)
{
#undef fclose
int ret = fclose (f);
-
- if (KPSE_DEBUG_P (KPSE_DEBUG_FOPEN))
+#if defined (KPSE_COMPAT_API)
+ kpathsea kpse = kpse_def;
+ if (KPATHSEA_DEBUG_P (KPSE_DEBUG_FOPEN))
DEBUGF2 ("fclose(0x%lx) => %d\n", (unsigned long) f, ret);
-
+#endif
return ret;
}