1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 15:33:25 +01:00

replace defines with enum

This commit is contained in:
Jfreegman 2013-11-10 01:20:52 -05:00
parent 8643d14777
commit 16c11b33f3

View File

@ -3,8 +3,11 @@
*/
#define MAX_NUM_ARGS 4 /* Includes command */
#define GLOBAL_COMMAND_MODE 0
#define CHAT_COMMAND_MODE 1
#define GROUPCHAT_COMMAND_MODE 2
enum {
GLOBAL_COMMAND_MODE,
CHAT_COMMAND_MODE,
GROUPCHAT_COMMAND_MODE,
};
void execute(WINDOW *window, ToxWindow *prompt, Tox *m, char *cmd, int mode);