Lines Matching refs:rulep
1005 getrule(const char *strp, register struct rule *const rulep) in getrule() argument
1011 rulep->r_type = JULIAN_DAY; in getrule()
1013 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in getrule()
1018 rulep->r_type = MONTH_NTH_DAY_OF_WEEK; in getrule()
1020 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in getrule()
1025 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
1030 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule()
1035 rulep->r_type = DAY_OF_YEAR; in getrule()
1036 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); in getrule()
1045 strp = getoffset(strp, &rulep->r_time); in getrule()
1046 } else rulep->r_time = 2 * SECSPERHOUR; /* default = 2:00:00 */ in getrule()
1056 transtime(const int year, register const struct rule *const rulep, in transtime() argument
1065 switch (rulep->r_type) { in transtime()
1075 value = (rulep->r_day - 1) * SECSPERDAY; in transtime()
1076 if (leapyear && rulep->r_day >= 60) in transtime()
1086 value = rulep->r_day * SECSPERDAY; in transtime()
1098 m1 = (rulep->r_mon + 9) % 12 + 1; in transtime()
1099 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year; in transtime()
1112 d = rulep->r_day - dow; in transtime()
1115 for (i = 1; i < rulep->r_week; ++i) { in transtime()
1117 mon_lengths[leapyear][rulep->r_mon - 1]) in transtime()
1126 for (i = 0; i < rulep->r_mon - 1; ++i) in transtime()
1139 return value + rulep->r_time + offset; in transtime()