#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "types.h"
#include "toke.h"
#include "stream.h"
#include "errhandler.h"
#include "scanner.h"
Include dependency graph for errhandler.c:
Go to the source code of this file.
Data Structures | |
struct | err_category |
Functions | |
void | init_error_handler (void) |
void | tokenization_error (int err_type, char *msg,...) |
static void | print_where_started (bool show_started, bool show_that_st, char *saved_ifile, unsigned int saved_lineno, bool may_show_incolon) |
void | started_at (char *saved_ifile, unsigned int saved_lineno) |
void | print_started_at (char *saved_ifile, unsigned int saved_lineno) |
void | just_started_at (char *saved_ifile, unsigned int saved_lineno) |
void | where_started (char *saved_ifile, unsigned int saved_lineno) |
void | just_where_started (char *saved_ifile, unsigned int saved_lineno) |
void | in_last_colon (void) |
_PTR | safe_malloc (size_t size, char *phrase) |
bool | error_summary (void) |
Variables | |
static bool | print_msg |
static int | errs_to_print |
static int | err_types_found = 0 |
static int | err_count = 0 |
static int | warn_count = 0 |
static int | info_count = 0 |
static int | user_msg_count = 0 |
static int | fatal_err_exit = -1 |
static FILE * | message_dest |
static const err_category | error_categories [] |
static const int | num_categories |
|
Definition at line 881 of file errhandler.c. References err_category::counter, err_types_found, FATAL, noerrors, num_categories, opc, and TKERROR. Referenced by close_output(), and tokenization_error(). |
|
Definition at line 794 of file errhandler.c. References incolon, last_colon_defname, last_colon_filename, last_colon_lineno, message_dest, print_msg, and print_where_started(). Referenced by control_stack_size_test(), error_check_locals(), gather_locals(), handle_internal(), must_be_deep_in_do(), print_where_started(), ret_stk_access_rpt(), ret_stk_balance_rpt(), trace_creation(), and warn_unterm(). Here is the call graph for this function: |
|
Definition at line 372 of file errhandler.c. References err_count, err_types_found, ERRMSG_DESTINATION, errs_to_print, FFLUSH_STDOUT, INFO, info_count, message_dest, user_msg_count, verbose, and warn_count. Referenced by main(). |
|
Definition at line 700 of file errhandler.c. References print_where_started(). Referenced by conditionally_tokenize(), and show_node_start(). Here is the call graph for this function: |
|
Definition at line 755 of file errhandler.c. References print_where_started(). Referenced by conditionally_tokenize(), handle_internal(), modified_by_instance(), show_node_start(), and unresolved_instance(). Here is the call graph for this function: |
|
Definition at line 669 of file errhandler.c. References ERRMSG_DESTINATION, message_dest, and started_at(). Referenced by list_fcode_ranges(). Here is the call graph for this function: |
|
Definition at line 586 of file errhandler.c. References in_last_colon(), iname, lineno, message_dest, and print_msg. Referenced by in_last_colon(), just_started_at(), just_where_started(), started_at(), and where_started(). Here is the call graph for this function: |
|
Definition at line 840 of file errhandler.c. References FATAL, fatal_err_exit, and tokenization_error(). Referenced by add_str_sub_entry(), add_tic_entry(), add_to_include_list(), add_to_trace_list(), dev_vocab_control_struct_check(), extend_filename(), init_incl_list_scan(), init_output(), init_scanner(), init_stack(), init_stream(), list_user_symbols(), new_device_vocab(), push_cstag(), push_source(), and set_next_fcode(). Here is the call graph for this function: |
|
Definition at line 652 of file errhandler.c. References print_where_started(). Referenced by assigning_fcode(), finish_device_vocab(), list_fcode_ranges(), new_device_vocab(), print_started_at(), and reset_normal_vocabs(). Here is the call graph for this function: |
|
|
Definition at line 728 of file errhandler.c. References print_where_started(). Referenced by control_struct_incomplete(), control_structure_mismatch(), offset_too_large(), and warn_if_multiline(). Here is the call graph for this function: |
|
Definition at line 152 of file errhandler.c. Referenced by init_error_handler(), and tokenization_error(). |
|
Definition at line 151 of file errhandler.c. Referenced by error_summary(), init_error_handler(), and tokenization_error(). |
|
Initial value: { { FATAL, "Fatal Error", "", "", &err_count , TRUE }, { TKERROR, "Error" , "", "s", &err_count , FALSE }, { WARNING, "Warning" , "", "s", &warn_count , FALSE }, { INFO, "Advisor" , "y", "ies", &info_count , FALSE }, { MESSAGE , "Message" , "", "s", &user_msg_count , TRUE }, { P_MESSAGE , "Message" , "", "s", &user_msg_count , FALSE } } Definition at line 180 of file errhandler.c. |
|
Initial value: Definition at line 149 of file errhandler.c. Referenced by init_error_handler(), and tokenization_error(). |
|
Definition at line 156 of file errhandler.c. Referenced by safe_malloc(), and tokenization_error(). |
|
Definition at line 154 of file errhandler.c. Referenced by init_error_handler(). |
|
Definition at line 157 of file errhandler.c. Referenced by in_last_colon(), init_error_handler(), list_fcode_ranges(), print_started_at(), and print_where_started(). |
|
Initial value: ( sizeof(error_categories) / sizeof(err_category) ) Definition at line 192 of file errhandler.c. Referenced by error_summary(), and tokenization_error(). |
|
Definition at line 148 of file errhandler.c. Referenced by in_last_colon(), print_where_started(), and tokenization_error(). |
|
Definition at line 155 of file errhandler.c. Referenced by init_error_handler(). |
|
Definition at line 153 of file errhandler.c. Referenced by init_error_handler(). |