fred-mod-eppd-2.20.1
Macros
Error codes which signal the cause of an error and

macros which make working with error values easier. More...

Macros

#define XERR_OK   0
 OK status. More...
 
#define XERR_LIBXML   1
 Error in function from libxml library. More...
 
#define XERR_ALLOC   2
 Memory allocation failed. More...
 
#define XERR_CONSTR   3
 Constraints given by caller were not fulfilled. More...
 
#define CHK_XERR(_var, _label)
 Macro checks given variable for an error, if the variable has error status, a flow of a program is redirected to given label. More...
 
#define RESET_XERR(_var)   ((_var) = XERR_OK)
 Macro checks given variable for an error, if the variable has error status, a flow of a program is redirected to given label.
 

Detailed Description

macros which make working with error values easier.

Macro Definition Documentation

◆ CHK_XERR

#define CHK_XERR (   _var,
  _label 
)
Value:
if ((_var) != XERR_OK) \
goto _label
#define XERR_OK
OK status.
Definition: epp_parser.c:70

Macro checks given variable for an error, if the variable has error status, a flow of a program is redirected to given label.

Referenced by parse_check(), parse_create_contact(), parse_create_domain(), parse_create_keyset(), parse_create_nsset(), parse_delete(), parse_info(), parse_login(), parse_renew(), parse_update_contact(), parse_update_domain(), parse_update_keyset(), parse_update_nsset(), and read_epp_dnskey().

◆ XERR_ALLOC

#define XERR_ALLOC   2

Memory allocation failed.

Referenced by xpath_getn().

◆ XERR_CONSTR

#define XERR_CONSTR   3

Constraints given by caller were not fulfilled.

Referenced by parse_create(), parse_extension(), parse_update_contact(), xpath_chroot(), xpath_get1(), and xpath_get_attr().

◆ XERR_LIBXML

#define XERR_LIBXML   1

◆ XERR_OK

#define XERR_OK   0