Deleted Added
full compact
getdate.y (201227) getdate.y (235789)
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**
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 201227 2009-12-29 22:53:27Z ed $
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
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 yyparse getdate_yyparse
28#define yylex getdate_yylex
29#define yyerror getdate_yyerror
30
27#define yylex getdate_yylex
28#define yyerror getdate_yyerror
29
31static int yyparse(void);
32static int yylex(void);
33static int yyerror(const char *);
34
35#define EPOCH 1970
36#define HOUR(x) ((time_t)(x) * 60)
37#define SECSPERDAY (24L * 60L * 60L)
38
39

--- 850 unchanged lines hidden ---
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 ---