Changed TranslationKit version macros to make them more readable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11256 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6256385fde
commit
3bd1b732eb
@ -76,10 +76,10 @@ struct translator_data {
|
||||
status_t (*GetConfigMessage)(BMessage *ioExtension);
|
||||
};
|
||||
|
||||
#define B_TRANSLATION_MAKE_VER(mjr,mnr,rev) ((mjr << 8) | ((mnr << 4) & 0xf0) | (rev & 0x0f))
|
||||
#define B_TRANSLATION_MAJOR_VER(v) (v >> 8)
|
||||
#define B_TRANSLATION_MINOR_VER(v) ((v >> 4) & 0xf)
|
||||
#define B_TRANSLATION_REVSN_VER(v) (v & 0xf)
|
||||
#define B_TRANSLATION_MAKE_VERSION(major,minor,revision) ((major << 8) | ((minor << 4) & 0xf0) | (revision & 0x0f))
|
||||
#define B_TRANSLATION_MAJOR_VERSION(v) (v >> 8)
|
||||
#define B_TRANSLATION_MINOR_VERSION(v) ((v >> 4) & 0xf)
|
||||
#define B_TRANSLATION_REVISION_VERSION(v) (v & 0xf)
|
||||
|
||||
// END: Added by Michael Wilber
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user