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

Function DumpHash

source/common/console/c_dispatch.cpp:667–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667static int DumpHash (FConsoleCommand **table, bool aliases, const char *pattern=NULL)
668{
669 int bucket, count;
670 FConsoleCommand *cmd;
671
672 for (bucket = count = 0; bucket < FConsoleCommand::HASH_SIZE; bucket++)
673 {
674 cmd = table[bucket];
675 while (cmd)
676 {
677 if (CheckWildcards (pattern, cmd->m_Name.GetChars()))
678 {
679 if (cmd->IsAlias())
680 {
681 if (aliases)
682 {
683 ++count;
684 static_cast<FConsoleAlias *>(cmd)->PrintAlias ();
685 }
686 }
687 else if (!aliases)
688 {
689 ++count;
690 cmd->PrintCommand ();
691 }
692 }
693 cmd = cmd->m_Next;
694 }
695 }
696 return count;
697}
698
699void FConsoleAlias::PrintAlias ()
700{

Callers 1

CCMDFunction · 0.85

Calls 5

CheckWildcardsFunction · 0.85
IsAliasMethod · 0.80
PrintAliasMethod · 0.80
PrintCommandMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected