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

Function oldfunctionality

util/makedefs.c:387–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385
386#if !defined(OLD_MAKEDEFS_OPTIONS)
387static const char *
388oldfunctionality(char sought)
389{
390 static struct ofn_s {
391 char lcoflet;
392 char ucoflet;
393 const char *ofnam;
394 } ofn[] = {
395 { 'e', 'E', DGN_O_FILE },
396 { 'o', 'O', ONAME_FILE },
397 { 'p', 'P', MONST_FILE },
398 { 'q', 'Q', QTXT_O_FILE },
399 { 'v', 'V', DATE_FILE " & " OPTIONS_FILE },
400 };
401 int i;
402
403 for (i = 0; i < SIZE(ofn); ++i) {
404 if (sought == ofn[i].lcoflet || sought == ofn[i].ucoflet)
405 return ofn[i].ofnam;
406 }
407 return "unknown";
408}
409#endif /* !OLD_MAKEDEFS_OPTIONS */
410
411static void

Callers 1

do_makedefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected