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

Function cmdbind_get

src/cmd.c:2109–2123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2107
2108/* get the command bound to a key */
2109staticfn struct Cmd_bind *
2110cmdbind_get(uchar key)
2111{
2112 struct Cmd_bind *bind = gc.Cmd.cmdbinds;
2113
2114 if (!key)
2115 return NULL;
2116
2117 while (bind) {
2118 if (bind->key == key)
2119 return bind;
2120 bind = bind->next;
2121 }
2122 return bind;
2123}
2124
2125staticfn void
2126cmdbind_add(uchar key, const struct ext_func_tab *extcmd, boolean user)

Callers 14

cmdbind_addFunction · 0.85
cmdbind_swapkeysFunction · 0.85
handler_rebind_keys_addFunction · 0.85
key2extcmddescFunction · 0.85
bind_keyFunction · 0.85
keylist_func_has_keyFunction · 0.85
keylist_putcmdsFunction · 0.85
cmd_from_funcFunction · 0.85
reset_commandsFunction · 0.85
update_rest_on_spaceFunction · 0.85
rhackFunction · 0.85
movecmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected