forked from ClaireDuSoleil/bitcoin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for a working MSVC++ bitcoind.exe version 0.8.6
A full bitcoind.exe 0.8.6, with all asserts with side effects duplicated in release mode. All STL collection out of range references fixed with no change to the gcc sources. Added start up display of Boost and levelDB versions to complement the existing OpenSSL version info. BTW this links and runs with OpenSSL 1.0.1g.. The MSVC++ code has added compile time warning level control to allow better inspection of "suspect code". Added code to allow debug output to the log file to actually work when DEBUG_LOCKCONTENTION-and DEBUG_LOCKORDER are defined.. This would be useful in the gcc compiled version too. Many other startup instrumentation parts were added in the process of sorting out the problems in porting to MSVC, but they are all only in play on the MS compiler. Todo: add release mode assert mirror code to json_spirit_reader and writer_template.h files, since I missed them! Ron
- Loading branch information
bc4-old-c-coder
committed
Apr 18, 2014
1 parent
0071858
commit f0d221e
Showing
46 changed files
with
2,721 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) 2009-2010 Satoshi Nakamoto | ||
// Copyright (c) 2009-2012 The Bitcoin developers | ||
// Distributed under the MIT/X11 software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
#ifndef BITCOIN_JUSTINCASE_H | ||
#define BITCOIN_JUSTINCASE_H | ||
|
||
#ifdef _MSC_VER | ||
#define __PRETTY_FUNCTION__ __FUNCTION__ | ||
#ifndef _DEBUG | ||
extern void releaseModeAssertionfailure( const char* pFileName, const int nL, const std::string strFunctionName ); | ||
#endif | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2009-2012 Bitcoin Developers | ||
// Distributed under the MIT/X11 software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#pragma warning(disable:4503) // decorated name > the compiler limit (4096 characters, yikes!), truncated | ||
#pragma warning( push ) | ||
#pragma warning(disable:4101) // local variable is never used | ||
#pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned | ||
#pragma warning(disable:4244) // floating point type to an integer type. A possible loss of data | ||
#pragma warning(disable:4267) // size_t' to 'type', possible loss of data | ||
#pragma warning(disable:4288) // loop control variable declared in the for-loop is used outside the for-loop scope | ||
#pragma warning(disable:4290) // function is declared using exception specification | ||
#pragma warning(disable:4345) // object of POD type with an initializer of the form () will be default-initialized | ||
//#pragma warning(disable:4503) // decorated name > the compiler limit (4096), truncated | ||
#pragma warning(disable:4717) // recurse function | ||
#pragma warning(disable:4786) // >255 char symbols for debugging | ||
#pragma warning(disable:4800) // forcing value to bool 'true' or 'false' (performance warning) | ||
#pragma warning(disable:4804) // unsafe bool usage, e.g. unary operator (-) or the complement operator (~). | ||
#pragma warning(disable:4805) // comparison operations between unsafe bool and int for example | ||
#pragma warning(disable:4996) // function that was marked with deprecated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright (c) 2009-2012 Bitcoin Developers | ||
// Distributed under the MIT/X11 software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#ifdef THE_BLUE_PILL | ||
#pragma warning( pop ) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2009-2012 Bitcoin Developers | ||
// Distributed under the MIT/X11 software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#ifdef THE_BLUE_PILL | ||
// You take the blue pill – the story ends, you wake up in your bed and | ||
// believe whatever you want to believe | ||
|
||
#ifdef THE_RED_PILL | ||
// You take the red pill – you stay in Wonderland, and I show you how | ||
// deep the rabbit hole goes. Remember, all I'm offering is the truth – nothing more | ||
// [ at Warning level 3! ] | ||
#pragma warning( push ) | ||
#else | ||
#include "MSVC_warnings.h" | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.