MCPcopy Create free account
hub / github.com/NetHack/NetHack / mac_end_menu

Function mac_end_menu

outdated/sys/mac/macwin.c:2023–2033  ·  view source on GitHub ↗

* End a menu in this window, window must a type NHW_MENU. * str is a list of cancel characters (values that may be input) * morestr is a prompt to display, rather than the default. * str and morestr might be ignored by some ports. */

Source from the content-addressed store, hash-verified

2021 * str and morestr might be ignored by some ports.
2022 */
2023void
2024mac_end_menu(winid win, const char *morestr)
2025{
2026 Str255 buf;
2027 NhWindow *aWin = &theWindows[win];
2028
2029 buf[0] = 0;
2030 if (morestr)
2031 C2P(morestr, buf);
2032 SetWTitle(aWin->its_window, buf);
2033}
2034
2035int
2036mac_select_menu(winid win, int how, menu_item **selected_list)

Callers

nothing calls this directly

Calls 1

C2PFunction · 0.85

Tested by

no test coverage detected