| 476 | /* Delete message history at game end. */ |
| 477 | |
| 478 | void |
| 479 | curses_teardown_messages(void) |
| 480 | { |
| 481 | nhprev_mesg *current_mesg; |
| 482 | |
| 483 | while ((current_mesg = first_mesg) != 0) { |
| 484 | first_mesg = current_mesg->next_mesg; |
| 485 | free(current_mesg->str); |
| 486 | free(current_mesg); |
| 487 | } |
| 488 | last_mesg = (nhprev_mesg *) 0; |
| 489 | num_messages = 0; |
| 490 | } |
| 491 | |
| 492 | /* Display previous messages in a popup (via menu so can scroll backwards) */ |
| 493 |
no outgoing calls
no test coverage detected