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

Function complain_about_duplicate

src/options.c:6789–6809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6787}
6788
6789staticfn void
6790complain_about_duplicate(int optidx)
6791{
6792 char buf[BUFSZ];
6793
6794#ifdef MACOS9
6795 /* the Mac has trouble dealing with the output of messages while
6796 * processing the config file. That should get fixed one day.
6797 * For now just return.
6798 */
6799#else /* !MACOS9 */
6800 buf[0] = '\0';
6801 if (using_alias)
6802 Sprintf(buf, " (via alias: %s)", allopt[optidx].alias);
6803 config_error_add("%s option specified multiple times: %s%s",
6804 (allopt[optidx].opttyp == CompOpt) ? "compound"
6805 : "boolean",
6806 allopt[optidx].name, buf);
6807#endif /* ?MACOS9 */
6808 return;
6809}
6810
6811staticfn void
6812rejectoption(const char *optname)

Callers 4

parseoptionsFunction · 0.85
optfn_paletteFunction · 0.85
pfxfn_fontFunction · 0.85
parse_role_optFunction · 0.85

Calls 1

config_error_addFunction · 0.85

Tested by

no test coverage detected