Added version macros to be used by the translation kit / translators for making and decoding version numbers

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6794 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2004-02-28 19:13:20 +00:00
parent 010983f10d
commit ed2a34c44f

View File

@ -75,6 +75,12 @@ struct translator_data {
status_t (*GetConfigMessage)(BMessage *ioExtension);
};
#define TK_MAKE_VERSION(mjr,mnr,rev) ((mjr << 8) & ((mnr << 4) & 0xf0) & (rev & 0x0f))
#define TK_MAJOR_VERSION(v) (v >> 8)
#define TK_MINOR_VERSION(v) ((v >> 4) & 0xf)
#define TK_REVISION_VERSION(v) (v & 0xf)
// END: Added by Michael Wilber
#endif /* _TRANSLATION_DEFS_H */