Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
error.h File Reference
#include <stdarg.h>
#include <errno.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Error_info_s
 

Macros

#define ERROR_INFO   0 /* info message -- no err_id */
 
#define ERROR_WARNING   1 /* warning message */
 
#define ERROR_ERROR   2 /* error message -- no err_exit */
 
#define ERROR_FATAL   3 /* error message with err_exit */
 
#define ERROR_PANIC   ERROR_LEVEL /* panic message with err_exit */
 
#define ERROR_LEVEL   0x00ff /* level portion of status */
 
#define ERROR_SYSTEM   0x0100 /* report system errno message */
 
#define ERROR_USAGE   0x0800 /* usage message */
 
#define PRINTF_LIKE(index, first)   /* nothing */
 

Typedefs

typedef struct Error_info_s Error_info_t
 

Functions

void setTraceLevel (int)
 
void setErrorLine (int)
 
void setErrorFileLine (char *, int)
 
void setErrorId (char *)
 
void setErrorErrors (int)
 
int getErrorErrors (void)
 
void error (int, const char *,...)
 
void errorf (void *, void *, int, const char *,...)
 
void errorv (const char *, int, const char *, va_list)
 

Variables

Error_info_t error_info
 

Macro Definition Documentation

◆ ERROR_ERROR

#define ERROR_ERROR   2 /* error message -- no err_exit */

Definition at line 36 of file error.h.

◆ ERROR_FATAL

#define ERROR_FATAL   3 /* error message with err_exit */

Definition at line 37 of file error.h.

◆ ERROR_INFO

#define ERROR_INFO   0 /* info message -- no err_id */

Definition at line 34 of file error.h.

◆ ERROR_LEVEL

#define ERROR_LEVEL   0x00ff /* level portion of status */

Definition at line 40 of file error.h.

◆ ERROR_PANIC

#define ERROR_PANIC   ERROR_LEVEL /* panic message with err_exit */

Definition at line 38 of file error.h.

◆ ERROR_SYSTEM

#define ERROR_SYSTEM   0x0100 /* report system errno message */

Definition at line 41 of file error.h.

◆ ERROR_USAGE

#define ERROR_USAGE   0x0800 /* usage message */

Definition at line 42 of file error.h.

◆ ERROR_WARNING

#define ERROR_WARNING   1 /* warning message */

Definition at line 35 of file error.h.

◆ PRINTF_LIKE

#define PRINTF_LIKE (   index,
  first 
)    /* nothing */

Definition at line 48 of file error.h.

Typedef Documentation

◆ Error_info_t

typedef struct Error_info_s Error_info_t

Function Documentation

◆ error()

void error ( int  level,
const char *  s,
  ... 
)
extern

Definition at line 83 of file error.c.

References errorv(), and NULL.

Referenced by addCase(), bindAction(), checkGuard(), compileProg(), deleteObj(), doFlags(), endString(), feasible_tree(), findBinding(), getDfltAttr(), getOptarg(), gettok(), getval(), gml_to_gv(), gml_to_gv(), grpmatch(), initDisc(), lockGraph(), lookup(), onematch(), openGPRState(), openOut(), pango_textlayout(), parseArgs(), parseBracket(), parseKind(), parseOp(), parseProg(), parseXDotFOn(), resolve(), sameG(), scanArgs(), setDfltAttr(), setval(), strgrpmatch(), SWIG_Python_TypeErrorOccurred(), tclGdTextCmd(), and xargs().

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

◆ errorf()

void errorf ( void *  handle,
void *  discipline,
int  level,
const char *  s,
  ... 
)
extern

Definition at line 92 of file error.c.

References errorv().

Referenced by initDisc().

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

◆ errorv()

void errorv ( const char *  id,
int  level,
const char *  s,
va_list  ap 
)
extern

Definition at line 35 of file error.c.

References ERROR_FATAL, error_info, ERROR_LEVEL, ERROR_PANIC, ERROR_SYSTEM, ERROR_USAGE, ERROR_WARNING, Error_info_s::errors, Error_info_s::file, flags, graphviz_exit(), Error_info_s::id, Error_info_s::indent, Error_info_s::line, prefix, Error_info_s::trace, and Error_info_s::warnings.

Referenced by error(), errorf(), and gverrorf().

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

◆ getErrorErrors()

int getErrorErrors ( void  )
extern

Definition at line 32 of file error.c.

References error_info, and Error_info_s::errors.

Referenced by compile(), compileProg(), mkBlock(), mkStmts(), parseBracket(), parseCase(), and parseProg().

Here is the caller graph for this function:

◆ setErrorErrors()

void setErrorErrors ( int  errors)
extern

Definition at line 31 of file error.c.

References error_info, errors, and Error_info_s::errors.

Referenced by gvpr_core().

Here is the caller graph for this function:

◆ setErrorFileLine()

void setErrorFileLine ( char *  src,
int  line 
)
extern

Definition at line 26 of file error.c.

References error_info, Error_info_s::file, and Error_info_s::line.

Referenced by checkGuard().

Here is the caller graph for this function:

◆ setErrorId()

void setErrorId ( char *  id)
extern

Definition at line 30 of file error.c.

References error_info, id, and Error_info_s::id.

Referenced by scanArgs().

Here is the caller graph for this function:

◆ setErrorLine()

void setErrorLine ( int  line)
extern

Definition at line 25 of file error.c.

References error_info, and Error_info_s::line.

Referenced by compileProg().

Here is the caller graph for this function:

◆ setTraceLevel()

void setTraceLevel ( int  i)
extern

Definition at line 33 of file error.c.

References error_info, and Error_info_s::trace.

Referenced by doFlags().

Here is the caller graph for this function:

Variable Documentation

◆ error_info