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

Function optfn_o_autocomplete

src/options.c:8345–8365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8343}
8344
8345staticfn int
8346optfn_o_autocomplete(
8347 int optidx UNUSED, int req, boolean negated UNUSED,
8348 char *opts, char *op UNUSED)
8349{
8350 if (req == do_init) {
8351 return optn_ok;
8352 }
8353 if (req == do_set) {
8354 }
8355 if (req == get_val || req == get_cnf_val) {
8356 if (!opts)
8357 return optn_err;
8358 Sprintf(opts, n_currently_set, count_autocompletions());
8359 return optn_ok;
8360 }
8361 if (req == do_handler) {
8362 handler_change_autocompletions();
8363 }
8364 return optn_ok;
8365}
8366
8367staticfn int
8368optfn_o_menu_colors(int optidx UNUSED, int req, boolean negated UNUSED,

Callers

nothing calls this directly

Calls 2

count_autocompletionsFunction · 0.85

Tested by

no test coverage detected