#include "exp_printify.h"
#define logn(buf,length) { \
if (logfile) fwrite(buf,1,length,logfile); \
if (debugfile) fwrite(buf,1,length,debugfile); \
}
#define dprintify(x) ((is_debugging || debugfile)?exp_printify(x):0)
extern void exp_errorlog _ANSI_ARGS_(TCL_VARARGS(char *,fmt));
extern void exp_log _ANSI_ARGS_(TCL_VARARGS(int,force_stdout));
extern void exp_debuglog _ANSI_ARGS_(TCL_VARARGS(char *,fmt));
extern void exp_nflog _ANSI_ARGS_((char *buf, int force_stdout));
extern void exp_nferrorlog _ANSI_ARGS_((char *buf, int force_stdout));
extern FILE *debugfile;
extern FILE *logfile;
extern int logfile_all;
extern int is_debugging;