#include <stdio.h>#include <string.h>#include <stdarg.h>#include "defs.h"#include "opt_defs.h"#include "opt_error.h"

Go to the source code of this file.
Data Types | |
| type | err_info |
Defines | |
| #define | _GNU_SOURCE |
Functions/Subroutines | |
| static void | error_routine (unsigned doexit, const char *err_type, INT err_num, const char *fmt, va_list ap) |
| static void | opt_fatal (INT errnum, va_list ap) |
| static void | opt_error (INT errnum, va_list ap) |
| static void | opt_verbose (INT errnum, va_list ap) |
| static void | opt_info (INT errnum, va_list ap) |
| void | OPT_Error (INT type, INT errnum,...) |
| void | OPT_Error_Fmt (INT type, const char *fmt_str,...) |
| static void | signal_cleanup (void) |
| static void | catch (int sig, int error_num) |
| void | Opt_Catch_Signals (void) |
Variables | |
| static char * | source_file = __FILE__ |
| static char * | rcs_id = "$Source: /home/bos/bk/kpro64-pending/be/opt/SCCS/s.opt_error.c $ $Revision: 1.5 $" |
| char * | opt_Abort_File = NULL |
| INT | opt_Abort_Loc = 0 |
| static INT | opt_num_errors |
| static BOOL | infoflag = TRUE |
| static BOOL | verbose = TRUE |
| struct err_info | err_str [MAX_ERN_NUMBER] |
| #define _GNU_SOURCE |
Definition at line 56 of file opt_error.c.
| static void catch | ( | int | sig, | |
| int | error_num | |||
| ) | [static] |
Definition at line 218 of file opt_error.c.
References exit(), fflush(), fprintf(), msg, SIGBUS, signal(), signal_cleanup(), strerror(), and strsignal().
| static void error_routine | ( | unsigned | doexit, | |
| const char * | err_type, | |||
| INT | err_num, | |||
| const char * | fmt, | |||
| va_list | ap | |||
| ) | [static] |
Definition at line 95 of file opt_error.c.
References exit(), fflush(), fprintf(), fputc(), fputs(), opt_Abort_File, opt_Abort_Loc, strlen(), and vfprintf().
Referenced by opt_error(), OPT_Error_Fmt(), opt_fatal(), opt_info(), and opt_verbose().
Definition at line 158 of file opt_error.c.
References ER_ERROR, ER_FATAL, ER_INFO, ER_VERBOSE, opt_error(), opt_fatal(), opt_info(), opt_verbose(), va_end, and va_start.
Definition at line 131 of file opt_error.c.
References ERN_IGNORED, error_routine(), FALSE, OPT_ASSERT, opt_num_errors, and str.
Referenced by OPT_Error().
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.
Definition at line 118 of file opt_error.c.
References ERN_IGNORED, ERN_INTERNAL, error(), error_routine(), str, and TRUE.
Referenced by OPT_Error().
Definition at line 148 of file opt_error.c.
References ERN_IGNORED, error_routine(), FALSE, infoflag, OPT_ASSERT, and str.
Referenced by OPT_Error().
Definition at line 140 of file opt_error.c.
References ERN_IGNORED, error_routine(), FALSE, OPT_ASSERT, and str.
Referenced by OPT_Error().
Initial value:
{
{ERN_IGNORED, 0},
{ERN_INTERNAL, "Internal error"},
{ERN_OUT_OF_MEM, "Out of memory"},
{ERN_BAD_OPTION, "Unknown option: %s (ignored)."}
}
Definition at line 87 of file opt_error.c.
Referenced by Cif_Errstring(), ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), fixed_classify_line(), ir_bwrite_signal_handler(), Ir_Lno_Signal_Handler(), parse_implicit_stmt(), parse_intent_spec(), parse_typed_function_stmt(), process_C_option(), process_d_option(), process_e_option(), process_P_option(), process_q_option(), process_R_option(), process_r_option(), and sysfatal().
| char* opt_Abort_File = NULL |
| INT opt_Abort_Loc = 0 |
INT opt_num_errors [static] |
char* rcs_id = "$Source: /home/bos/bk/kpro64-pending/be/opt/SCCS/s.opt_error.c $ $Revision: 1.5 $" [static] |
Definition at line 54 of file opt_error.c.
char* source_file = __FILE__ [static] |
Definition at line 53 of file opt_error.c.
Definition at line 85 of file opt_error.c.
Referenced by _dwarf_print_one_locdesc(), c_common_handle_option(), c_common_post_options(), cp_printer(), d_substitution(), DEFUN(), get_attr_value(), lang_specific_driver(), main(), parse_fn_proto(), print_aranges(), print_frame_inst_bytes(), print_frames(), print_infos(), print_line_numbers_this_cu(), print_static_funcs(), print_static_vars(), print_types(), print_weaknames(), process_args(), read_scan_file(), recognized_function(), and s().
1.5.6