MCPcopy Index your code
hub / github.com/NetHack/NetHack / select_none

Function select_none

win/X11/winmenu.c:524–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524static void
525select_none(struct xwindow *wp)
526{
527 x11_menu_item *curr;
528 int count;
529
530 reset_menu_count(wp->menu_information);
531 for (count = 0, curr = wp->menu_information->curr_menu.base; curr;
532 curr = curr->next, count++) {
533 /* skip 'curr' if not selectable (header or such) or already not
534 selected (no need to unset) or rejected due to skip-invert test */
535 if (!curr->identifier.a_void
536 || !curr->selected
537 || !menuitem_invert_test(2, curr->itemflags, TRUE))
538 continue;
539 invert_line(wp, curr, count, -1L);
540 }
541
542}
543
544static void
545invert_all(struct xwindow *wp)

Callers 3

menu_keyFunction · 0.85
menu_cancelFunction · 0.85
menu_noneFunction · 0.85

Calls 3

menuitem_invert_testFunction · 0.85
invert_lineFunction · 0.85
reset_menu_countFunction · 0.50

Tested by

no test coverage detected