wok-current diff ptlib/stuff/ptlib-2.10.10-mga-bison-parameter.patch @ rev 24098
Up hplip (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 14 08:03:53 2021 +0000 (2021-09-14) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ptlib/stuff/ptlib-2.10.10-mga-bison-parameter.patch Tue Sep 14 08:03:53 2021 +0000 1.3 @@ -0,0 +1,39 @@ 1.4 +--- ptlib-2.10.11/src/ptlib/common/getdate.y 2013-08-15 01:20:26.000000000 +0200 1.5 ++++ ptlib-2.10.11/src/ptlib/common/getdate.y 2013-12-15 00:24:27.866481490 +0100 1.6 +@@ -121,9 +121,9 @@ 1.7 + static int yylex(); 1.8 + 1.9 + #ifdef __GNUC__ 1.10 +-static int yyerror(char const *msg); 1.11 ++static int yyerror(void *, char const *msg); 1.12 + #else 1.13 +-static void yyerror(char const *msg); 1.14 ++static void yyerror(void *, char const *msg); 1.15 + #endif 1.16 + 1.17 + 1.18 +@@ -132,7 +132,8 @@ 1.19 + 1.20 + %} 1.21 + 1.22 +-%pure_parser 1.23 ++%define api.pure 1.24 ++%parse-param {void *parseParam} 1.25 + 1.26 + %union { 1.27 + time_t Number; 1.28 +@@ -1018,12 +1019,12 @@ 1.29 + #endif 1.30 + 1.31 + #ifdef __GNUC__ 1.32 +-int yyerror(const char * s) 1.33 ++int yyerror(void *var, const char * s) 1.34 + { 1.35 + return 0; 1.36 + } 1.37 + #else 1.38 +-static void yyerror(const char * s) 1.39 ++static void yyerror(void *var, const char * s) 1.40 + { 1.41 + } 1.42 + #endif