commands.h

changeset 10
2c0f76090372
parent 8
c8bfa7e6ae1b
child 21
ae602e667879
--- a/commands.h	Sat Jul 14 04:17:06 2012 +0300
+++ b/commands.h	Sat Jul 14 15:44:38 2012 +0300
@@ -41,6 +41,9 @@
 #ifndef __COMMANDS_H__
 #define __COMMANDS_H__
 
+#define MAX_MAXARGS 8
+#define MAX_ARGNAMELEN 16
+
 #include "str.h"
 #include "botcommands.h"
 
@@ -52,11 +55,16 @@
 	int number;
 	int numargs;
 	int maxargs;
-	RETURNVAL_e returnvalue;
+	int returnvalue;
+	int argtypes[MAX_MAXARGS];
+	char argnames[MAX_MAXARGS][MAX_ARGNAMELEN];
+	int defvals[MAX_MAXARGS];
 	CommandDef* next;
 };
 
 void ReadCommands ();
 CommandDef* GetCommandByName (str a);
+int GetReturnTypeByString (str token);
+str GetReturnTypeName (int r);
 
 #endif // __COMMANDS_H__
\ No newline at end of file

mercurial