Cleaned up code.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-16 20:18:05 +00:00 committed by cras
commit c2397475c5
24 changed files with 489 additions and 363 deletions

View file

@ -44,18 +44,17 @@
#define g_free_and_null(a) \
if (a) { g_free(a); (a) = NULL; }
typedef enum
{
typedef enum {
G_INPUT_READ = 1 << 0,
G_INPUT_WRITE = 1 << 1,
G_INPUT_EXCEPTION = 1 << 2
} GInputCondition;
typedef void (*GInputFunction) (gpointer data, int source,
typedef void (*GInputFunction) (void *data, int source,
GInputCondition condition);
int g_input_add(int source, GInputCondition condition,
GInputFunction function, gpointer data);
GInputFunction function, void *data);
#define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1)