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

Function cnf_line_WIZARDS

src/cfgfiles.c:794–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792#ifdef SYSCF
793
794staticfn boolean
795cnf_line_WIZARDS(char *bufp)
796{
797 if (sysopt.wizards)
798 free((genericptr_t) sysopt.wizards);
799 sysopt.wizards = dupstr(bufp);
800 if (strlen(sysopt.wizards) && strcmp(sysopt.wizards, "*")) {
801 /* pre-format WIZARDS list now; it's displayed during a panic
802 and since that panic might be due to running out of memory,
803 we don't want to risk attempting to allocate any memory then */
804 if (sysopt.fmtd_wizard_list)
805 free((genericptr_t) sysopt.fmtd_wizard_list);
806 sysopt.fmtd_wizard_list = build_english_list(sysopt.wizards);
807 }
808 return TRUE;
809}
810
811staticfn boolean
812cnf_line_SHELLERS(char *bufp)

Callers

nothing calls this directly

Calls 2

dupstrFunction · 0.85
build_english_listFunction · 0.85

Tested by

no test coverage detected