Lines Matching refs:pm
89 struct cal_month *pm, *pmp; in createdate() local
126 pm = py->months; in createdate()
127 while (pm != NULL) { in createdate()
128 if (pm->month == m) in createdate()
130 pmp = pm; in createdate()
131 pm = pm->nextmonth; in createdate()
134 if (pm == NULL) { in createdate()
135 pm = (struct cal_month *)calloc(1, sizeof(struct cal_month)); in createdate()
136 pm->year = py; in createdate()
137 pm->month = m; in createdate()
139 pm->firstdayjulian = cumday[m] + 2; in createdate()
140 pm->firstdayofweek = in createdate()
141 (py->firstdayofweek + pm->firstdayjulian -1) % 7; in createdate()
143 pmp->nextmonth = pm; in createdate()
146 py->months = pm; in createdate()
149 pd = pm->days; in createdate()
157 pd->month = pm; in createdate()
160 pd->julianday = pm->firstdayjulian + d - 1; in createdate()
161 pd->dayofweek = (pm->firstdayofweek + d - 1) % 7; in createdate()
166 pm->days = pd; in createdate()