1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +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
+3 -3
View File
@@ -26,9 +26,9 @@ struct t_infolist_item;
#define HOOK_FD(hook, var) (((struct t_hook_fd *)hook->hook_data)->var)
/* flags for fd hooks */
#define HOOK_FD_FLAG_READ 1
#define HOOK_FD_FLAG_WRITE 2
#define HOOK_FD_FLAG_EXCEPTION 4
#define HOOK_FD_FLAG_READ (1 << 0)
#define HOOK_FD_FLAG_WRITE (1 << 1)
#define HOOK_FD_FLAG_EXCEPTION (1 << 2)
typedef int (t_hook_callback_fd)(const void *pointer, void *data, int fd);