vhdlpp: Generic syntax errors display messages.

This commit is contained in:
Maciej Suminski 2015-02-03 15:07:19 +01:00
parent 8777cd8e7c
commit a1c2a8e605
1 changed files with 2 additions and 2 deletions

View File

@ -2504,9 +2504,9 @@ K_postponed_opt : K_postponed | ;
K_shared_opt : K_shared | ;
%%
static void yyerror(YYLTYPE*, yyscan_t, const char*, bool, const char* /*msg*/)
static void yyerror(YYLTYPE*loc, yyscan_t, const char*, bool, const char*msg)
{
//fprintf(stderr, "%s\n", msg);
fprintf(stderr, "%s:%u: %s\n", loc->text, loc->first_line, msg);
parse_errors += 1;
}