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

Function optfn_objects

src/options.c:2647–2667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2645}
2646
2647staticfn int
2648optfn_objects(
2649 int optidx UNUSED, int req, boolean negated UNUSED,
2650 char *opts, char *op UNUSED)
2651{
2652 if (req == do_init) {
2653 return optn_ok;
2654 }
2655 if (req == do_set) {
2656 return optn_ok;
2657 }
2658 if (req == get_val) {
2659 Sprintf(opts, "%s", to_be_done);
2660 return optn_ok;
2661 }
2662 if (req == get_cnf_val) {
2663 opts[0] = '\0';
2664 return optn_ok;
2665 }
2666 return optn_ok;
2667}
2668
2669staticfn int
2670optfn_packorder(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected