Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
error.c File Reference
#include <ast/ast.h>
#include <ast/error.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <util/exit.h>
Include dependency graph for error.c:

Go to the source code of this file.

Functions

void setErrorLine (int line)
 
void setErrorFileLine (char *src, int line)
 
void setErrorId (char *id)
 
void setErrorErrors (int errors)
 
int getErrorErrors (void)
 
void setTraceLevel (int i)
 
void errorv (const char *id, int level, const char *s, va_list ap)
 
void error (int level, const char *s,...)
 
void errorf (void *handle, void *discipline, int level, const char *s,...)
 

Variables

Error_info_t error_info
 

Function Documentation

◆ error()

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

Definition at line 83 of file error.c.

References errorv(), and NULL.

Here is the call graph for this function:

◆ errorf()

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

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 
)

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  )

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)

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 
)

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)

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)

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)

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