/* SUPPRESS 593 on yynewstate *//* Label was not used */
/* SUPPRESS 595 on yypvt *//* Automatic variable may be used before set */
-#ifdef DLL_EXPORT
-#define IN_LIBCIT
-#endif
-
#include "sysdep.h"
#include <stdio.h>
** union, but this is more efficient. (This routine predates the
** yacc %union construct.)
*/
-static char *yyInput;
+static const char *yyInput;
static DSTMODE yyDSTmode;
static int yyHaveDate;
static int yyHaveRel;
time_t
-parsedate(char *p)
+parsedate(const char *p)
{
extern int date_parse(void);
time_t Start;
- yyInput = p;
+ yyInput = p; /* well, its supposed to be const... */
yyYear = 0;
yyMonth = 0;
for ( ; ; ) {
(void)printf("\t> ");
(void)fflush(stdout);
- if (gets(buff) == NULL || buff[0] == '\n')
+ if (fgets(buff, sizeof buff, stdin) == NULL || buff[0] == '\n')
break;
#if YYDEBUG
if (strcmp(buff, "yydebug") == 0) {