switched commandfunction to vector<string>
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
@@ -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]]]
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user