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/debug.h | |
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/debug.h')
-rw-r--r-- | Build/source/texk/kpathsea/debug.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/debug.h b/Build/source/texk/kpathsea/debug.h index 89299d1d0ff..790f5e7e101 100644 --- a/Build/source/texk/kpathsea/debug.h +++ b/Build/source/texk/kpathsea/debug.h @@ -52,8 +52,10 @@ /* OK, we'll have tracing support. */ #define KPSE_DEBUG -/* Bit vector defining what we should trace. */ -extern KPSEDLL unsigned kpathsea_debug; +/* Test if a bit is on. */ +#define KPATHSEA_DEBUG_P(bit) (kpse->debug & (1 << (bit))) + +#if defined (KPSE_COMPAT_API) /* Set a bit. */ #define KPSE_DEBUG_SET(bit) kpathsea_debug |= 1 << (bit) @@ -61,6 +63,8 @@ extern KPSEDLL unsigned kpathsea_debug; /* Test if a bit is on. */ #define KPSE_DEBUG_P(bit) (kpathsea_debug & (1 << (bit))) +#endif /* KPSE_COMPAT_API */ + #define KPSE_DEBUG_STAT 0 /* stat calls */ #define KPSE_DEBUG_HASH 1 /* hash lookups */ #define KPSE_DEBUG_FOPEN 2 /* fopen/fclose calls */ @@ -87,10 +91,10 @@ extern KPSEDLL unsigned kpathsea_debug; #undef fopen #define fopen kpse_fopen_trace -extern KPSEDLL FILE *fopen P2H(const_string filename, const_string mode); +extern KPSEDLL FILE *fopen (const char *filename, const char *mode); #undef fclose #define fclose kpse_fclose_trace -extern KPSEDLL int fclose P1H(FILE *); +extern KPSEDLL int fclose (FILE *); #endif /* not NO_DEBUG */ |