1
#if defined (HAVE_CONFIG_H)
11
int _ExitOnError = 1; /* If set to 1, exit on error */
12
int _Verbose = 1; /* If set to 1, errors are reported */
13
int _Debug = 0; /* If set to 1, debugging */
16
void SysError(const char *caller, const char *fmt, ...)
23
fprintf(stderr, "Error (%s) : ", caller);
24
vfprintf(stderr, fmt, args);
25
fprintf(stderr, "\n");
30
perror("System error message ");
35
void Error(const char *caller, const char *fmt, ...)
42
fprintf(stderr, "Error (%s) : ", caller);
43
vfprintf(stderr, fmt, args);
44
fprintf(stderr, "\n");
48
if ( _ExitOnError ) exit(EXIT_FAILURE);
51
void Warning(const char *caller, const char *fmt, ...)
59
fprintf(stderr, "Warning (%s) : ", caller);
60
vfprintf(stderr, fmt, args);
61
fprintf(stderr, "\n");
67
void Message(const char *caller, const char *fmt, ...)
73
fprintf(stdout, "%-18s : ", caller);
74
vfprintf(stdout, fmt, args);
75
fprintf(stdout, "\n");