]> granicus.if.org Git - php/commitdiff
This is no longer needed. Note that we'll always need to undefine YYSTYPE, since
authorZeev Suraski <zeev@php.net>
Mon, 6 Dec 1999 15:34:05 +0000 (15:34 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 6 Dec 1999 15:34:05 +0000 (15:34 +0000)
the template bison generated .h file defines it if it's not already defined.

ext/standard/parsedate.y

index 877b47047603dccdeb24b4c0d43564daa5f2a706..e143b953584cfde3c698c40ee89bae7de9736498 100644 (file)
@@ -856,7 +856,7 @@ static int date_lex(void)
 
 time_t parsedate(char *p, TIMEINFO *now)
 {
-       extern int date_parse (YYPARSE_PARAM_ARG);
+       extern int date_parse(void);
     struct tm          *tm, tmbuf;
     TIMEINFO           ti;
     time_t             Start;
@@ -887,7 +887,7 @@ time_t parsedate(char *p, TIMEINFO *now)
     yyHaveRel = 0;
     yyHaveTime = 0;
 
-    if (date_parse(YYPARSE_PARAM_ARG) || yyHaveTime > 1 || yyHaveDate > 1)
+    if (date_parse() || yyHaveTime > 1 || yyHaveDate > 1)
        return -1;
 
     if (yyHaveDate || yyHaveTime) {