init: Propagated datatabase to CmdDiagnostics

This commit is contained in:
Paul Beckingham 2016-03-19 09:16:34 -04:00
parent d5b12e8e27
commit 854213c8b5
3 changed files with 4 additions and 3 deletions

View file

@ -36,7 +36,7 @@
#endif
////////////////////////////////////////////////////////////////////////////////
int CmdDiagnostics (Log& log)
int CmdDiagnostics (Database& database, Log& log)
{
std::stringstream out;
out << "\n"

View file

@ -28,6 +28,7 @@
#define INCLUDED_COMMANDS
#include <Rules.h>
#include <Database.h>
#include <Log.h>
int CmdClear ();
@ -35,7 +36,7 @@ int CmdConfig ();
int CmdContinue ();
int CmdDefault ();
int CmdDefine (Rules&);
int CmdDiagnostics (Log&);
int CmdDiagnostics (Database&, Log&);
int CmdExport ();
int CmdExtension ();
int CmdGaps ();

View file

@ -197,7 +197,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[2], args[1], 2)) status = CmdConfig ();
else if (closeEnough (allCommands[3], args[1], 2)) status = CmdContinue ();
else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDefine (rules);
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdDiagnostics (log);
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdDiagnostics (database, log);
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExport ();
else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ();
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdImport ();