1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

more typedef struct separations.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2805 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-17 21:01:06 +00:00 committed by cras
parent 7b2f9bc50a
commit afed99da62
3 changed files with 15 additions and 8 deletions

View File

@ -5,7 +5,9 @@
# include <regex.h> # include <regex.h>
#endif #endif
typedef struct { typedef struct _IGNORE_REC IGNORE_REC;
struct _IGNORE_REC {
int level; /* ignore these levels */ int level; /* ignore these levels */
char *mask; /* nick mask */ char *mask; /* nick mask */
char *servertag; /* this is for autoignoring */ char *servertag; /* this is for autoignoring */
@ -22,7 +24,7 @@ typedef struct {
unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */ unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */
regex_t preg; regex_t preg;
#endif #endif
} IGNORE_REC; };
extern GSList *ignores; extern GSList *ignores;

View File

@ -10,13 +10,16 @@ enum {
typedef char *(*COLORIZE_FUNC)(const char *str); typedef char *(*COLORIZE_FUNC)(const char *str);
typedef struct { typedef struct _LOG_REC LOG_REC;
typedef struct _LOG_ITEM_REC LOG_ITEM_REC;
struct _LOG_ITEM_REC {
int type; int type;
char *name; char *name;
char *servertag; char *servertag;
} LOG_ITEM_REC; };
typedef struct { struct _LOG_REC {
char *fname; /* file name, in strftime() format */ char *fname; /* file name, in strftime() format */
char *real_fname; /* the current expanded file name */ char *real_fname; /* the current expanded file name */
int handle; /* file handle */ int handle; /* file handle */
@ -31,7 +34,7 @@ typedef struct {
unsigned int autoopen:1; /* automatically start logging at startup */ unsigned int autoopen:1; /* automatically start logging at startup */
unsigned int failed:1; /* opening log failed last time */ unsigned int failed:1; /* opening log failed last time */
unsigned int temp:1; /* don't save this to config file */ unsigned int temp:1; /* don't save this to config file */
} LOG_REC; };
extern GSList *logs; extern GSList *logs;

View File

@ -5,7 +5,9 @@
# include <regex.h> # include <regex.h>
#endif #endif
typedef struct { typedef struct _HILIGHT_REC HILIGHT_REC;
struct _HILIGHT_REC {
char *text; char *text;
char **channels; /* if non-NULL, check the text only from these channels */ char **channels; /* if non-NULL, check the text only from these channels */
@ -25,7 +27,7 @@ typedef struct {
unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */ unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */
regex_t preg; regex_t preg;
#endif #endif
} HILIGHT_REC; };
extern GSList *hilights; extern GSList *hilights;