MCPcopy Create free account
hub / github.com/ZDoom/Raze / ClearKey

Method ClearKey

source/common/utility/configfile.cpp:385–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383//====================================================================
384
385void FConfigFile::ClearKey(const char *key)
386{
387 if (CurrentSection->RootEntry == NULL)
388 {
389 return;
390 }
391 FConfigEntry **prober = &CurrentSection->RootEntry, *probe = *prober;
392
393 while (probe != NULL && stricmp(probe->Key, key) != 0)
394 {
395 prober = &probe->Next;
396 probe = *prober;
397 }
398 if (probe != NULL)
399 {
400 *prober = probe->Next;
401 if (CurrentSection->LastEntryPtr == &probe->Next)
402 {
403 CurrentSection->LastEntryPtr = prober;
404 }
405 delete[] probe->Value;
406 delete[] (char *)probe;
407 }
408}
409
410//====================================================================
411//

Callers 1

ArchiveBindingsMethod · 0.80

Calls 1

stricmpFunction · 0.85

Tested by

no test coverage detected