Lines Matching refs:rulep
1317 rule_t *rulep;
1332 rulep = pdaylightp->rules[idx];
1335 switch (rulep->r_type) {
1342 for (i = 0; i < rulep->r_mon - 1; ++i)
1350 m1 = (rulep->r_mon + 9) % 12 + 1;
1351 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year;
1371 d = rulep->r_day - dow;
1374 for (i = 1; i < rulep->r_week; ++i) {
1376 __mon_lengths[leapyear][rulep->r_mon - 1])
1392 value = *janfirst + (rulep->r_day - 1) * SECSPERDAY;
1393 if (leapyear && rulep->r_day >= 60)
1401 value = *janfirst + rulep->r_day * SECSPERDAY;
1404 pdaylightp->rtime[idx] = value + rulep->r_time + offset;
2253 getrule(const char *strp, rule_t *rulep, int compat_flag)
2259 rulep->r_type = MON_WEEK_DOW;
2261 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
2266 strp = getnum(strp, &rulep->r_week, 1, 5);
2271 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
2276 rulep->r_type = JULIAN_DAY;
2278 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
2284 rulep->r_type = DAY_OF_YEAR;
2287 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
2290 strp = getnum(strp, &rulep->r_day, 1, DAYSPERLYEAR);
2291 rulep->r_day--;
2303 strp = getsecs(strp, &rulep->r_time);
2305 rulep->r_time = 2 * SECSPERHOUR; /* default = 2:00:00 */