From d1d70fd5d78af01040983831cbe9aa79f1d56425 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 23 Nov 2000 23:29:32 +0000 Subject: s/enum GInputCondition/int/ - enums aren't supposed to orred together i think.. at least MIPSpro gave warnings about it and it also feels wrong :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@865 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/common.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 762d3dec..460554bb 100644 --- a/src/common.h +++ b/src/common.h @@ -50,17 +50,14 @@ #define g_free_and_null(a) \ if (a) { g_free(a); (a) = NULL; } -typedef enum { - G_INPUT_READ = 1 << 0, - G_INPUT_WRITE = 1 << 1 -} GInputCondition; +#define G_INPUT_READ (1 << 0) +#define G_INPUT_WRITE (1 << 1) -typedef void (*GInputFunction) (void *data, int source, - GInputCondition condition); +typedef void (*GInputFunction) (void *data, int source, int condition); -int g_input_add(int source, GInputCondition condition, +int g_input_add(int source, int condition, GInputFunction function, void *data); -int g_input_add_full(int source, int priority, GInputCondition condition, +int g_input_add_full(int source, int priority, int condition, GInputFunction function, void *data); #define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1) -- cgit v1.2.3