Lines Matching refs:MAX_DAYS

44 #define MIN_HIGH (DAY_HIGH + 2 + HDR_HIGH + BTN_HIGH + (MAX_DAYS * MARGIN))
68 #define MAX_DAYS 7 macro
71 static char *cached_days[MAX_DAYS];
77 static bool shown[MAX_DAYS]; in nameOfDayOfWeek()
80 n += MAX_DAYS; in nameOfDayOfWeek()
82 n %= MAX_DAYS; in nameOfDayOfWeek()
85 const nl_item items[MAX_DAYS] = in nameOfDayOfWeek()
94 static const char *posix_days[MAX_DAYS] = in nameOfDayOfWeek()
250 return (6 + (y + (y / 4) - (y / 100) + (y / 400) + t[m - 1] + d)) % MAX_DAYS; in day_of_week()
274 week += (diy - 1) / MAX_DAYS; in iso_week()
300 new_years_eve_dow = (new_year_dow + 364 + isleap(year)) % MAX_DAYS; in iso_week()
301 if (365 + isleap(year) - diy < MAX_DAYS in iso_week()
317 for (day = 1; day <= dpm; day += MAX_DAYS) in getisoweeks()
333 cell = current->tm_mday - ((6 + current->tm_mday - current->tm_wday) % MAX_DAYS); in day_cell_number()
334 if ((current->tm_mday - 1) % MAX_DAYS != current->tm_wday) in day_cell_number()
348 result = two_d ? -MAX_DAYS : -1; in next_or_previous()
354 result = two_d ? MAX_DAYS : 1; in next_or_previous()
392 for (x = 0; x < MAX_DAYS; x++) { in draw_day()
402 data->week_start) % MAX_DAYS) - MAX_DAYS; in draw_day()
403 if (mday <= -MAX_DAYS) in draw_day()
404 mday += MAX_DAYS; in draw_day()
410 week = (current->tm_yday + 6 + mday - current->tm_mday) / MAX_DAYS; in draw_day()
420 for (x = 0; x < MAX_DAYS; x++) { in draw_day()
608 for (day = 0; day < MAX_DAYS; ++day) { in WeekStart()
618 result = (int) (check % MAX_DAYS); in WeekStart()
637 for (n = 0; n < MAX_DAYS; ++n) { in CleanupResult()