Skip to content
Snippets Groups Projects
Commit b40aeea1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Re-arrange VERSION/REVISION defines and add a comment

parent b1801a60
Branches
Tags
No related merge requests found
Pipeline #8815 passed
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
/*************/ /*************/
#define VERSION "3.21" // Version: Major.minor as 4-char string #define VERSION "3.21" // Version: Major.minor as 4-char string
#define VERSION_INT ((DEC_CHAR_TO_INT(VERSION[0]) * 100) + (DEC_CHAR_TO_INT(VERSION[2]) * 10) + DEC_CHAR_TO_INT(VERSION[3])) // Version as increasing 3-decimal-digit integer value
#define REVISION 'a' // Revision: lowercase letter #define REVISION 'a' // Revision: lowercase letter
#define VERSION_NUM (((VERSION_INT) * 100) + (tolower(REVISION) - 'a')) #define VERSION_INT ((DEC_CHAR_TO_INT(VERSION[0]) * 100) + (DEC_CHAR_TO_INT(VERSION[2]) * 10) + DEC_CHAR_TO_INT(VERSION[3])) // Version as increasing 3-decimal-digit integer value
#define VERSION_NUM (((VERSION_INT) * 100) + (tolower(REVISION) - 'a')) // Version and revision as a 5-decimal-digit integer value
#define VERSION_HEX (((VERSION_INT / 100) * 0x10000) + (((VERSION_INT % 100) / 10) * 0x1000) + ((VERSION_INT % 10) * 0x100) + (tolower(REVISION) - 'a')) #define VERSION_HEX (((VERSION_INT / 100) * 0x10000) + (((VERSION_INT % 100) / 10) * 0x1000) + ((VERSION_INT % 10) * 0x100) + (tolower(REVISION) - 'a'))
#define VERSION_NOTICE "Synchronet BBS for " PLATFORM_DESC \ #define VERSION_NOTICE "Synchronet BBS for " PLATFORM_DESC \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment