]> git.donarmstrong.com Git - lilypond.git/commitdiff
parser.yy: Use Bison directives rather than preprocessor macros
authorDavid Kastrup <dak@gnu.org>
Thu, 2 Aug 2012 07:08:45 +0000 (09:08 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 3 Aug 2012 09:38:34 +0000 (11:38 +0200)
YYERROR_VERBOSE has been deprecated in Bison 2.6.

lily/parser.yy

index 33655111583ad1e76b0f07a33052f84b1d8bcc07..fc9aea63be73c95966a31ebe207b12228fdff2bf 100644 (file)
@@ -29,9 +29,6 @@
 
 %{
 
-#define YYDEBUG 1
-#define YYERROR_VERBOSE 1
-
 #define yyerror Lily_parser::parser_error
 
 /* We use custom location type: Input objects */
@@ -44,6 +41,8 @@
 
 %parse-param {Lily_parser *parser}
 %lex-param {Lily_parser *parser}
+%error-verbose
+%debug
 
 /* We use SCMs to do strings, because it saves us the trouble of
 deleting them.  Let's hope that a stack overflow doesn't trigger a move