aboutsummaryrefslogtreecommitdiff
blob: 79dcce8d951a3a66f223820f1b3e1bb3a14f6008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Patch grabbed from OpenELEC.tv: support bison-2.6



commit f328373fee79971b8e5754ab05a182cb544b0e7f
Author: Stephan Raue <stephan@openelec.tv>
Date:   Mon Jul 23 15:39:17 2012 +0200

diff -Naur libaacs-0.4.0-old/src/file/keydbcfg-parser.y libaacs-0.4.0-new/src/file/keydbcfg-parser.y
--- libaacs-0.4.0-old/src/file/keydbcfg-parser.y	2012-05-04 04:23:42.000000000 -0700
+++ libaacs-0.4.0-new/src/file/keydbcfg-parser.y	2012-07-21 19:20:14.000000000 -0700
@@ -1,4 +1,8 @@
-%{
+%code requires {
+#include "file/keydbcfg.h"
+}
+
+%code {
 /*
  * This file is part of libaacs
  * Copyright (C) 2010  gates
@@ -18,7 +22,6 @@
  * <http://www.gnu.org/licenses/>.
  */
 
-#include "file/keydbcfg.h"
 #include "util/macro.h"
 
 #include <stdio.h>
@@ -85,7 +88,7 @@
 
 /* uncomment the line below for debugging */
 // int yydebug = 1;
-%}
+}
 /* Options set to generate a reentrant parser that is POSIX yacc compatible
  * The basic 'scanner' parameters are set. Also, another parameter is set
  * to pass in a title entry list struct used to hold all title entries.