Dogecoin Core  1.14.2
P2P Digital Currency
Macros | Functions | Variables
clientversion.h File Reference
#include <string>
#include <vector>
Include dependency graph for clientversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLIENT_VERSION_MAJOR   0
 client versioning and copyright year More...
 
#define CLIENT_VERSION_MINOR   14
 
#define CLIENT_VERSION_REVISION   2
 
#define CLIENT_VERSION_BUILD   0
 
#define CLIENT_VERSION_IS_RELEASE   true
 Set to true for release, false for prerelease or test build. More...
 
#define COPYRIGHT_YEAR   2017
 Copyright year (2009-this) Todo: update this when changing our copyright comments in the source. More...
 
#define STRINGIZE(X)   DO_STRINGIZE(X)
 Converts the parameter X to a string after macro replacement on X has been performed. More...
 
#define DO_STRINGIZE(X)   #X
 
#define COPYRIGHT_STR   "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
 Copyright string used in Windows .rc files. More...
 

Functions

std::string FormatFullVersion ()
 
std::string FormatSubVersion (const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
 Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki) More...
 

Variables

const std::string CLIENT_NAME
 
const std::string CLIENT_BUILD
 

Macro Definition Documentation

◆ CLIENT_VERSION_BUILD

#define CLIENT_VERSION_BUILD   0

Definition at line 20 of file clientversion.h.

◆ CLIENT_VERSION_IS_RELEASE

#define CLIENT_VERSION_IS_RELEASE   true

Set to true for release, false for prerelease or test build.

Definition at line 23 of file clientversion.h.

◆ CLIENT_VERSION_MAJOR

#define CLIENT_VERSION_MAJOR   0

client versioning and copyright year

These need to be macros, as clientversion.cpp's and bitcoin*-res.rc's voodoo requires it

Definition at line 17 of file clientversion.h.

◆ CLIENT_VERSION_MINOR

#define CLIENT_VERSION_MINOR   14

Definition at line 18 of file clientversion.h.

◆ CLIENT_VERSION_REVISION

#define CLIENT_VERSION_REVISION   2

Definition at line 19 of file clientversion.h.

◆ COPYRIGHT_STR

#define COPYRIGHT_STR   "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL

Copyright string used in Windows .rc files.

Definition at line 41 of file clientversion.h.

◆ COPYRIGHT_YEAR

#define COPYRIGHT_YEAR   2017

Copyright year (2009-this) Todo: update this when changing our copyright comments in the source.

Definition at line 29 of file clientversion.h.

◆ DO_STRINGIZE

#define DO_STRINGIZE (   X)    #X

Definition at line 38 of file clientversion.h.

◆ STRINGIZE

#define STRINGIZE (   X)    DO_STRINGIZE(X)

Converts the parameter X to a string after macro replacement on X has been performed.

Don't merge these into one macro!

Definition at line 37 of file clientversion.h.

Function Documentation

◆ FormatFullVersion()

std::string FormatFullVersion ( )

Definition at line 80 of file clientversion.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FormatSubVersion()

std::string FormatSubVersion ( const std::string &  name,
int  nClientVersion,
const std::vector< std::string > &  comments 
)

Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki)

Definition at line 88 of file clientversion.cpp.

Variable Documentation

◆ CLIENT_BUILD

const std::string CLIENT_BUILD
extern

◆ CLIENT_NAME

const std::string CLIENT_NAME
extern