1*c87b03e5Sespie typedef long time_t;
2*c87b03e5Sespie static __const int mon_lengths[2][12] = {
3*c87b03e5Sespie   31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
4*c87b03e5Sespie   31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
5*c87b03e5Sespie };
6*c87b03e5Sespie static time_t
f(janfirst,year,rulep,offset)7*c87b03e5Sespie f (janfirst, year, rulep, offset)
8*c87b03e5Sespie      __const time_t janfirst;
9*c87b03e5Sespie      __const int year;
10*c87b03e5Sespie      register __const struct rule * __const rulep;
11*c87b03e5Sespie      __const long offset;
12*c87b03e5Sespie {
13*c87b03e5Sespie   register int leapyear;
14*c87b03e5Sespie   register time_t value;
15*c87b03e5Sespie   register int i;
16*c87b03e5Sespie 
17*c87b03e5Sespie   value += mon_lengths[leapyear][i] * ((long) (60 * 60) * 24);
18*c87b03e5Sespie }
19