Skip to content

Commit 7ae5d27

Browse files
author
Sam Ruby
committed
build error: wrong num parms to date_parse
1 parent 0d7c37b commit 7ae5d27

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

ext/standard/parsedate.y

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -856,14 +856,11 @@ static int date_lex(void)
856856

857857
time_t parsedate(char *p, TIMEINFO *now)
858858
{
859-
#ifdef YYPARSE_PARAM
860-
extern int date_parse (void *);
861-
#else
862-
extern int date_parse (void);
863-
#endif
859+
extern int date_parse (YYPARSE_PARAM_ARG);
864860
struct tm *tm, tmbuf;
865861
TIMEINFO ti;
866862
time_t Start;
863+
CLS_FETCH();
867864

868865
yyInput = p;
869866
if (now == NULL) {
@@ -891,7 +888,7 @@ time_t parsedate(char *p, TIMEINFO *now)
891888
yyHaveRel = 0;
892889
yyHaveTime = 0;
893890

894-
if (date_parse() || yyHaveTime > 1 || yyHaveDate > 1)
891+
if (date_parse(YYPARSE_PARAM_ARG) || yyHaveTime > 1 || yyHaveDate > 1)
895892
return -1;
896893

897894
if (yyHaveDate || yyHaveTime) {

0 commit comments

Comments
 (0)