From: Sebastian Harl Date: Mon, 24 Mar 2008 11:07:20 +0000 (+0100) Subject: liboconfig/parser.y: Enabled verbose error messages. X-Git-Tag: collectd-4.2.6~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=886a41b16b30e495b0508ceae3eeb9cea3304d43;p=thirdparty%2Fcollectd.git liboconfig/parser.y: Enabled verbose error messages. This uses bison's "%error-verbose" option which might not be available in other yacc implementations. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y index 48b9bf3d7..d237273c7 100644 --- a/src/liboconfig/parser.y +++ b/src/liboconfig/parser.y @@ -65,6 +65,9 @@ extern char *c_file; %type statement_list %type entire_file +/* pass an verbose, specific error message to yyerror() */ +%error-verbose + %% string: QUOTED_STRING {$$ = unquote ($1);}