| 899 | /* return a pointer to the menu associated with the given NetHack winid */ |
| 900 | |
| 901 | static nhmenu * |
| 902 | get_menu(winid wid) |
| 903 | { |
| 904 | nhmenu *menuptr = nhmenus; |
| 905 | |
| 906 | while (menuptr != NULL) { |
| 907 | if (menuptr->wid == wid) { |
| 908 | return menuptr; |
| 909 | } |
| 910 | menuptr = menuptr->next_menu; |
| 911 | } |
| 912 | |
| 913 | return NULL; /* Not found */ |
| 914 | } |
| 915 | |
| 916 | static char |
| 917 | menu_get_accel(boolean first) |
no outgoing calls
no test coverage detected