1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

core: use bitwise shift operator to define flag constants

This commit is contained in:
Sébastien Helleu
2019-03-02 11:09:52 +01:00
parent 76290729b7
commit 2f5aa3b509
6 changed files with 26 additions and 26 deletions
+5 -5
View File
@@ -30,11 +30,11 @@
#define IRC_RAW_PREFIX_SEND "<--"
#define IRC_RAW_PREFIX_SEND_MODIFIED "<=="
#define IRC_RAW_FLAG_RECV 1
#define IRC_RAW_FLAG_SEND 2
#define IRC_RAW_FLAG_MODIFIED 4
#define IRC_RAW_FLAG_REDIRECT 8
#define IRC_RAW_FLAG_BINARY 16
#define IRC_RAW_FLAG_RECV (1 << 0)
#define IRC_RAW_FLAG_SEND (1 << 1)
#define IRC_RAW_FLAG_MODIFIED (1 << 2)
#define IRC_RAW_FLAG_REDIRECT (1 << 3)
#define IRC_RAW_FLAG_BINARY (1 << 4)
struct t_irc_raw_message
{
+3 -3
View File
@@ -118,9 +118,9 @@ enum t_irc_server_option
#define IRC_SERVER_NUM_OUTQUEUES_PRIO 2
/* flags for irc_server_sendf() */
#define IRC_SERVER_SEND_OUTQ_PRIO_HIGH 1
#define IRC_SERVER_SEND_OUTQ_PRIO_LOW 2
#define IRC_SERVER_SEND_RETURN_HASHTABLE 4
#define IRC_SERVER_SEND_OUTQ_PRIO_HIGH (1 << 0)
#define IRC_SERVER_SEND_OUTQ_PRIO_LOW (1 << 1)
#define IRC_SERVER_SEND_RETURN_HASHTABLE (1 << 2)
/* version strings */
#define IRC_SERVER_VERSION_CAP "302"