From 553cda6422e4e35d64fd3c2e55452fda0d37e215 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 28 Mar 2016 22:35:24 -0400 Subject: [PATCH] init: Propagated rules to CmdContinue --- src/commands/CmdContinue.cpp | 1 + src/commands/commands.h | 2 +- src/init.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdContinue.cpp b/src/commands/CmdContinue.cpp index b9fd41ba..0e3919fd 100644 --- a/src/commands/CmdContinue.cpp +++ b/src/commands/CmdContinue.cpp @@ -30,6 +30,7 @@ //////////////////////////////////////////////////////////////////////////////// int CmdContinue ( + Rules& rules, Database& database, Log& log) { diff --git a/src/commands/commands.h b/src/commands/commands.h index 929358f8..0e80ccaa 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -36,7 +36,7 @@ int CmdClear ( ); int CmdConfig ( ); -int CmdContinue ( Database&, Log&); +int CmdContinue ( Rules&, Database&, Log&); int CmdDefault ( Rules&, Database& ); int CmdDefine (const std::vector &, Rules&, Database&, Log&); int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&); diff --git a/src/init.cpp b/src/init.cpp index 28cad991..105c8a1d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -192,7 +192,7 @@ int dispatchCommand ( // command to fn mapping. if (matches[0] == allCommands[0]) status = CmdClear ( ); else if (matches[0] == allCommands[1]) status = CmdConfig ( ); - else if (matches[0] == allCommands[2]) status = CmdContinue ( database, log); + else if (matches[0] == allCommands[2]) status = CmdContinue ( rules, database, log); else if (matches[0] == allCommands[3]) status = CmdDefine (args, rules, database, log); else if (matches[0] == allCommands[4]) status = CmdDiagnostics ( rules, database, extensions, log); else if (matches[0] == allCommands[5]) status = CmdExport ( database );