1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

more changes from int xx:1 to unsigned int xx:1

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@861 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-23 22:57:59 +00:00 committed by cras
parent 972c06ba17
commit 1fd6f8faf6
10 changed files with 39 additions and 39 deletions

View File

@ -24,7 +24,7 @@ typedef struct {
GSList *waiting_channels; /* list of "<server tag> <channel>" */ GSList *waiting_channels; /* list of "<server tag> <channel>" */
int lines; int lines;
int destroying:1; unsigned int destroying:1;
/* window-specific command line history */ /* window-specific command line history */
GList *cmdhist, *histpos; GList *cmdhist, *histpos;

View File

@ -9,10 +9,10 @@ typedef struct {
char *color; /* if starts with number, \003 is automatically char *color; /* if starts with number, \003 is automatically
inserted before it. */ inserted before it. */
int nick:1; /* hilight only the nick, not a full line - works only with msgs. */ unsigned int nick:1; /* hilight only the nick, not a full line - works only with msgs. */
int nickmask:1; /* `text 'is a nick mask - colorify the nick */ unsigned int nickmask:1; /* `text 'is a nick mask - colorify the nick */
int fullword:1; /* match `text' only for full words */ unsigned int fullword:1; /* match `text' only for full words */
int regexp:1; /* `text' is a regular expression */ unsigned int regexp:1; /* `text' is a regular expression */
} HILIGHT_REC; } HILIGHT_REC;
extern GSList *hilights; extern GSList *hilights;

View File

