/* ARGSUSED */
static int
-yyerror(s)
- char *s;
+yyerror(char *s)
{
return 0;
}
static time_t
-ToSeconds(Hours, Minutes, Seconds, Meridian)
- time_t Hours;
- time_t Minutes;
- time_t Seconds;
- MERIDIAN Meridian;
+ToSeconds(time_t Hours, time_t Minutes, time_t Seconds, MERIDIAN Meridian)
{
if (Minutes < 0 || Minutes > 59 || Seconds < 0 || Seconds > 59)
return -1;
* of seconds since 00:00:00 1/1/70 GMT.
*/
static time_t
-Convert(Month, Day, Year, Hours, Minutes, Seconds, Meridian, DSTmode)
- time_t Month;
- time_t Day;
- time_t Year;
- time_t Hours;
- time_t Minutes;
- time_t Seconds;
- MERIDIAN Meridian;
- DSTMODE DSTmode;
+Convert(time_t Month, time_t Day, time_t Year, time_t Hours, time_t Minutes,
+ time_t Seconds, MERIDIAN Meridian, DSTMODE DSTmode)
{
static int DaysInMonth[12] = {
31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
static time_t
-DSTcorrect(Start, Future, error)
- time_t Start;
- time_t Future;
- int *error;
+DSTcorrect(time_t Start, time_t Future, int *error)
{
time_t StartDay;
time_t FutureDay;
static time_t
-RelativeDate(Start, DayOrdinal, DayNumber, error)
- time_t Start;
- time_t DayOrdinal;
- time_t DayNumber;
- int *error;
+RelativeDate(time_t Start, time_t DayOrdinal, time_t DayNumber, int *error)
{
struct tm *tm;
time_t now;
static time_t
-RelativeMonth(Start, RelMonth)
- time_t Start;
- time_t RelMonth;
+RelativeMonth(time_t Start, time_t RelMonth)
{
struct tm *tm;
time_t Month;
static int
-LookupWord(buff)
- char *buff;
+LookupWord(char *buff)
{
register char *p;
register char *q;
/* Yield A - B, measured in seconds. */
static time_t
-difftm(a, b)
- struct tm *a, *b;
+difftm(struct tm *a, struct tm *b)
{
int ay = a->tm_year + (TM_YEAR_ORIGIN - 1);
int by = b->tm_year + (TM_YEAR_ORIGIN - 1);
time_t get_date(char *);
time_t
-get_date(p)
- char *p;
+get_date(char *p)
{
struct my_timeb *now = NULL;
struct tm *tm, gmt;
#if defined(TEST)
/* ARGSUSED */
-main(ac, av)
- int ac;
- char *av[];
+main(int ac, char *av[])
{
char buff[128];
time_t d;