wok view ptlib/stuff/ptlib-2.10.10-mga-bison-parameter.patch @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents
children
line source
1 --- ptlib-2.10.11/src/ptlib/common/getdate.y 2013-08-15 01:20:26.000000000 +0200
2 +++ ptlib-2.10.11/src/ptlib/common/getdate.y 2013-12-15 00:24:27.866481490 +0100
3 @@ -121,9 +121,9 @@
4 static int yylex();
6 #ifdef __GNUC__
7 -static int yyerror(char const *msg);
8 +static int yyerror(void *, char const *msg);
9 #else
10 -static void yyerror(char const *msg);
11 +static void yyerror(void *, char const *msg);
12 #endif
15 @@ -132,7 +132,8 @@
17 %}
19 -%pure_parser
20 +%define api.pure
21 +%parse-param {void *parseParam}
23 %union {
24 time_t Number;
25 @@ -1018,12 +1019,12 @@
26 #endif
28 #ifdef __GNUC__
29 -int yyerror(const char * s)
30 +int yyerror(void *var, const char * s)
31 {
32 return 0;
33 }
34 #else
35 -static void yyerror(const char * s)
36 +static void yyerror(void *var, const char * s)
37 {
38 }
39 #endif