URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [expect/] [exp_log.h] - Blame information for rev 1780
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
578 |
markom |
/* exp_log.h */
|
2 |
|
|
|
3 |
|
|
#include "exp_printify.h"
|
4 |
|
|
|
5 |
|
|
/* special version of log for non-null-terminated strings which */
|
6 |
|
|
/* never need printf-style formatting. */
|
7 |
|
|
#define logn(buf,length) { \
|
8 |
|
|
if (logfile) fwrite(buf,1,length,logfile); \
|
9 |
|
|
if (debugfile) fwrite(buf,1,length,debugfile); \
|
10 |
|
|
}
|
11 |
|
|
|
12 |
|
|
#define dprintify(x) ((is_debugging || debugfile)?exp_printify(x):0)
|
13 |
|
|
/* in circumstances where "debuglog(printify(...))" is written, call */
|
14 |
|
|
/* dprintify instead. This will avoid doing any formatting that would */
|
15 |
|
|
/* occur before debuglog got control and decided not to do anything */
|
16 |
|
|
/* because (is_debugging || debugfile) was false. */
|
17 |
|
|
|
18 |
|
|
extern void exp_errorlog _ANSI_ARGS_(TCL_VARARGS(char *,fmt));
|
19 |
|
|
extern void exp_log _ANSI_ARGS_(TCL_VARARGS(int,force_stdout));
|
20 |
|
|
extern void exp_debuglog _ANSI_ARGS_(TCL_VARARGS(char *,fmt));
|
21 |
|
|
extern void exp_nflog _ANSI_ARGS_((char *buf, int force_stdout));
|
22 |
|
|
extern void exp_nferrorlog _ANSI_ARGS_((char *buf, int force_stdout));
|
23 |
|
|
|
24 |
|
|
extern FILE *debugfile;
|
25 |
|
|
extern FILE *logfile;
|
26 |
|
|
extern int logfile_all;
|
27 |
|
|
|
28 |
|
|
extern int is_debugging; /* useful to know for avoid debug calls */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.