Main Page | Data Structures | File List | Data Fields | Globals

errhandler.h File Reference

#include "types.h"

Include dependency graph for errhandler.h:

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

Go to the source code of this file.

Defines

#define FATAL   0x80000000
#define TKERROR   0x04000000
#define WARNING   0x00200000
#define INFO   0x00010000
#define MESSAGE   0x00000800
#define P_MESSAGE   0x00000040
#define FORCE_MSG   0x00000001
#define ERRMSG_DESTINATION   stderr
#define FFLUSH_STDOUT   fflush( stdout);

Functions

void init_error_handler (void)
void tokenization_error (int err_type, char *msg,...)
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)


Define Documentation

#define ERRMSG_DESTINATION   stderr
 

Definition at line 79 of file errhandler.h.

Referenced by init_error_handler(), list_fcode_ranges(), print_started_at(), show_all_cl_flag_settings(), and tokenization_error().

#define FATAL   0x80000000
 

Definition at line 43 of file errhandler.h.

Referenced by assigning_fcode(), close_output(), emit_token(), error_summary(), get_word(), increase_output_buffer(), safe_malloc(), skip_string(), and tokenization_error().

#define FFLUSH_STDOUT   fflush( stdout);
 

Definition at line 80 of file errhandler.h.

Referenced by handle_internal(), init_error_handler(), init_output(), and init_stream().

#define FORCE_MSG   0x00000001
 

Definition at line 49 of file errhandler.h.

Referenced by expansion_error().

#define INFO   0x00010000
 

Definition at line 46 of file errhandler.h.

Referenced by abort_quote(), assigning_fcode(), check_name_length(), conditionally_tokenize(), create_current_alias(), emit_pci_data_block(), encode_file(), enter_global_scope(), exists_in_ancestor(), finish_device_vocab(), finish_incl_list_scan(), handle_internal(), increase_output_buffer(), init_error_handler(), new_device_vocab(), offset_too_large(), resume_device_scope(), set_cl_flag(), tokenized_word_error(), tokz_emit_fcode(), tokz_esc_next_fcode(), trace_creation(), and you_are_here().

#define MESSAGE   0x00000800
 

Definition at line 47 of file errhandler.h.

Referenced by handle_internal(), handle_user_message(), and show_all_cl_flag_settings().

#define P_MESSAGE   0x00000040
 

Definition at line 48 of file errhandler.h.

Referenced by handle_internal().

#define TKERROR   0x04000000
 

Definition at line 44 of file errhandler.h.

Referenced by abort_quote(), assign_local(), assigning_fcode(), cannot_apply(), check_name_length(), clear_control_structs_to_limit(), conditionally_tokenize(), control_stack_size_test(), control_structure_mismatch(), create_constant(), create_word(), declare_locals(), emit_fcodehdr(), emit_pcihdr(), emit_string(), error_check_locals(), error_summary(), expand_pathname(), fcode_ender(), finish_device_vocab(), finish_fcodehdr(), finish_or_new_device(), finish_pcihdr(), gather_locals(), get_fcode_from_stack(), get_string(), get_until(), get_word_in_line(), handle_internal(), init_output(), init_stream(), macro_recursion_error(), must_be_deep_in_do(), not_in_dict(), offset_too_large(), open_expanded_file(), print_if_mac_err(), reset_normal_vocabs(), set_cl_flag(), stackerror(), string_err_check(), tokenization_error(), tokenized_word_error(), and validate_to_target().

#define WARNING   0x00200000
 

Definition at line 45 of file errhandler.h.

Referenced by base_val(), c_string_escape(), check_name_length(), conditionally_tokenize(), create_alias(), dev_vocab_control_struct_check(), emit_fc_offset(), enter_global_scope(), error_check_locals(), eval_user_symbol(), fcode_end_err_check(), fcode_ender(), fcode_starter(), finish_fcodehdr(), finish_or_new_device(), get_fcode_from_stack(), get_string(), handle_internal(), handle_user_message(), init_output(), locals_separator(), modified_by_instance(), obsolete_warning(), process_remark(), resume_device_scope(), ret_stk_access_rpt(), ret_stk_balance_rpt(), string_remark(), tokz_esc_emit_byte(), validate_to_target(), warn_if_duplicate(), and warn_if_multiline().


Function Documentation

bool error_summary void   ) 
 

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().

void in_last_colon void   ) 
 

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:

void init_error_handler void   ) 
 

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().

void just_started_at char *  saved_ifile,
unsigned int  saved_lineno
 

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:

void just_where_started char *  saved_ifile,
unsigned int  saved_lineno
 

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:

void print_started_at char *  saved_ifile,
unsigned int  saved_lineno
 

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:

_PTR safe_malloc size_t  size,
char *  phrase
 

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:

void started_at char *  saved_ifile,
unsigned int  saved_lineno
 

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:

void tokenization_error int  err_type,
char *  msg,
  ...
 

Definition at line 450 of file errhandler.c.

References err_category::category_name, err_category::counter, err_count, err_types_found, ERRMSG_DESTINATION, error_summary(), errs_to_print, FATAL, fatal_err_exit, iname, lineno, err_category::new_line, num_categories, print_msg, err_category::single, and TKERROR.

Referenced by abort_quote(), assign_local(), assigning_fcode(), base_val(), c_string_escape(), cannot_apply(), check_name_length(), close_output(), conditionally_tokenize(), control_stack_size_test(), control_struct_incomplete(), control_structure_mismatch(), could_not_open(), create_alias(), create_current_alias(), emit_fc_offset(), emit_fcodehdr(), emit_pci_data_block(), emit_pcihdr(), emit_string(), emit_token(), encode_file(), enter_global_scope(), error_check_locals(), eval_user_symbol(), exists_in_ancestor(), expand_pathname(), expanded_name(), fcode_end_err_check(), fcode_ender(), fcode_starter(), finish_device_vocab(), finish_fcodehdr(), finish_incl_list_scan(), finish_pcihdr(), gather_locals(), get_fcode_from_stack(), get_string(), get_until(), get_word(), get_word_in_line(), glob_not_allowed(), handle_internal(), handle_user_message(), increase_output_buffer(), init_stream(), locals_separator(), macro_recursion_error(), modified_by_instance(), must_be_deep_in_do(), new_device_vocab(), not_in_dict(), obsolete_warning(), offset_too_large(), open_expanded_file(), print_if_mac_err(), process_remark(), reset_normal_vocabs(), resume_device_scope(), ret_stk_access_rpt(), ret_stk_balance_rpt(), safe_malloc(), set_cl_flag(), show_all_cl_flag_settings(), skip_string(), stackerror(), test_in_colon(), tokenized_word_error(), tokz_emit_fcode(), tokz_esc_emit_byte(), tokz_esc_next_fcode(), trace_creation(), unresolved_instance(), validate_to_target(), warn_if_duplicate(), warn_if_multiline(), warn_unterm(), and you_are_here().

Here is the call graph for this function:

void where_started char *  saved_ifile,
unsigned int  saved_lineno
 

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:


Generated on Fri Aug 18 14:04:14 2006 for Toke1.0 by  doxygen 1.4.4