1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +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
@@ -23,11 +23,11 @@
#include <time.h>
/* status for script */
#define SCRIPT_STATUS_INSTALLED 1
#define SCRIPT_STATUS_AUTOLOADED 2
#define SCRIPT_STATUS_HELD 4
#define SCRIPT_STATUS_RUNNING 8
#define SCRIPT_STATUS_NEW_VERSION 16
#define SCRIPT_STATUS_INSTALLED (1 << 0)
#define SCRIPT_STATUS_AUTOLOADED (1 << 1)
#define SCRIPT_STATUS_HELD (1 << 2)
#define SCRIPT_STATUS_RUNNING (1 << 3)
#define SCRIPT_STATUS_NEW_VERSION (1 << 4)
struct t_script_repo
{