--- deliantra/server/include/commands.h 2006/02/03 07:12:47 1.1 +++ deliantra/server/include/commands.h 2007/01/06 14:42:30 1.6 @@ -1,11 +1,7 @@ /* - * static char *rcsid_commands_h = - * "$Id$"; - */ - -/* CrossFire, A Multiplayer game for X-windows + Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team Copyright (C) 1994 Mark Wedel Copyright (C) 1992 Frank Tore Johansen @@ -34,13 +30,13 @@ */ -/* The initialized arrays were removed from this file and are now - * in commands.c. Initializing the arrays in any header file +/* The initialised arrays were removed from this file and are now + * in commands.c. initialising the arrays in any header file * is stupid, as it means that header file can only be included * in one source file (so what is the point of putting them in a header * file then?). Header files should be used like this one - to declare * the structures externally - they actual structures should resided/ - * be initialized in one of the source files. + * be initialised in one of the source files. */ #ifndef COMMANDS_H @@ -48,18 +44,18 @@ typedef int (*CommFunc)(object *op, char *params); -typedef struct { /* global list's structure */ +struct CommArray_s { /* global list's structure */ const char *name; CommFunc func; float time; /* How long it takes to execute this command */ -} CommArray_s; +}; extern CommArray_s Commands[],NewServerCommands [],SocketCommands[], - WizCommands [], CommunicationCommands[]; + WizCommands [], CommunicationCommands[]; extern const int CommandsSize,NewServerCommandSize, - SocketCommandsSize, WizCommandsSize, CommunicationCommandSize; + SocketCommandsSize, WizCommandsSize, CommunicationCommandSize; #define EMOTE_NOD 1 #define EMOTE_DANCE 2