version 1.1, 2005/03/23 20:00:18 |
version 1.2, 2005/03/24 03:07:04 |
|
|
|
|
#include <ctype.h> |
#include <ctype.h> |
#include <stdio.h> |
#include <stdio.h> |
|
#include <stdarg.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <time.h> |
#include <time.h> |
|
|
static time_t yyRelMonth; |
static time_t yyRelMonth; |
static time_t yyRelSeconds; |
static time_t yyRelSeconds; |
|
|
|
|
|
static int yyerror (const char *, ...); |
|
static int yylex (void); |
|
static int yyparse (void); |
|
|
|
|
%} |
%} |
|
|
%union { |
%union { |
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
static int |
yyerror(char *s) |
yyerror(const char *fmt, ...) |
{ |
{ |
cvs_log(LP_ERR, "%s", s); |
va_list vap; |
|
|
|
va_start(vap, fmt); |
|
cvs_vlog(LP_ERR, fmt, vap); |
|
va_end(vap); |
|
|
return (0); |
return (0); |
} |
} |
|
|
|
|
{ |
{ |
struct tm *tm, gmt; |
struct tm *tm, gmt; |
struct timeb ftz; |
struct timeb ftz; |
time_t Start; |
time_t Start, tod, nowtime; |
time_t tod; |
|
time_t nowtime; |
|
|
|
yyInput = p; |
yyInput = p; |
if (now == NULL) { |
if (now == NULL) { |