w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

debug.h File Reference
#include <kpathsea/c-proto.h>
#include <kpathsea/c-std.h>
#include <kpathsea/types.h>
Include dependency graph for debug.h:

Go to the source code of this file.

Macros

#define KPSE_DEBUG
 
#define KPATHSEA_DEBUG_P(bit)   (kpse->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 FILEkpse_fopen_trace (const char *filename, const char *mode)
 
KPSEDLL int kpse_fclose_trace (FILE *)
 

Macro Definition Documentation

◆ DEBUGF

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

Definition at line 81 of file debug.h.

◆ DEBUGF1

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

Definition at line 83 of file debug.h.

◆ DEBUGF2

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

Definition at line 85 of file debug.h.

◆ DEBUGF3

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

Definition at line 87 of file debug.h.

◆ DEBUGF4

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

Definition at line 89 of file debug.h.

◆ DEBUGF_END

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

Definition at line 79 of file debug.h.

◆ DEBUGF_START

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

Definition at line 78 of file debug.h.

◆ fclose

#define fclose   kpse_fclose_trace

Definition at line 100 of file debug.h.

◆ fopen

#define fopen   kpse_fopen_trace

Definition at line 97 of file debug.h.

◆ KPATHSEA_DEBUG_P

#define KPATHSEA_DEBUG_P (   bit)    (kpse->debug & (1 << (bit)))

Definition at line 56 of file debug.h.

◆ KPSE_DEBUG

#define KPSE_DEBUG

Definition at line 53 of file debug.h.

◆ KPSE_DEBUG_EXPAND

#define KPSE_DEBUG_EXPAND   4 /* path element expansion */

Definition at line 72 of file debug.h.

◆ KPSE_DEBUG_FOPEN

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

Definition at line 70 of file debug.h.

◆ KPSE_DEBUG_HASH

#define KPSE_DEBUG_HASH   1 /* hash lookups */

Definition at line 69 of file debug.h.

◆ KPSE_DEBUG_PATHS

#define KPSE_DEBUG_PATHS   3 /* search path initializations */

Definition at line 71 of file debug.h.

◆ KPSE_DEBUG_SEARCH

#define KPSE_DEBUG_SEARCH   5 /* searches */

Definition at line 73 of file debug.h.

◆ KPSE_DEBUG_STAT

#define KPSE_DEBUG_STAT   0 /* stat calls */

Definition at line 68 of file debug.h.

◆ KPSE_DEBUG_VARS

#define KPSE_DEBUG_VARS   6 /* variable values */

Definition at line 74 of file debug.h.

◆ KPSE_LAST_DEBUG

#define KPSE_LAST_DEBUG   KPSE_DEBUG_VARS

Definition at line 75 of file debug.h.

Function Documentation

◆ kpse_fclose_trace()

KPSEDLL int kpse_fclose_trace ( FILE )

◆ kpse_fopen_trace()

KPSEDLL FILE* kpse_fopen_trace ( const char *  filename,
const char *  mode 
)