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

Function free_config_sections

src/cfgfiles.c:506–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506staticfn void
507free_config_sections(void)
508{
509 if (gc.config_section_chosen) {
510 free(gc.config_section_chosen);
511 gc.config_section_chosen = NULL;
512 }
513 if (gc.config_section_current) {
514 free(gc.config_section_current);
515 gc.config_section_current = NULL;
516 }
517}
518
519/* check for " [ anything-except-bracket-or-empty ] # arbitrary-comment"
520 with spaces optional; returns pointer to "anything-except..." (with

Callers 4

handle_config_sectionFunction · 0.85
read_config_fileFunction · 0.85
parse_conf_strFunction · 0.85
parse_conf_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected