ack/util/int/log.h

38 lines
690 B
C
Raw Permalink Normal View History

1988-06-22 16:57:09 +00:00
/*
Defines and externs for the logging machine
*/
1994-06-24 11:31:16 +00:00
/* $Id$ */
1988-06-22 16:57:09 +00:00
#include "logging.h"
/********* Logging control ********/
#ifdef LOGGING
extern int must_log; /* set if logging must occur */
extern long log_start; /* inr at start of logging */
extern int logging; /* set if logging in progress */
#define LOG(a) { if (logging) do_log a; }
2019-03-17 14:42:00 +00:00
/* Initalize logging system. */
void init_log(void);
int logarg(char *str);
/* Open the log file. */
void open_log(int firsttime);
/* Close the log file. */
void close_log(void);
int check_log(char mark[]);
/* Log an entry into the logfile. */
void do_log(char *fmt, ...);
void log_eoi(void);
1988-06-22 16:57:09 +00:00
#else
#define LOG(a)
#endif /* LOGGING */
1988-06-22 16:57:09 +00:00