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

Function optfn_o_bind_keys

src/options.c:8323–8343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8321}
8322
8323staticfn int
8324optfn_o_bind_keys(
8325 int optidx UNUSED, int req, boolean negated UNUSED,
8326 char *opts, char *op UNUSED)
8327{
8328 if (req == do_init) {
8329 return optn_ok;
8330 }
8331 if (req == do_set) {
8332 }
8333 if (req == get_val || req == get_cnf_val) {
8334 if (!opts)
8335 return optn_err;
8336 Sprintf(opts, n_currently_set, count_bind_keys());
8337 return optn_ok;
8338 }
8339 if (req == do_handler) {
8340 handler_rebind_keys();
8341 }
8342 return optn_ok;
8343}
8344
8345staticfn int
8346optfn_o_autocomplete(

Callers

nothing calls this directly

Calls 2

count_bind_keysFunction · 0.85
handler_rebind_keysFunction · 0.85

Tested by

no test coverage detected