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

Function invert_match

win/X11/winmenu.c:562–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562static void
563invert_match(struct xwindow *wp,
564 char *match) /* wildcard pattern for pmatch() */
565{
566 x11_menu_item *curr;
567 int count;
568
569 reset_menu_count(wp->menu_information);
570 for (count = 0, curr = wp->menu_information->curr_menu.base; curr;
571 curr = curr->next, count++)
572 if (curr->identifier.a_void != 0) {
573 if (pmatchi(match, curr->str)) {
574 invert_line(wp, curr, count, -1L);
575 }
576 curr->preselected = FALSE;
577 }
578
579}
580
581static void
582select_match(struct xwindow *wp,

Callers 1

search_menuFunction · 0.85

Calls 3

pmatchiFunction · 0.85
invert_lineFunction · 0.85
reset_menu_countFunction · 0.50

Tested by

no test coverage detected