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