diff --git a/src/commands/CmdDefine.cpp b/src/commands/CmdDefine.cpp index b45878b5..10fb3825 100644 --- a/src/commands/CmdDefine.cpp +++ b/src/commands/CmdDefine.cpp @@ -25,11 +25,15 @@ //////////////////////////////////////////////////////////////////////////////// #include -#include +#include #include //////////////////////////////////////////////////////////////////////////////// -int CmdDefine (Rules& rules) +int CmdDefine ( + const std::vector & args, + Rules& rules, + Database& database, + Log& log) { std::cout << "[define: rule tweaking]\n"; return 0; diff --git a/src/commands/commands.h b/src/commands/commands.h index 92bff1d3..d55df802 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -38,7 +38,7 @@ int CmdClear ( int CmdConfig ( ); int CmdContinue ( Database&, Log&); int CmdDefault ( Rules&, Database& ); -int CmdDefine ( Rules& ); +int CmdDefine (const std::vector &, Rules&, Database&, Log&); int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&); int CmdExport ( Database& ); int CmdExtensions ( Rules&, Extensions& ); diff --git a/src/init.cpp b/src/init.cpp index c84c7fa0..155cfe91 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -193,7 +193,7 @@ int dispatchCommand ( 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[3]) status = CmdDefine ( rules ); + 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 ); else if (matches[0] == allCommands[6]) status = CmdExtensions ( rules, extensions );