35void errorv(
const char *
id,
int level,
const char *
s, va_list ap)
43 flags = level & ~ERROR_LEVEL;
49 fprintf(stderr,
"Usage: %s ",
prefix);
51 fprintf(stderr,
"%s: ",
prefix);
59 fprintf(stderr,
"debug%d: ", level);
62 fprintf(stderr,
"warning: ");
67 fprintf(stderr,
"panic: ");
75 vfprintf(stderr,
s, ap);
77 fprintf(stderr,
"\n%s", strerror(errno));
78 fprintf(stderr,
"\n");
83void error(
int level,
const char *
s, ...)
92void errorf(
void *handle,
void *discipline,
int level,
const char *
s, ...)
98 && handle) ? *((
char **) handle) : (
char *) handle, level,
s, ap);
void setTraceLevel(int i)
void errorf(void *handle, void *discipline, int level, const char *s,...)
void setErrorLine(int line)
void setErrorFileLine(char *src, int line)
void errorv(const char *id, int level, const char *s, va_list ap)
void setErrorId(char *id)
void setErrorErrors(int errors)
static NORETURN void graphviz_exit(int status)
require define api prefix