From a1c2a8e60584649fe02f83e62ae2e1aa2a1dfb90 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 3 Feb 2015 15:07:19 +0100 Subject: [PATCH] vhdlpp: Generic syntax errors display messages. --- vhdlpp/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vhdlpp/parse.y b/vhdlpp/parse.y index ecde6b0b2..bd3add632 100644 --- a/vhdlpp/parse.y +++ b/vhdlpp/parse.y @@ -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; }