projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aee817
)
liboconfig/parser.y: Enabled verbose error messages.
author
Sebastian Harl
<sh@tokkee.org>
Mon, 24 Mar 2008 11:07:20 +0000
(12:07 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 24 Mar 2008 11:13:44 +0000
(12:13 +0100)
This uses bison's "%error-verbose" option which might not be available in
other yacc implementations.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/parser.y
patch
|
blob
|
history
diff --git
a/src/liboconfig/parser.y
b/src/liboconfig/parser.y
index
48b9bf3
..
d237273
100644
(file)
--- 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);}