#define YYLEX_PARAM parm
#define YYPARSE_PARAM parm
-static int yyerror ();
-static int yylex ();
-
%}
/* We want a reentrant parser. */
textint textintval;
}
+%{
+
+static int yyerror(const char *);
+static int yylex(YYSTYPE *, parser_control *);
+
+%}
+
%token tAGO tDST
%token <intval> tDAY tDAY_UNIT tDAYZONE tHOUR_UNIT tLOCAL_ZONE tMERIDIAN
#include "modules/getdate.h"
#ifndef gmtime
-struct tm *gmtime ();
+struct tm *gmtime (const time_t *);
#endif
#ifndef localtime
-struct tm *localtime ();
+struct tm *localtime (const time_t *);
#endif
#ifndef mktime
-time_t mktime ();
+time_t mktime (struct tm *);
#endif
static table const meridian_table[] =
/* Do nothing if the parser reports an error. */
static int
-yyerror (char *s ATTRIBUTE_UNUSED)
+yyerror (const char *s ATTRIBUTE_UNUSED)
{
return 0;
}