1%{
2/*
3** Originally written by Steven M. Bellovin <smb@research.att.com> while
4** at the University of North Carolina at Chapel Hill. Later tweaked by
5** a couple of people on Usenet. Completely overhauled by Rich $alz
6** <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990;
7**
8** This grammar has 10 shift/reduce conflicts.
9**
10** This code is in the public domain and has no copyright.
11**
12** Picked up from CVS and slightly cleaned up by to WARNS=5 level by
13** Poul-Henning Kamp <phk@FreeBSD.org>
14**
15** $FreeBSD: head/usr.sbin/fifolog/lib/getdate.y 235789 2012-05-22 16:33:10Z bapt $
16*/
17
18#include <stdio.h>
19#include <stdlib.h>
20#include <ctype.h>
21#include <string.h>
22#include <sys/types.h>
23#include <sys/time.h>
24
25#include "libfifolog.h"
26
27#define yylex getdate_yylex
28#define yyerror getdate_yyerror
29
30static int yylex(void);
31static int yyerror(const char *);
32
33#define EPOCH 1970
34#define HOUR(x) ((time_t)(x) * 60)
35#define SECSPERDAY (24L * 60L * 60L)
36
37
--- 850 unchanged lines hidden ---
2/*
3** Originally written by Steven M. Bellovin <smb@research.att.com> while
4** at the University of North Carolina at Chapel Hill. Later tweaked by
5** a couple of people on Usenet. Completely overhauled by Rich $alz
6** <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990;
7**
8** This grammar has 10 shift/reduce conflicts.
9**
10** This code is in the public domain and has no copyright.
11**
12** Picked up from CVS and slightly cleaned up by to WARNS=5 level by
13** Poul-Henning Kamp <phk@FreeBSD.org>
14**
15** $FreeBSD: head/usr.sbin/fifolog/lib/getdate.y 235789 2012-05-22 16:33:10Z bapt $
16*/
17
18#include <stdio.h>
19#include <stdlib.h>
20#include <ctype.h>
21#include <string.h>
22#include <sys/types.h>
23#include <sys/time.h>
24
25#include "libfifolog.h"
26
27#define yylex getdate_yylex
28#define yyerror getdate_yyerror
29
30static int yylex(void);
31static int yyerror(const char *);
32
33#define EPOCH 1970
34#define HOUR(x) ((time_t)(x) * 60)
35#define SECSPERDAY (24L * 60L * 60L)
36
37
--- 850 unchanged lines hidden ---