f70f03ebaa7cd781478dea0ff695abef270720ec
[openwrt/svn-archive/archive.git] / multimedia / gstreamer / patches / 005-YYLEX_PARAM_to_lex-param.patch
1 From 60516f4798894f958fc53b470e1283318d0f8706 Mon Sep 17 00:00:00 2001
2 From: Kerrick Staley <kerrick@kerrickstaley.com>
3 Date: Wed, 21 Aug 2013 06:59:29 +0000
4 Subject: parse: make grammar.y work with Bison 3
5
6 YYLEX_PARAM is no longer supported in Bison 3.
7
8 https://bugzilla.gnome.org/show_bug.cgi?id=706462
9 ---
10 --- a/gst/parse/grammar.y
11 +++ b/gst/parse/grammar.y
12 @@ -26,7 +26,6 @@
13 */
14
15 #define YYERROR_VERBOSE 1
16 -#define YYLEX_PARAM scanner
17
18 #define YYENABLE_NLS 0
19
20 @@ -648,6 +647,7 @@ static int yyerror (void *scanner, graph
21 %right '.'
22 %left '!' '='
23
24 +%lex-param { void *scanner }
25 %parse-param { void *scanner }
26 %parse-param { graph_t *graph }
27 %pure-parser