src/commands.h

changeset 72
03e4d9db3fd9
parent 71
11f23fabf8a6
child 73
1ee9b312dc18
--- a/src/commands.h	Fri Jan 10 16:11:49 2014 +0200
+++ b/src/commands.h	Fri Jan 10 21:58:42 2014 +0200
@@ -38,21 +38,21 @@
  *	POSSIBILITY OF SUCH DAMAGE.
 */
 
-#ifndef __COMMANDS_H__
-#define __COMMANDS_H__
+#ifndef BOTC_COMMANDS_H
+#define BOTC_COMMANDS_H
 
 #define MAX_MAXARGS 8
 #define MAX_ARGNAMELEN 16
 
-#include "common.h"
+#include "main.h"
 #include "str.h"
 #include "botcommands.h"
 
 #define ITERATE_COMMANDS(comm) \
-	for (comm = g_CommDef; comm->next != NULL; comm = comm->next)
+	for (comm = g_CommDef; comm->next != null; comm = comm->next)
 
 struct CommandDef {
-	str name;
+	string name;
 	int number;
 	int numargs;
 	int maxargs;
@@ -64,12 +64,9 @@
 };
 
 void ReadCommands ();
-CommandDef* FindCommand (str a);
-str GetCommandPrototype (CommandDef* comm);
+CommandDef* FindCommand (string a);
+string GetCommandPrototype (CommandDef* comm);
 
-#ifndef __COMMANDS_CXX__
-extern
-#endif
-CommandDef* g_CommDef;
+extern CommandDef* g_CommDef;
 
-#endif // __COMMANDS_H__
\ No newline at end of file
+#endif // BOTC_COMMANDS_H
\ No newline at end of file

mercurial