irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit d7f1c72d581d9b730d82dc8e31b94e0d65f91b28
parent c74a79a8092c1bb4ab3e7b7cf7708da50474440c
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 16 Jun 2012 16:28:14 +0200

use enum

Diffstat:
irctk.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/irctk.c b/irctk.c @@ -33,11 +33,7 @@ #define E_THREAD 3 #define E_BADNAME 4 -// TODO use an enum -#define DEFAULT_FIRST 0 -#define DEFAULT_LAST_IN 1 -#define DEFAULT_LAST_OUT 2 -#define DEFAULT_ALL 3 +enum default_destinations {DEFAULT_FIRST, DEFAULT_LAST_IN, DEFAULT_LAST_OUT, DEFAULT_ALL}; #define NOTHING 0 #define COMMAND 1 @@ -170,7 +166,7 @@ struct arguments int interval; - int default_destination; + enum default_destinations default_destination; int show_inferred; int destination_prefix;