summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/debug.c
diff options
context:
space:
mode:
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;
}