wok-6.x annotate ptlib/stuff/ptlib-2.10.10-mga-bison-parameter.patch @ rev 23893
Fix jabberd2 & ntl
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 25 17:44:56 2020 +0000 (2020-07-25) |
parents | |
children |
rev | line source |
---|---|
pascal@23893 | 1 --- ptlib-2.10.11/src/ptlib/common/getdate.y 2013-08-15 01:20:26.000000000 +0200 |
pascal@23893 | 2 +++ ptlib-2.10.11/src/ptlib/common/getdate.y 2013-12-15 00:24:27.866481490 +0100 |
pascal@23893 | 3 @@ -121,9 +121,9 @@ |
pascal@23893 | 4 static int yylex(); |
pascal@23893 | 5 |
pascal@23893 | 6 #ifdef __GNUC__ |
pascal@23893 | 7 -static int yyerror(char const *msg); |
pascal@23893 | 8 +static int yyerror(void *, char const *msg); |
pascal@23893 | 9 #else |
pascal@23893 | 10 -static void yyerror(char const *msg); |
pascal@23893 | 11 +static void yyerror(void *, char const *msg); |
pascal@23893 | 12 #endif |
pascal@23893 | 13 |
pascal@23893 | 14 |
pascal@23893 | 15 @@ -132,7 +132,8 @@ |
pascal@23893 | 16 |
pascal@23893 | 17 %} |
pascal@23893 | 18 |
pascal@23893 | 19 -%pure_parser |
pascal@23893 | 20 +%define api.pure |
pascal@23893 | 21 +%parse-param {void *parseParam} |
pascal@23893 | 22 |
pascal@23893 | 23 %union { |
pascal@23893 | 24 time_t Number; |
pascal@23893 | 25 @@ -1018,12 +1019,12 @@ |
pascal@23893 | 26 #endif |
pascal@23893 | 27 |
pascal@23893 | 28 #ifdef __GNUC__ |
pascal@23893 | 29 -int yyerror(const char * s) |
pascal@23893 | 30 +int yyerror(void *var, const char * s) |
pascal@23893 | 31 { |
pascal@23893 | 32 return 0; |
pascal@23893 | 33 } |
pascal@23893 | 34 #else |
pascal@23893 | 35 -static void yyerror(const char * s) |
pascal@23893 | 36 +static void yyerror(void *var, const char * s) |
pascal@23893 | 37 { |
pascal@23893 | 38 } |
pascal@23893 | 39 #endif |