Lines Matching refs:current_set
106 struct cat_set *current_set; /* the pointer to the current set */ variable
189 if (current_set && current_set->set_no == no) {
196 if (current_set == NULL) {
198 current_set = first_set = new_set(no);
201 current_set = first_set;
202 if (current_set->set_no == no)
206 if (current_set->set_no > no) {
209 current_set = new_set(no);
210 current_set->next = first_set;
211 first_set->prev = current_set;
212 first_set = current_set;
215 current_set = first_set;
216 if (current_set->set_no == no)
221 while (current_set->next && current_set->next->set_no < no)
222 current_set = current_set->next;
224 if (current_set->next && current_set->next->set_no == no) {
226 current_set = current_set->next;
231 prev = current_set;
232 next = current_set->next;
233 current_set = new_set(no);
234 current_set->prev = prev;
235 current_set->next = next;
237 prev->next = current_set;
239 first_set = current_set;
241 next->prev = current_set;
257 if (setp == current_set) {
258 current_set = NULL;
312 if (current_set == NULL)
314 current_msg = current_set->first_msg;
317 current_set->first_msg = current_msg;
322 current_msg = current_set->first_msg;
325 current_msg->next = current_set->first_msg;
326 current_set->first_msg->prev = current_msg;
327 current_set->first_msg = current_msg;
332 current_msg->next = current_set->first_msg->next;
333 if (current_set->first_msg->next)
334 current_set->first_msg->next->prev =
336 FREE(current_set->first_msg);
337 current_set->first_msg = current_msg;
364 current_set->first_msg = current_msg;
373 struct cat_set *p = current_set;
377 if (current_set == NULL)
383 current_set = p;
384 current_msg = current_set->first_msg;
389 current_msg = current_set->first_msg;
402 current_set->first_msg = next;
512 current_msg = current_set->first_msg;
968 current_set = NULL;