[collectd] [PATCH] liboconfig/parser.y: Enabled verbose error messages.

Sebastian Harl sh at tokkee.org
Mon Mar 24 12:07:20 CET 2008


This uses bison's "%error-verbose" option which might not be available in
other yacc implementations.

Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 src/liboconfig/parser.y |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y
index 91f20e9..49cd139 100644
--- a/src/liboconfig/parser.y
+++ b/src/liboconfig/parser.y
@@ -65,6 +65,9 @@ extern char           *c_file;
 %type <sl> statement_list
 %type <ci> entire_file
 
+/* pass an verbose, specific error message to yyerror() */
+%error-verbose
+
 %%
 string:
 	QUOTED_STRING		{$$ = unquote ($1);}
-- 
1.5.4.3.325.g6d216

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080324/96a69541/attachment.pgp 


More information about the collectd mailing list