diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-19 23:47:10 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-19 23:47:10 +0100 |
commit | 62fbfdb5dab0e4c16d16b88fd1ed41819345f2a3 (patch) | |
tree | 4f40fab20b356f2bd90f3f9ec32b33bff3047eb7 /FICS/command.h | |
parent | 0b8cc8e90ebe6a69da7a02dd437e08ffd4884443 (diff) |
Added alignment and changed comment layout
Diffstat (limited to 'FICS/command.h')
-rw-r--r-- | FICS/command.h | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/FICS/command.h b/FICS/command.h index 6373f42..8347ee9 100644 --- a/FICS/command.h +++ b/FICS/command.h @@ -28,39 +28,47 @@ #include "variable.h" #include "stdinclude.h" -/* Maximum length of a login name */ +/* + * Maximum length of a login name + */ #define MAX_LOGIN_NAME 20 -/* Maximum number of parameters per command */ +/* + * Maximum number of parameters per command + */ #define MAXNUMPARAMS 10 -/* Maximum string length of a single command word */ +/* + * Maximum string length of a single command word + */ #define MAX_COM_LENGTH 50 -/* Maximum string length of the whole command line */ +/* + * Maximum string length of the whole command line + */ #define MAX_STRING_LENGTH 1024 -#define COM_OK 0 -#define COM_FAILED 1 -#define COM_ISMOVE 2 -#define COM_AMBIGUOUS 3 -#define COM_BADPARAMETERS 4 -#define COM_BADCOMMAND 5 -#define COM_LOGOUT 6 -#define COM_FLUSHINPUT 7 -#define COM_RIGHTS 8 -#define COM_OK_NOPROMPT 9 +#define COM_OK 0 +#define COM_FAILED 1 +#define COM_ISMOVE 2 +#define COM_AMBIGUOUS 3 +#define COM_BADPARAMETERS 4 +#define COM_BADCOMMAND 5 +#define COM_LOGOUT 6 +#define COM_FLUSHINPUT 7 +#define COM_RIGHTS 8 +#define COM_OK_NOPROMPT 9 #define ADMIN_USER 0 #define ADMIN_ADMIN 10 #define ADMIN_MASTER 20 -#define ADMIN_DEMIGOD 60 +#define ADMIN_DEMIGOD 60 #define ADMIN_GOD 100 -#define TYPE_NULL 0 -#define TYPE_WORD 1 -#define TYPE_STRING 2 -#define TYPE_INT 3 +#define TYPE_NULL 0 +#define TYPE_WORD 1 +#define TYPE_STRING 2 +#define TYPE_INT 3 typedef struct u_parameter { int type; |