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

Function keylist_func_has_key

src/cmd.c:2784–2799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2782}
2783
2784staticfn boolean
2785keylist_func_has_key(const struct ext_func_tab *extcmd,
2786 boolean *skip_keys_used) /* boolean keys_used[256] */
2787{
2788 int i;
2789 struct Cmd_bind *bind;
2790
2791 for (i = 0; i < 256; ++i) {
2792 if (skip_keys_used[i])
2793 continue;
2794
2795 if (((bind = cmdbind_get(i)) != 0) && (bind->cmd == extcmd))
2796 return TRUE;
2797 }
2798 return FALSE;
2799}
2800
2801staticfn int
2802keylist_putcmds(winid datawin, boolean docount,

Callers 2

keylist_putcmdsFunction · 0.85
dokeylistFunction · 0.85

Calls 1

cmdbind_getFunction · 0.85

Tested by

no test coverage detected