switched commandfunction to vector<string>

This commit is contained in:
Nicholas O'Connor committed 2017-03-23 15:13:52 -07:00
1 parent ad670b5033
commit b4f5740006
8 files changed
+17 -8

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
using namespace std;
namespace cellar {
namespace commands {
typedef void (*CommandFunction)(int, char*[]);
typedef void (*CommandFunction)(int, vector<string>);
extern map<string, CommandFunction> command_map;
void add_command(string, CommandFunction);
+1 -1
View File
@@ -11,7 +11,7 @@ namespace cellar {
with open("src/bottles/commands.txt") as commandsfile:
for line in commandsfile:
item = line.strip().split(" ")
cog.outl("extern void {0} (int, char**);".format(item[1]))
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
]]]*/
//[[[end]]]
}