# HG changeset patch # User mario # Date 1193947136 -3600 # Node ID fe4ecf7efa79323d6ec1652c7719ee6dfcb56a83 # Parent ec7799ec929b22b0096c94df1ce4483c74191ca9 adding some comments. diff -r ec7799ec929b -r fe4ecf7efa79 stage1_2/iec.y --- a/stage1_2/iec.y Thu Nov 01 20:58:38 2007 +0100 +++ b/stage1_2/iec.y Thu Nov 01 20:58:56 2007 +0100 @@ -1399,11 +1399,13 @@ } | library library_element_declaration {$$ = $1; $$->add_element($2);} +/* ERROR_CHECK_BEGIN */ | library error END_OF_INPUT {$$ = NULL; print_err_msg(current_filename, @2.first_line, "unknown error."); yyerrok; } +/* ERROR_CHECK_END */ ; @@ -3364,8 +3366,10 @@ identifier | prev_declared_derived_function_name {$$ = $1; - if (not(allow_function_overloading)) + if (not(allow_function_overloading)) { + fprintf(stderr, "Function overloading not allowed. Invalid identifier %s\n", ((token_c *)($1))->value); ERROR; + } } ;