Lines Matching refs:current_msg

107 struct cat_msg	*current_msg;	/* the pointer to the first message */  variable
194 current_msg = NULL;
259 current_msg = NULL;
311 if (current_msg == NULL) {
314 current_msg = current_set->first_msg;
315 if (current_msg == NULL) {
316 current_msg = new_msg(no, len, text);
317 current_set->first_msg = current_msg;
321 if (current_msg->msg_no >= no) {
322 current_msg = current_set->first_msg;
323 if (current_msg->msg_no > no) {
324 current_msg = new_msg(no, len, text);
325 current_msg->next = current_set->first_msg;
326 current_set->first_msg->prev = current_msg;
327 current_set->first_msg = current_msg;
330 if (current_msg->msg_no == no) {
331 current_msg = new_msg(no, len, text);
332 current_msg->next = current_set->first_msg->next;
335 current_msg;
337 current_set->first_msg = current_msg;
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;
350 prev = current_msg->prev;
351 next = current_msg->next;
352 FREE(current_msg);
354 prev = current_msg;
355 next = current_msg->next;
358 current_msg = new_msg(no, len, text);
359 current_msg->prev = prev;
360 current_msg->next = next;
362 prev->next = current_msg;
364 current_set->first_msg = current_msg;
366 next->prev = current_msg;
376 if (current_msg == NULL) {
384 current_msg = current_set->first_msg;
385 if (current_msg == NULL)
388 if (current_msg->msg_no > no)
389 current_msg = current_set->first_msg;
391 while (current_msg && current_msg->msg_no != no)
392 current_msg = current_msg->next;
394 if (current_msg && current_msg->msg_no == no) {
395 prev = current_msg->prev;
396 next = current_msg->next;
397 FREE(current_msg);
399 current_msg = prev;
403 current_msg = next;
512 current_msg = current_set->first_msg;
969 current_msg = NULL;