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

Function optfn_subkeyvalue

src/options.c:4110–4131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4108
4109#ifdef WIN32CON
4110staticfn int
4111optfn_subkeyvalue(
4112 int optidx UNUSED, int req, boolean negated UNUSED,
4113 char *opts, char *op UNUSED)
4114{
4115 if (req == do_init) {
4116 return optn_ok;
4117 }
4118 if (req == do_set) {
4119 if (op == empty_optstr)
4120 return optn_err;
4121#ifdef TTY_GRAPHICS
4122 map_subkeyvalue(op);
4123#endif
4124 return optn_ok;
4125 }
4126 if (req == get_val || req == get_cnf_val) {
4127 opts[0] = '\0';
4128 return optn_ok;
4129 }
4130 return optn_ok;
4131}
4132#endif /* WIN32CON */
4133
4134staticfn int

Callers

nothing calls this directly

Calls 1

map_subkeyvalueFunction · 0.85

Tested by

no test coverage detected