osprey/be/opt/opt_error.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ER_FATAL   1
#define ER_ERROR   2
#define ER_INFO   3
#define ER_VERBOSE   4
#define OPT_ERROR(type, errno)
#define OPT_ERROR_FMT(type, errmsg_list)
#define OPT_ASSERT(cond, message)   if (cond) (OPT_ERROR_FMT(ER_FATAL, (message)))
#define OPT_ASSERT_FMT(cond, errmsg_list)   if (cond) (OPT_ERROR_FMT(ER_FATAL, errmsg_list))

Enumerations

enum  ERROR_NUMBER {
  ERN_IGNORED, ERN_INTERNAL, ERN_OUT_OF_MEM, ERN_BAD_OPTION,
  MAX_ERN_NUMBER
}

Functions/Subroutines

void OPT_Error (INT type, INT errnum,...)
void OPT_Error_Fmt (INT type, const char *fmt_str,...)
void Opt_Catch_Signals (void)

Variables

char * opt_Abort_File
INT opt_Abort_Loc


Define Documentation

#define ER_ERROR   2

Definition at line 82 of file opt_error.h.

Referenced by ir_prof_error(), OPT_Error(), and OPT_Error_Fmt().

#define ER_FATAL   1

#define ER_INFO   3

Definition at line 83 of file opt_error.h.

Referenced by ir_prof_error(), OPT_Error(), and OPT_Error_Fmt().

#define ER_VERBOSE   4

Definition at line 84 of file opt_error.h.

Referenced by ir_prof_error(), OPT_Error(), and OPT_Error_Fmt().

#define OPT_ASSERT ( cond,
message   )     if (cond) (OPT_ERROR_FMT(ER_FATAL, (message)))

Definition at line 117 of file opt_error.h.

Referenced by opt_error(), opt_info(), and opt_verbose().

#define OPT_ASSERT_FMT ( cond,
errmsg_list   )     if (cond) (OPT_ERROR_FMT(ER_FATAL, errmsg_list))

Definition at line 120 of file opt_error.h.

#define OPT_ERROR ( type,
errno   ) 

Value:

(opt_Abort_File = __FILE__, opt_Abort_Loc = __LINE__, \
       OPT_Error(type, errno))

Definition at line 109 of file opt_error.h.

#define OPT_ERROR_FMT ( type,
errmsg_list   ) 

Value:

(opt_Abort_File = __FILE__, opt_Abort_Loc = __LINE__,\
                       OPT_Error_Fmt (type, errmsg_list))

Definition at line 113 of file opt_error.h.


Enumeration Type Documentation

Enumerator:
ERN_IGNORED 
ERN_INTERNAL 
ERN_OUT_OF_MEM 
ERN_BAD_OPTION 
MAX_ERN_NUMBER 

Definition at line 90 of file opt_error.h.


Function Documentation

void Opt_Catch_Signals ( void   ) 

Definition at line 235 of file opt_error.c.

References SIGBUS, SIGEMT, SIGIOT, signal(), SIGQUIT, and SIGTRAP.

void OPT_Error ( INT  type,
INT  errnum,
  ... 
)

void OPT_Error_Fmt ( INT  type,
const char *  fmt_str,
  ... 
)

Definition at line 181 of file opt_error.c.

References BOOL, ER_ERROR, ER_FATAL, ER_INFO, ER_VERBOSE, ERN_IGNORED, error_routine(), FALSE, TRUE, va_end, and va_start.


Variable Documentation

Definition at line 80 of file opt_error.c.

Referenced by error_routine().

Definition at line 81 of file opt_error.c.

Referenced by error_routine().


Generated on Wed Apr 8 14:35:11 2009 for Open64 by  doxygen 1.5.6