File: report.h

package info (click to toggle)
cdparanoia 3.10.2+debian-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,904 kB
  • sloc: ansic: 8,026; sh: 2,642; makefile: 61
file content (10 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
extern int verbose;
extern int quiet;
extern FILE *reportfile;

#define report(...) {if(!quiet){fprintf(stderr, __VA_ARGS__);fputc('\n',stderr);} \
    if(reportfile){fprintf(reportfile, __VA_ARGS__);fputc('\n',reportfile);}}
#define reportC(...) {if(!quiet){fprintf(stderr, __VA_ARGS__);}	\
    if(reportfile){fprintf(reportfile, __VA_ARGS__);}}
#define printC(...) {if(!quiet){fprintf(stderr, __VA_ARGS__);}}
#define logC(...) {if(reportfile){fprintf(reportfile, __VA_ARGS__);}}