--- 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