@ -11,7 +11,7 @@ typedef struct _botnet_rec BOTNET_REC;
typedef struct { typedef struct {
char *name; char *name;
GSList *nicks; /* NICK_RECs */ GSList *nicks; /* NICK_RECs */
int chanop:1; unsigned int chanop:1;
GSList *banlist; GSList *banlist;
GSList *ebanlist; GSList *ebanlist;
@ -35,11 +35,11 @@ typedef struct {
BOTNET_REC *botnet; BOTNET_REC *botnet;
void *link; /* NULL, BOT_UPLINK_REC or BOT_DOWNLINK_REC */ void *link; /* NULL, BOT_UPLINK_REC or BOT_DOWNLINK_REC */
int uplink:1; /* this is our uplink */ unsigned int uplink:1; /* this is our uplink */
int pass_ok:1; /* downlink's password was ok */ unsigned int pass_ok:1; /* downlink's password was ok */
int connected:1; /* bot is in this botnet now */ unsigned int connected:1; /* bot is in this botnet now */
int disconnect:1; /* just disconnecting this bot.. */ unsigned int disconnect:1; /* just disconnecting this bot.. */
int master:1; /* this bot is the bot network's current master */ unsigned int master:1; /* this bot is the bot network's current master */
char *nick; /* bot's unique nick in botnet */ char *nick; /* bot's unique nick in botnet */
int priority; int priority;
@ -71,9 +71,9 @@ typedef struct {
} BOT_DOWNLINK_REC; } BOT_DOWNLINK_REC;
struct _botnet_rec { struct _botnet_rec {
int connected:1; unsigned int connected:1;
int autoconnect:1; unsigned int autoconnect:1;
int reconnect:1; unsigned int reconnect:1;
char *name; /* botnet name */ char *name; /* botnet name */
char *nick; /* our nick in botnet */ char *nick; /* our nick in botnet */

View File

@ -4,7 +4,7 @@
typedef struct { typedef struct {
char *channel; char *channel;
char *key; char *key;
int joining:1; unsigned int joining:1;
} REJOIN_REC; } REJOIN_REC;
void channel_rejoin_init(void); void channel_rejoin_init(void);

View File

@ -38,15 +38,15 @@ typedef struct {
char *usermode; /* The whole mode string .. */ char *usermode; /* The whole mode string .. */
char *userhost; /* /USERHOST <nick> - set when joined to first channel */ char *userhost; /* /USERHOST <nick> - set when joined to first channel */
int nick_changing:1; /* We've sent nick change command to server */ unsigned int nick_changing:1; /* We've sent nick change command to server */
int whois_coming:1; /* Mostly just to display away message right.. */ unsigned int whois_coming:1; /* Mostly just to display away message right.. */
int whois_found:1; /* Did WHOIS return any entries? */ unsigned int whois_found:1; /* Did WHOIS return any entries? */
int whowas_found:1; /* Did WHOWAS return any entries? */ unsigned int whowas_found:1; /* Did WHOWAS return any entries? */
int emode_known:1; /* Server understands ban exceptions and invite lists */ unsigned int emode_known:1; /* Server understands ban exceptions and invite lists */
int no_multi_mode:1; /* Server doesn't understand MODE #chan1,#chan2,... */ unsigned int no_multi_mode:1; /* Server doesn't understand MODE #chan1,#chan2,... */
int no_multi_who:1; /* Server doesn't understand WHO #chan1,#chan2,... */ unsigned int no_multi_who:1; /* Server doesn't understand WHO #chan1,#chan2,... */
int one_endofwho:1; /* /WHO #a,#b,.. replies only with one End of WHO message */ unsigned int one_endofwho:1; /* /WHO #a,#b,.. replies only with one End of WHO message */
int max_kicks_in_cmd; /* max. number of people to kick with one /KICK command */ int max_kicks_in_cmd; /* max. number of people to kick with one /KICK command */
int max_modes_in_cmd; /* max. number of mode changes in one /MODE command */ int max_modes_in_cmd; /* max. number of mode changes in one /MODE command */

View File

@ -19,7 +19,7 @@ typedef struct {
char *address; char *address;
GSList *channels; GSList *channels;
int printed:1; unsigned int printed:1;
time_t destroy; time_t destroy;
} NETSPLIT_REC; } NETSPLIT_REC;

View File

@ -49,13 +49,13 @@ typedef struct DCC_REC {
int get_type; /* DCC get: what to do if file exists? */ int get_type; /* DCC get: what to do if file exists? */
int fastsend:1; /* fastsending (just in case that global fastsend toggle changes while transferring..) */ unsigned int fastsend:1; /* fastsending (just in case that global fastsend toggle changes while transferring..) */
int waitforend:1; /* DCC fast send: file is sent, just wait for the replies from the other side */ unsigned int waitforend:1; /* DCC fast send: file is sent, just wait for the replies from the other side */
int gotalldata:1; /* DCC fast send: got all acks from the other end (needed to make sure the end of transfer works right) */ unsigned int gotalldata:1; /* DCC fast send: got all acks from the other end (needed to make sure the end of transfer works right) */
int mirc_ctcp:1; /* DCC chat: Send CTCPs without the CTCP_MESSAGE prefix */ unsigned int mirc_ctcp:1; /* DCC chat: Send CTCPs without the CTCP_MESSAGE prefix */
int connection_lost:1; /* DCC chat: other side closed connection */ unsigned int connection_lost:1; /* DCC chat: other side closed connection */
int destroyed:1; /* We're about to destroy this DCC recond */ unsigned int destroyed:1; /* We're about to destroy this DCC recond */
/* read/write counter buffer */ /* read/write counter buffer */
char count_buf[4]; char count_buf[4];

View File

@ -9,13 +9,13 @@ typedef struct {
char *user, *host, *realname, *awaymsg; char *user, *host, *realname, *awaymsg;
int idle_time; int idle_time;
int host_ok:1; /* host matches the one in notifylist = this is the right person*/ unsigned int host_ok:1; /* host matches the one in notifylist = this is the right person*/
int away_ok:1; /* not away, or we don't care about it */ unsigned int away_ok:1; /* not away, or we don't care about it */
int idle_ok:1; /* idle time is low enough, or we don't care about it */ unsigned int idle_ok:1; /* idle time is low enough, or we don't care about it */
int away:1; /* nick is away */ unsigned int away:1; /* nick is away */
int join_announced:1; /* join to IRC has been announced */ unsigned int join_announced:1; /* join to IRC has been announced */
int idle_changed:1; /* idle time is lower than in last check */ unsigned int idle_changed:1; /* idle time is lower than in last check */
time_t last_whois; time_t last_whois;
} NOTIFY_NICK_REC; } NOTIFY_NICK_REC;

View File

@ -6,7 +6,7 @@ typedef struct {
char **ircnets; /* if non-NULL, check only from these irc networks */ char **ircnets; /* if non-NULL, check only from these irc networks */
/* notify when AWAY status changes (uses /USERHOST) */ /* notify when AWAY status changes (uses /USERHOST) */
int away_check:1; unsigned int away_check:1;
/* notify when idle time is reset and it was bigger than this /* notify when idle time is reset and it was bigger than this
(uses /WHOIS and PRIVMSG events) */ (uses /WHOIS and PRIVMSG events) */
int idle_check_time; int idle_check_time;

View File

@ -24,8 +24,8 @@ typedef struct {
char *proxy_address; char *proxy_address;
LISTEN_REC *listen; LISTEN_REC *listen;
IRC_SERVER_REC *server; IRC_SERVER_REC *server;
int pass_sent:1; unsigned int pass_sent:1;
int connected:1; unsigned int connected:1;
} CLIENT_REC; } CLIENT_REC;
extern GSList *proxy_listens; extern GSList *proxy_listens;