projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19368e8
)
Cosmetics: use an enum instead of #defines for source type bits
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 2 Sep 2010 11:47:33 +0000
(14:47 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 2 Sep 2010 11:47:33 +0000
(14:47 +0300)
build/rpmspec.h
patch
|
blob
|
history
diff --git
a/build/rpmspec.h
b/build/rpmspec.h
index
6eb87cb
..
8b8ce3d
100644
(file)
--- a/
build/rpmspec.h
+++ b/
build/rpmspec.h
@@
-17,10
+17,12
@@
extern "C" {
*/
typedef struct Package_s * Package;
-#define RPMBUILD_ISSOURCE (1 << 0)
-#define RPMBUILD_ISPATCH (1 << 1)
-#define RPMBUILD_ISICON (1 << 2)
-#define RPMBUILD_ISNO (1 << 3)
+typedef enum rpmSourceFlags_e {
+ RPMBUILD_ISSOURCE = (1 << 0),
+ RPMBUILD_ISPATCH = (1 << 1),
+ RPMBUILD_ISICON = (1 << 2),
+ RPMBUILD_ISNO = (1 << 3),
+} rpmSourceFlags;
#define RPMBUILD_DEFAULT_LANG "C"