Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
agerror.c File Reference

API: cgraph.h. More...

#include <cgraph/cghdr.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <util/agxbuf.h>
#include <util/gv_ctype.h>
#include <util/gv_math.h>
#include <util/streq.h>
Include dependency graph for agerror.c:

Go to the source code of this file.

Functions

agusererrf agseterrf (agusererrf newf)
 
agerrlevel_t agseterr (agerrlevel_t lvl)
 
char * aglasterr (void)
 
static int default_usererrf (char *message)
 default error reporting implementation
 
static void out (agerrlevel_t level, const char *fmt, va_list args)
 Report messages using a user-supplied or default write function.
 
static int agerr_va (agerrlevel_t level, const char *fmt, va_list args)
 
int agerr (agerrlevel_t level, const char *fmt,...)
 
void agerrorf (const char *fmt,...)
 
void agwarningf (const char *fmt,...)
 
int agerrors (void)
 
int agreseterrors (void)
 

Variables

static agerrlevel_t agerrno
 
static agerrlevel_t agerrlevel = AGWARN
 
static int agmaxerr
 
static agxbuf last
 last message
 
static agusererrf usererrf
 

Function Documentation

◆ agerr_va()

static int agerr_va ( agerrlevel_t  level,
const char *  fmt,
va_list  args 
)
static

Definition at line 128 of file agerror.c.

References AGERR, agerrlevel, agerrno, AGMAX, agmaxerr, AGPREV, agxbclear(), imax(), last, out(), and vagxbprint().

Referenced by agerr(), agerrorf(), and agwarningf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ default_usererrf()

static int default_usererrf ( char *  message)
static

Definition at line 63 of file agerror.c.

References gv_iscntrl(), and gv_isspace().

Referenced by out().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ out()

static void out ( agerrlevel_t  level,
const char *  fmt,
va_list  args 
)
static

Definition at line 84 of file agerror.c.

References AGERR, AGPREV, default_usererrf(), free(), malloc(), NULL, and usererrf.

Referenced by agdeledgeimage(), agerr_va(), canoncolor(), cccomps(), ccomps(), dfs(), dfs(), gvdevice_finalize(), gvRender(), installedge(), newedge(), pccomps(), process(), processClusters(), MdiChild::saveFile(), subGInduce(), and tclGdPolygonCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ agerrlevel

agerrlevel_t agerrlevel = AGWARN
static

Definition at line 26 of file agerror.c.

Referenced by agerr_va(), and agseterr().

◆ agerrno

agerrlevel_t agerrno
static

Definition at line 25 of file agerror.c.

Referenced by agerr_va().

◆ agmaxerr

int agmaxerr
static

Definition at line 27 of file agerror.c.

Referenced by agerr_va(), agerrors(), and agreseterrors().

◆ last

◆ usererrf

agusererrf usererrf
static

Definition at line 30 of file agerror.c.

Referenced by agseterrf(), and out().