MCPcopy Index your code
hub / github.com/NetHack/NetHack / config_error_init

Function config_error_init

src/cfgfiles.c:1469–1490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467static struct _config_error_errmsg *config_error_msg = 0;
1468
1469void
1470config_error_init(boolean from_file, const char *sourcename, boolean secure)
1471{
1472 struct _config_error_frame *tmp = (struct _config_error_frame *)
1473 alloc(sizeof *tmp);
1474
1475 tmp->line_num = 0;
1476 tmp->num_errors = 0;
1477 tmp->origline_shown = FALSE;
1478 tmp->fromfile = from_file;
1479 tmp->secure = secure;
1480 tmp->origline[0] = '\0';
1481 if (sourcename && sourcename[0]) {
1482 (void) strncpy(tmp->source, sourcename, sizeof (tmp->source) - 1);
1483 tmp->source[sizeof (tmp->source) - 1] = '\0';
1484 } else
1485 tmp->source[0] = '\0';
1486
1487 tmp->next = config_error_data;
1488 config_error_data = tmp;
1489 program_state.config_error_ready = TRUE;
1490}
1491
1492staticfn boolean
1493config_error_nextline(const char *line)

Callers 12

process_optionsFunction · 0.85
process_optionsFunction · 0.85
early_optionsFunction · 0.85
test_portable_configFunction · 0.85
initoptionsFunction · 0.85
initoptions_initFunction · 0.85
read_wizkitFunction · 0.85
read_sym_fileFunction · 0.85
early_optionsFunction · 0.85
parse_conf_strFunction · 0.85
rcfileFunction · 0.85
read_sysconfFunction · 0.85

Calls 1

allocFunction · 0.70

Tested by 1

test_portable_configFunction · 0.68