Back to index

tetex-bin  3.0
Defines | Functions | Variables
debug.h File Reference
#include <kpathsea/c-proto.h>
#include <kpathsea/c-std.h>
#include <kpathsea/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define KPSE_DEBUG
#define KPSE_DEBUG_SET(bit)   kpathsea_debug |= 1 << (bit)
#define KPSE_DEBUG_P(bit)   (kpathsea_debug & (1 << (bit)))
#define KPSE_DEBUG_STAT   0 /* stat calls */
#define KPSE_DEBUG_HASH   1 /* hash lookups */
#define KPSE_DEBUG_FOPEN   2 /* fopen/fclose calls */
#define KPSE_DEBUG_PATHS   3 /* search path initializations */
#define KPSE_DEBUG_EXPAND   4 /* path element expansion */
#define KPSE_DEBUG_SEARCH   5 /* searches */
#define KPSE_DEBUG_VARS   6 /* variable values */
#define KPSE_LAST_DEBUG   KPSE_DEBUG_VARS
#define DEBUGF_START()   do { fputs ("kdebug:", stderr)
#define DEBUGF_END()   fflush (stderr); } while (0)
#define DEBUGF(str)   DEBUGF_START (); fputs (str, stderr); DEBUGF_END ()
#define DEBUGF1(str, e1)   DEBUGF_START (); fprintf (stderr, str, e1); DEBUGF_END ()
#define DEBUGF2(str, e1, e2)   DEBUGF_START (); fprintf (stderr, str, e1, e2); DEBUGF_END ()
#define DEBUGF3(str, e1, e2, e3)   DEBUGF_START (); fprintf (stderr, str, e1, e2, e3); DEBUGF_END ()
#define DEBUGF4(str, e1, e2, e3, e4)   DEBUGF_START (); fprintf (stderr, str, e1, e2, e3, e4); DEBUGF_END ()
#define fopen   kpse_fopen_trace
#define fclose   kpse_fclose_trace

Functions

KPSEDLL FILE *fopen P2H (const_string filename, const_string mode)
KPSEDLL int fclose P1H (FILE *)

Variables

KPSEDLL unsigned kpathsea_debug

Define Documentation

#define DEBUGF (   str)    DEBUGF_START (); fputs (str, stderr); DEBUGF_END ()

Definition at line 77 of file debug.h.

#define DEBUGF1 (   str,
  e1 
)    DEBUGF_START (); fprintf (stderr, str, e1); DEBUGF_END ()

Definition at line 79 of file debug.h.

#define DEBUGF2 (   str,
  e1,
  e2 
)    DEBUGF_START (); fprintf (stderr, str, e1, e2); DEBUGF_END ()

Definition at line 81 of file debug.h.

#define DEBUGF3 (   str,
  e1,
  e2,
  e3 
)    DEBUGF_START (); fprintf (stderr, str, e1, e2, e3); DEBUGF_END ()

Definition at line 83 of file debug.h.

#define DEBUGF4 (   str,
  e1,
  e2,
  e3,
  e4 
)    DEBUGF_START (); fprintf (stderr, str, e1, e2, e3, e4); DEBUGF_END ()

Definition at line 85 of file debug.h.

#define DEBUGF_END ( )    fflush (stderr); } while (0)

Definition at line 75 of file debug.h.

#define DEBUGF_START ( )    do { fputs ("kdebug:", stderr)

Definition at line 74 of file debug.h.

#define fclose   kpse_fclose_trace

Definition at line 92 of file debug.h.

#define fopen   kpse_fopen_trace

Definition at line 89 of file debug.h.

#define KPSE_DEBUG

Definition at line 53 of file debug.h.

#define KPSE_DEBUG_EXPAND   4 /* path element expansion */

Definition at line 68 of file debug.h.

#define KPSE_DEBUG_FOPEN   2 /* fopen/fclose calls */

Definition at line 66 of file debug.h.

#define KPSE_DEBUG_HASH   1 /* hash lookups */

Definition at line 65 of file debug.h.

#define KPSE_DEBUG_P (   bit)    (kpathsea_debug & (1 << (bit)))

Definition at line 62 of file debug.h.

#define KPSE_DEBUG_PATHS   3 /* search path initializations */

Definition at line 67 of file debug.h.

#define KPSE_DEBUG_SEARCH   5 /* searches */

Definition at line 69 of file debug.h.

#define KPSE_DEBUG_SET (   bit)    kpathsea_debug |= 1 << (bit)

Definition at line 59 of file debug.h.

#define KPSE_DEBUG_STAT   0 /* stat calls */

Definition at line 64 of file debug.h.

#define KPSE_DEBUG_VARS   6 /* variable values */

Definition at line 70 of file debug.h.

Definition at line 71 of file debug.h.


Function Documentation

KPSEDLL FILE *xfopen P2H ( const_string  filename,
const_string  mode 
)

Variable Documentation