summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorsolsTiCe d'Hiver <solstice.dhiver@gmail.com>2009-09-26 19:30:32 +0200
committerDan McGee <dan@archlinux.org>2009-10-11 22:13:49 -0500
commite3ac8062626877b8cf87df5ce94f61394bf10c0f (patch)
treec0255292e9b657d00604be5f0a53bcd8f6f5936f /lib/libalpm/db.h
parentc7d8601e125de432f185c146c84333ca7d920d9a (diff)
downloadpacman-e3ac8062626877b8cf87df5ce94f61394bf10c0f.tar.xz
use bitwise shift operator in enum "bit field"
This offers a cleaner way to deal with constant in enum and allow easy maintainance Signed-off-by: solsTiCe d'Hiver <solstice.dhiver@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index e4e1dcb7..a540d02d 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -28,12 +28,12 @@
/* Database entries */
typedef enum _pmdbinfrq_t {
- INFRQ_BASE = 0x01,
- INFRQ_DESC = 0x02,
- INFRQ_DEPENDS = 0x04,
- INFRQ_FILES = 0x08,
- INFRQ_SCRIPTLET = 0x10,
- INFRQ_DELTAS = 0x20,
+ INFRQ_BASE = 1,
+ INFRQ_DESC = (1 << 1),
+ INFRQ_DEPENDS = (1 << 2),
+ INFRQ_FILES = (1 << 3),
+ INFRQ_SCRIPTLET = (1 << 4),
+ INFRQ_DELTAS = (1 << 5),
/* ALL should be sum of all above */
INFRQ_ALL = 0x3F
} pmdbinfrq_t;