usr.bin/cal/cal.c
107
((yr) <= reform->year ? j_leap_year((yr), 3, 1) : \
usr.bin/cal/cal.c
145
((yr) > reform->year ? ((yr) / 100) - (reform->year / 100) : 0)
usr.bin/cal/cal.c
149
((yr) > reform->year ? ((yr) / 400) - (reform->year / 400) : 0)
usr.bin/cal/cal.c
165
} *reform, reforms[] = {
usr.bin/cal/cal.c
282
if (reform == NULL)
usr.bin/cal/cal.c
309
year = reform->year;
usr.bin/cal/cal.c
314
month = reform->month;
usr.bin/cal/cal.c
65
#define FIRST_MISSING_DAY reform->first_missing_day
usr.bin/cal/cal.c
66
#define NUMBER_MISSING_DAYS reform->missing_days
usr.bin/cal/cal.c
728
static struct reform Goestheveezl;
usr.bin/cal/cal.c
730
reform = &Goestheveezl;
usr.bin/cal/cal.c
731
reform->country = "Bompzidaize";
usr.bin/cal/cal.c
732
reform->year = year;
usr.bin/cal/cal.c
733
reform->month = month;
usr.bin/cal/cal.c
734
reform->date = date;
usr.bin/cal/cal.c
742
for (reform = &reforms[0]; reform->year; reform++) {
usr.bin/cal/cal.c
743
if (strcasecmp(p, reform->country) == 0)
usr.bin/cal/cal.c
754
for (reform = &reforms[0]; reform->year; reform++) {
usr.bin/cal/cal.c
755
if ((year == 0 || year == reform->year) &&
usr.bin/cal/cal.c
756
(month == 0 || month == reform->month) &&
usr.bin/cal/cal.c
757
(date == 0 || month == reform->date))
usr.bin/cal/cal.c
761
if (i <= reform->ambiguity)
usr.bin/cal/cal.c
768
if (reform->year == 0)
usr.bin/cal/cal.c
774
reform->missing_days =
usr.bin/cal/cal.c
775
j_leap_days(reform->year, reform->month, reform->date) -
usr.bin/cal/cal.c
776
g_leap_days(reform->year, reform->month, reform->date) -
usr.bin/cal/cal.c
779
reform->first_missing_day =
usr.bin/cal/cal.c
780
(reform->year - 1) * 365 +
usr.bin/cal/cal.c
781
day_in_year(reform->date, reform->month, reform->year) +
usr.bin/cal/cal.c
783
j_leap_days(reform->year, reform->month, reform->date);
usr.bin/cal/cal.c
789
diw = day_in_week(reform->date, reform->month, reform->year);
usr.bin/cal/cal.c
790
diw = (diw + 8 - (reform->date % 7)) % 7;
usr.bin/cal/cal.c
791
diy = day_in_year(1, reform->month, reform->year);
usr.bin/cal/cal.c
802
reform_day_array(reform->month + i, reform->year,
usr.bin/cal/cal.c
858
if (*date < reform->date ||
usr.bin/cal/cal.c
859
*date >= reform->date + reform->missing_days) {