| Server IP : 82.208.35.60 / Your IP : 216.73.217.116 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/ptlib/files/ |
Upload File : |
--- src/ptlib/common/getdate.y.orig 2013-02-20 02:11:52 UTC
+++ src/ptlib/common/getdate.y
@@ -106,8 +106,6 @@ struct Variables {
#define YYPURE 1
-#define YYLEX_PARAM VARIABLE
-#define YYPARSE_PARAM parseParam
#define yyparse PTime_yyparse
#define yylex PTime_yylex
@@ -121,9 +119,9 @@ static int yyparse(void *);
static int yylex();
#ifdef __GNUC__
-static int yyerror(char const *msg);
+static int yyerror(void *, char const *msg);
#else
-static void yyerror(char const *msg);
+static void yyerror(void *, char const *msg);
#endif
@@ -133,6 +131,8 @@ static void SetPossibleDate(struct Varia
%}
%pure_parser
+%parse-param {void *parseParam}
+%lex-param {void *parseParam}
%union {
time_t Number;
@@ -1018,12 +1018,12 @@ time_t STDAPICALLTYPE PTimeParse(void *
#endif
#ifdef __GNUC__
-int yyerror(const char * s)
+int yyerror(void *var, const char * s)
{
return 0;
}
#else
-static void yyerror(const char * s)
+static void yyerror(void *var, const char * s)
{
}
#endif