unrealircd- supernets unrealircd source & configuration |
git clone git://git.acid.vegas/unrealircd.git |
Log | Files | Refs | Archive | README | LICENSE |
version.h (1991B)
1 /* 2 ** 3 ** version.h 4 ** UnrealIRCd 5 ** $Id$ 6 */ 7 #ifndef __versioninclude 8 #define __versioninclude 1 9 10 /* 11 * Utility macros to convert version number constants to strings. 12 * Delayed expansion requires two macros to work. See: 13 * 14 * $ info '(cpp) Stringification' 15 */ 16 #define _macro_to_str(n) #n 17 #define macro_to_str(n) _macro_to_str(n) 18 19 20 /* 21 * Mark of settings 22 */ 23 #ifdef DEBUGMODE 24 #define DEBUGMODESET "+(debug)" 25 #else 26 #define DEBUGMODESET "" 27 #endif 28 /**/ 29 #ifdef DEBUG 30 #define DEBUGSET "(Debug)" 31 #else 32 #define DEBUGSET "" 33 #endif 34 /**/ 35 #define COMPILEINFO DEBUGMODESET DEBUGSET 36 37 /* Version info follows 38 * Please be sure to update ALL fields when changing the version. 39 * Also don't forget to bump the protocol version every release. 40 */ 41 42 /** 43 * The following code concerns UNREAL_VERSION_GENERATION, 44 * UNREAL_VERSION_MAJOR, and UNREAL_VERSION_MINOR. 45 * 46 * These UNREAL_VERSION_* macros can be used so (3rd party) modules 47 * can easily distinguish versions. 48 * 49 * They are set during ./configure, so update ./configure.ac's AC_INIT 50 * line upon a new release. 51 */ 52 53 /** Year + week of the year (ISO week number, with Monday as first day of week) 54 * Can be useful if the above 3 versionids are insufficient for you (eg: you want to support CVS). 55 * This is updated automatically on the CVS server every Monday. so don't touch it. 56 */ 57 #define UNREAL_VERSION_TIME 202313 58 59 #define UNREAL_VERSION ((UNREAL_VERSION_GENERATION << 24) + (UNREAL_VERSION_MAJOR << 16) + (UNREAL_VERSION_MINOR << 8)) 60 #define UnrealProtocol 6000 61 #define PATCH1 macro_to_str(UNREAL_VERSION_GENERATION) 62 #define PATCH2 "." macro_to_str(UNREAL_VERSION_MAJOR) 63 #define PATCH3 "." macro_to_str(UNREAL_VERSION_MINOR) 64 #define PATCH4 UNREAL_VERSION_SUFFIX 65 #define PATCH5 "" 66 #define PATCH6 "" 67 #define PATCH7 "" 68 #define PATCH8 COMPILEINFO 69 #define PATCH9 "" 70 /* release header */ 71 #define Rh BASE_VERSION 72 #define VERSIONONLY PATCH1 PATCH2 PATCH3 PATCH4 PATCH5 PATCH6 PATCH7 73 #endif /* __versioninclude */