stage3/print_datatypes_error.cc
changeset 510 9317e04c1dde
parent 502 a6211f73690b
child 514 c2880eba49a1
equal deleted inserted replaced
509:35d391c38a30 510:9317e04c1dde
    59             FIRST_(symbol1,symbol2)->first_file, FIRST_(symbol1,symbol2)->first_line, FIRST_(symbol1,symbol2)->first_column,\
    59             FIRST_(symbol1,symbol2)->first_file, FIRST_(symbol1,symbol2)->first_line, FIRST_(symbol1,symbol2)->first_column,\
    60                                                  LAST_(symbol1,symbol2) ->last_line,  LAST_(symbol1,symbol2) ->last_column);\
    60                                                  LAST_(symbol1,symbol2) ->last_line,  LAST_(symbol1,symbol2) ->last_column);\
    61     fprintf(stderr, __VA_ARGS__);                                                                                           \
    61     fprintf(stderr, __VA_ARGS__);                                                                                           \
    62     fprintf(stderr, "\n");                                                                                                  \
    62     fprintf(stderr, "\n");                                                                                                  \
    63     il_error = true;                                                                                                        \
    63     il_error = true;                                                                                                        \
    64     error_found = true;                                                                                                     \
    64     error_count++;                                                                                                     \
    65   }                                                                                                                         \
    65   }                                                                                                                         \
    66 }  
    66 }  
    67 
    67 
    68 
    68 
    69 #define STAGE3_WARNING(symbol1, symbol2, ...) {                                                                             \
    69 #define STAGE3_WARNING(symbol1, symbol2, ...) {                                                                             \
    78 
    78 
    79 /* set to 1 to see debug info during execution */
    79 /* set to 1 to see debug info during execution */
    80 static int debug = 0;
    80 static int debug = 0;
    81 
    81 
    82 print_datatypes_error_c::print_datatypes_error_c(symbol_c *ignore) {
    82 print_datatypes_error_c::print_datatypes_error_c(symbol_c *ignore) {
    83 	error_found = false;
    83 	error_count = 0;
    84 	warning_found = false;
    84 	warning_found = false;
    85 	current_display_error_level = error_level_default;
    85 	current_display_error_level = error_level_default;
    86 }
    86 }
    87 
    87 
    88 print_datatypes_error_c::~print_datatypes_error_c(void) {
    88 print_datatypes_error_c::~print_datatypes_error_c(void) {
    89 }
    89 }
    90 
    90 
    91 int print_datatypes_error_c::get_error_found() {
    91 int print_datatypes_error_c::get_error_count() {
    92 	return error_found;
    92 	return error_count;
    93 }
    93 }
    94 
    94 
    95 
    95 
    96 
    96 
    97 
    97