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
This commit is contained in:
Timo Sirainen 2000-11-23 23:29:32 +00:00 committed by cras
commit d1d70fd5d7
7 changed files with 14 additions and 19 deletions

View file

@ -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)