Lines Matching refs:next
78 struct cat_set *next; member
86 struct cat_msg *next; member
176 p->next = NULL;
187 struct cat_set *prev, *next; local
210 current_set->next = first_set;
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;
232 next = current_set->next;
235 current_set->next = next;
237 prev->next = current_set;
240 if (next)
241 next->prev = current_set;
248 struct cat_set *prev, *next, *setp; local
251 for (setp = first_set; setp && setp->set_no < no; setp = setp->next)
264 q = p->next;
271 next = setp->next;
274 prev->next = next;
276 first_set = next;
277 if (next)
278 next->prev = prev;
294 p->next = NULL;
309 struct cat_msg *prev, *next; local
325 current_msg->next = current_set->first_msg;
332 current_msg->next = current_set->first_msg->next;
333 if (current_set->first_msg->next)
334 current_set->first_msg->next->prev =
341 while (current_msg->next && current_msg->next->msg_no < no)
342 current_msg = current_msg->next;
348 if (current_msg->next && current_msg->next->msg_no == no) {
349 current_msg = current_msg->next;
351 next = current_msg->next;
355 next = current_msg->next;
360 current_msg->next = next;
362 prev->next = current_msg;
365 if (next)
366 next->prev = current_msg;
374 struct cat_msg *prev, *next; local
379 p = p->next)
392 current_msg = current_msg->next;
396 next = current_msg->next;
400 prev->next = next;
402 current_set->first_msg = next;
403 current_msg = next;
405 if (next)
406 next->prev = prev;
1051 for (setp = first_set; setp; setp = setp->next) {
1053 for (msgp = setp->first_msg; msgp; msgp = msgp->next) {
1083 for (setp = first_set; setp; ++set, setp = setp->next) {
1087 for (msgp = setp->first_msg; msgp; ++msg, msgp = msgp->next) {