Changeset 2415


Ignore:
Timestamp:
30/12/2008 14:54:55 (3 years ago)
Author:
chris
Message:

Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as
well (e.g. wxWidgets) and it causes conflicts which are difficult to
resolve.

Location:
box/trunk
Files:
42 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupctl/bbackupctl.cpp

    r2289 r2415  
    357357        MAINHELPER_END 
    358358 
    359 #if defined WIN32 && ! defined NDEBUG 
     359#if defined WIN32 && ! defined BOX_RELEASE_BUILD 
    360360        closelog(); 
    361361#endif 
  • box/trunk/bin/bbackupd/BackupDaemon.cpp

    r2412 r2415  
    15231523        // Check sorting and that things are as we expect 
    15241524        ASSERT(mountPoints.size() > 0); 
    1525 #ifndef NDEBUG 
     1525#ifndef BOX_RELEASE_BUILD 
    15261526        { 
    15271527                std::set<std::string, mntLenCompare>::reverse_iterator i(mountPoints.rbegin()); 
    15281528                ASSERT(*i == "/"); 
    15291529        } 
    1530 #endif // n NDEBUG 
     1530#endif // n BOX_RELEASE_BUILD 
    15311531#endif // n HAVE_STRUCT_STATFS_F_MNTONNAME || n HAVE_STRUCT_STATVFS_F_MNTONNAME 
    15321532#endif // HAVE_MOUNTS 
  • box/trunk/bin/bbackupquery/bbackupquery.cpp

    r2393 r2415  
    9595 
    9696        // Really don't want trace statements happening, even in debug mode 
    97         #ifndef NDEBUG 
     97        #ifndef BOX_RELEASE_BUILD 
    9898                BoxDebugTraceOn = false; 
    9999        #endif 
     
    115115        Logging::SetProgramName("bbackupquery"); 
    116116 
    117         #ifdef NDEBUG 
     117        #ifdef BOX_RELEASE_BUILD 
    118118        int masterLevel = Log::NOTICE; // need an int to do math with 
    119119        #else 
  • box/trunk/bin/bbstored/BackupStoreContext.cpp

    r2282 r2415  
    3434// When the cache is bigger than this, everything gets 
    3535// deleted. 
    36 #ifdef NDEBUG 
     36#ifdef BOX_RELEASE_BUILD 
    3737        #define MAX_CACHE_SIZE  32 
    3838#else 
  • box/trunk/infrastructure/buildenv-testmain-template.cpp

    r2317 r2415  
    4444int test(int argc, const char *argv[]); 
    4545 
    46 #ifdef NDEBUG 
     46#ifdef BOX_RELEASE_BUILD 
    4747        #define MODE_TEXT       "release" 
    4848#else 
     
    168168 
    169169#ifdef HAVE_GETOPT_H 
    170         #ifdef NDEBUG 
     170        #ifdef BOX_RELEASE_BUILD 
    171171        int logLevel = Log::NOTICE; // need an int to do math with 
    172172        #else 
  • box/trunk/infrastructure/makebuildenv.pl.in

    r2409 r2415  
    458458                        { 
    459459                                print TESTFILE <<__E; 
    460 echo Killing any running daemons... 
    461460kill_process bbackupd 
    462461kill_process bbstored 
     
    561560 
    562561.ifdef RELEASE 
    563 CXXFLAGS = -DNDEBUG $release_flags \$(DEFAULT_CXXFLAGS) 
     562CXXFLAGS = -DBOX_RELEASE_BUILD $release_flags \$(DEFAULT_CXXFLAGS) 
    564563OUTBASE = ../../release 
    565564OUTDIR = ../../release/$mod 
  • box/trunk/infrastructure/msvc/2003/bbackupctl.vcproj

    r1077 r2415  
    2121                                Optimization="0" 
    2222                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\..\db-4.2.52.NC\build_win32&quot;;&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;" 
    23                                 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;NDEBUG " 
     23                                PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOX_RELEASE_BUILD " 
    2424                                MinimalRebuild="TRUE" 
    2525                                BasicRuntimeChecks="3" 
     
    7373                                OptimizeForProcessor="1" 
    7474                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;" 
    75                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING" 
     75                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING" 
    7676                                RuntimeLibrary="0" 
    7777                                BufferSecurityCheck="FALSE" 
  • box/trunk/infrastructure/msvc/2003/bbackupd.vcproj

    r1768 r2415  
    2121                                Optimization="0" 
    2222                                AdditionalIncludeDirectories="&quot;$(SolutionDir)..\..\..\..\db-4.2.52.NC\build_win32&quot;;&quot;$(SolutionDir)..\..\..\..\boost_1_31_0&quot;;&quot;$(SolutionDir)..\..\..\..\openssl\include&quot;;&quot;$(SolutionDir)..\..\..\..\zlib\include&quot;;&quot;$(SolutionDir)..\..\..\lib\backupclient&quot;;&quot;$(SolutionDir)..\..\..\lib\server&quot;;&quot;$(SolutionDir)..\..\..\lib\crypto&quot;;&quot;$(SolutionDir)..\..\..\lib\compress&quot;;&quot;$(SolutionDir)..\..\..\lib\win32&quot;;&quot;$(SolutionDir)..\..\..\lib\common\&quot;" 
    23                                 PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;_DEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;NDEBUG " 
     23                                PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;_DEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOX_RELEASE_BUILD " 
    2424                                MinimalRebuild="TRUE" 
    2525                                BasicRuntimeChecks="3" 
     
    7474                                OptimizeForProcessor="1" 
    7575                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(SolutionDir)..\..\..\..\boost_1_31_0&quot;" 
    76                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOOST_REGEX_NO_LIB" 
     76                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOOST_REGEX_NO_LIB" 
    7777                                RuntimeLibrary="0" 
    7878                                BufferSecurityCheck="FALSE" 
  • box/trunk/infrastructure/msvc/2003/boxquery.vcproj

    r1077 r2415  
    2222                                Optimization="0" 
    2323                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(SolutionDir)..\..\..\..\boost_1_31_0&quot;" 
    24                                 PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;_DEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;NDEBUG " 
     24                                PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;_DEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOX_RELEASE_BUILD " 
    2525                                MinimalRebuild="TRUE" 
    2626                                BasicRuntimeChecks="3" 
     
    7474                                OptimizeForProcessor="1" 
    7575                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(SolutionDir)..\..\..\..\boost_1_31_0&quot;" 
    76                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOOST_REGEX_NO_LIB" 
     76                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOOST_REGEX_NO_LIB" 
    7777                                RuntimeLibrary="0" 
    7878                                BufferSecurityCheck="FALSE" 
  • box/trunk/infrastructure/msvc/2003/common.vcproj

    r1768 r2415  
    2121                                Optimization="0" 
    2222                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(SolutionDir)..\..\..\..\boost_1_31_0\&quot;" 
    23                                 PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;_DEBUG;_LIB;PLATFORM_DISABLE_MEM_LEAK_TESTING;NDEBUG " 
     23                                PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;_DEBUG;_LIB;PLATFORM_DISABLE_MEM_LEAK_TESTING;BOX_RELEASE_BUILD " 
    2424                                MinimalRebuild="TRUE" 
    2525                                BasicRuntimeChecks="3" 
     
    6565                                OptimizeForProcessor="1" 
    6666                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(SolutionDir)..\..\..\..\boost_1_31_0\&quot;" 
    67                                 PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;NDEBUG;_LIB;PLATFORM_DISABLE_MEM_LEAK_TESTING" 
     67                                PreprocessorDefinitions="BOOST_REGEX_NO_LIB;WIN32;BOX_RELEASE_BUILD;_LIB;PLATFORM_DISABLE_MEM_LEAK_TESTING" 
    6868                                RuntimeLibrary="0" 
    6969                                BufferSecurityCheck="FALSE" 
  • box/trunk/infrastructure/msvc/2003/win32test.vcproj

    r481 r2415  
    7373                                OptimizeForProcessor="1" 
    7474                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\bin\bbackupd&quot;;&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;" 
    75                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING" 
     75                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING" 
    7676                                RuntimeLibrary="0" 
    7777                                BufferSecurityCheck="FALSE" 
  • box/trunk/infrastructure/msvc/2005/bbackupctl.vcproj

    r2271 r2415  
    124124                                EnableFiberSafeOptimizations="true" 
    125125                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\inc32&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;" 
    126                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
     126                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
    127127                                RuntimeLibrary="0" 
    128128                                BufferSecurityCheck="false" 
  • box/trunk/infrastructure/msvc/2005/bbackupd.vcproj

    r2271 r2415  
    125125                                EnableFiberSafeOptimizations="true" 
    126126                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(SolutionDir)..\..\..\..\openssl\inc32&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;" 
    127                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
     127                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
    128128                                RuntimeLibrary="0" 
    129129                                BufferSecurityCheck="false" 
  • box/trunk/infrastructure/msvc/2005/boxquery.vcproj

    r2271 r2415  
    124124                                EnableFiberSafeOptimizations="true" 
    125125                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\include&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;" 
    126                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;PCRE_STATIC" 
     126                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;PCRE_STATIC" 
    127127                                RuntimeLibrary="0" 
    128128                                BufferSecurityCheck="false" 
  • box/trunk/infrastructure/msvc/2005/common.vcproj

    r2271 r2415  
    112112                                EnableFiberSafeOptimizations="true" 
    113113                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\inc32&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;;&quot;$(ProjectDir)..\..\..\..\pcre\pcre-6.7\&quot;" 
    114                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
     114                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_LIB;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
    115115                                RuntimeLibrary="0" 
    116116                                BufferSecurityCheck="false" 
  • box/trunk/infrastructure/msvc/2005/win32test.vcproj

    r2271 r2415  
    124124                                EnableFiberSafeOptimizations="true" 
    125125                                AdditionalIncludeDirectories="&quot;$(ProjectDir)..\..\..\bin\bbackupd&quot;;&quot;$(ProjectDir)..\..\..\lib\backupclient&quot;;&quot;$(ProjectDir)..\..\..\lib\common\&quot;;&quot;$(ProjectDir)..\..\..\lib\compress&quot;;&quot;$(ProjectDir)..\..\..\lib\crypto&quot;;&quot;$(ProjectDir)..\..\..\lib\server&quot;;&quot;$(ProjectDir)..\..\..\lib\win32&quot;;&quot;$(ProjectDir)..\..\..\..\openssl\inc32&quot;;&quot;$(ProjectDir)..\..\..\..\zlib\include&quot;" 
    126                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
     126                                PreprocessorDefinitions="WIN32;BOX_RELEASE_BUILD;_CONSOLE;PLATFORM_DISABLE_MEM_LEAK_TESTING;_CRT_SECURE_NO_DEPRECATE;PCRE_STATIC" 
    127127                                RuntimeLibrary="0" 
    128128                                BufferSecurityCheck="false" 
  • box/trunk/lib/backupclient/BackupStoreFile.h

    r2245 r2415  
    216216         
    217217        // For debug 
    218 #ifndef NDEBUG 
     218#ifndef BOX_RELEASE_BUILD 
    219219        static bool TraceDetailsOfDiffProcess; 
    220220#endif 
  • box/trunk/lib/backupclient/BackupStoreFileDiff.cpp

    r2292 r2415  
    4141// By default, don't trace out details of the diff as we go along -- would fill up logs significantly. 
    4242// But it's useful for the test. 
    43 #ifndef NDEBUG 
     43#ifndef BOX_RELEASE_BUILD 
    4444        bool BackupStoreFile::TraceDetailsOfDiffProcess = false; 
    4545#endif 
     
    437437         
    438438        // trace the size table in debug builds 
    439 #ifndef NDEBUG 
     439#ifndef BOX_RELEASE_BUILD 
    440440        if(BackupStoreFile::TraceDetailsOfDiffProcess) 
    441441        { 
     
    729729        } 
    730730         
    731 #ifndef NDEBUG 
     731#ifndef BOX_RELEASE_BUILD 
    732732        if(BackupStoreFile::TraceDetailsOfDiffProcess) 
    733733        { 
     
    811811        ASSERT(pIndex != 0); 
    812812 
    813 #ifndef NDEBUG 
     813#ifndef BOX_RELEASE_BUILD 
    814814        uint16_t DEBUG_Hash = fastSum.GetComponentForHashing(); 
    815815#endif 
     
    917917                rRecipe.push_back(instruction);  
    918918         
    919                 #ifndef NDEBUG 
     919                #ifndef BOX_RELEASE_BUILD 
    920920                if(BackupStoreFile::TraceDetailsOfDiffProcess) 
    921921                { 
     
    937937 
    938938        // Counting for debug tracing 
    939 #ifndef NDEBUG 
     939#ifndef BOX_RELEASE_BUILD 
    940940        int64_t debug_NewBytesFound = 0; 
    941941        int64_t debug_OldBlocksUsed = 0; 
     
    964964                        // Move location forward to match 
    965965                        loc += instruction.mSpaceBefore; 
    966 #ifndef NDEBUG 
     966#ifndef BOX_RELEASE_BUILD 
    967967                        debug_NewBytesFound += instruction.mSpaceBefore; 
    968968#endif 
     
    990990                } 
    991991 
    992 #ifndef NDEBUG 
     992#ifndef BOX_RELEASE_BUILD 
    993993                debug_OldBlocksUsed++; 
    994994#endif 
     
    10061006                RESET_INSTRUCTION 
    10071007                instruction.mSpaceBefore = SizeOfInputFile - loc; 
    1008 #ifndef NDEBUG 
     1008#ifndef BOX_RELEASE_BUILD 
    10091009                debug_NewBytesFound += instruction.mSpaceBefore; 
    10101010#endif 
     
    10131013         
    10141014        // dump out the recipe 
    1015 #ifndef NDEBUG 
     1015#ifndef BOX_RELEASE_BUILD 
    10161016        BOX_TRACE("Diff: " <<  
    10171017                debug_NewBytesFound << " new bytes found, " << 
  • box/trunk/lib/backupclient/BackupStoreFileEncodeStream.cpp

    r2245 r2415  
    237237                                throw std::bad_alloc(); 
    238238                        } 
    239 #ifndef NDEBUG 
     239#ifndef BOX_RELEASE_BUILD 
    240240                        // In debug builds, make sure that the reallocation code is exercised. 
    241241                        mEncodedBuffer.Allocate(mAllocatedBufferSize / 4); 
  • box/trunk/lib/backupstore/BackupStoreCheck.h

    r217 r2415  
    4949 
    5050// Size of blocks in the list of IDs 
    51 #ifdef NDEBUG 
     51#ifdef BOX_RELEASE_BUILD 
    5252        #define BACKUPSTORECHECK_BLOCK_SIZE             (64*1024) 
    5353#else 
     
    151151        } 
    152152         
    153 #ifndef NDEBUG 
     153#ifndef BOX_RELEASE_BUILD 
    154154        void DumpObjectInfo(); 
    155155        #define DUMP_OBJECT_INFO DumpObjectInfo(); 
  • box/trunk/lib/backupstore/BackupStoreCheckData.cpp

    r2127 r2415  
    175175 
    176176 
    177 #ifndef NDEBUG 
     177#ifndef BOX_RELEASE_BUILD 
    178178// -------------------------------------------------------------------------- 
    179179// 
  • box/trunk/lib/backupstore/BackupStoreInfo.cpp

    r2219 r2415  
    5656#endif 
    5757 
    58 #ifdef NDEBUG 
     58#ifdef BOX_RELEASE_BUILD 
    5959        #define         NUM_DELETED_DIRS_BLOCK  256 
    6060#else 
  • box/trunk/lib/backupstore/StoreStructure.h

    r217 r2415  
    1313#include <string> 
    1414 
    15 #ifdef NDEBUG 
     15#ifdef BOX_RELEASE_BUILD 
    1616        #define STORE_ID_SEGMENT_LENGTH         8 
    1717        #define STORE_ID_SEGMENT_MASK           0xff 
  • box/trunk/lib/common/Box.h

    r2398 r2415  
    3838#include "Logging.h" 
    3939 
    40 #ifndef NDEBUG 
     40#ifndef BOX_RELEASE_BUILD 
    4141         
    4242        extern bool AssertFailuresToSyslog; 
  • box/trunk/lib/common/DebugAssertFailed.cpp

    r2051 r2415  
    88// -------------------------------------------------------------------------- 
    99 
    10 #ifndef NDEBUG 
     10#ifndef BOX_RELEASE_BUILD 
    1111 
    1212#include "Box.h" 
     
    3434 
    3535 
    36 #endif // NDEBUG 
     36#endif // BOX_RELEASE_BUILD 
    3737 
  • box/trunk/lib/common/DebugMemLeakFinder.cpp

    r2366 r2415  
    99 
    1010 
    11 #ifndef NDEBUG 
     11#ifndef BOX_RELEASE_BUILD 
    1212 
    1313#include "Box.h" 
     
    549549} 
    550550 
    551 #endif // NDEBUG 
     551#endif // BOX_RELEASE_BUILD 
  • box/trunk/lib/common/DebugPrintf.cpp

    r1787 r2415  
    88// -------------------------------------------------------------------------- 
    99 
    10 #ifndef NDEBUG 
     10#ifndef BOX_RELEASE_BUILD 
    1111 
    1212#include "Box.h" 
     
    8181 
    8282 
    83 #endif // NDEBUG 
     83#endif // BOX_RELEASE_BUILD 
  • box/trunk/lib/common/FdGetLine.h

    r887 r2415  
    1313#include <string> 
    1414 
    15 #ifdef NDEBUG 
     15#ifdef BOX_RELEASE_BUILD 
    1616        #define FDGETLINE_BUFFER_SIZE           1024 
    1717#elif defined WIN32 
  • box/trunk/lib/common/IOStreamGetLine.h

    r217 r2415  
    1515#include "IOStream.h" 
    1616 
    17 #ifdef NDEBUG 
     17#ifdef BOX_RELEASE_BUILD 
    1818        #define IOSTREAMGETLINE_BUFFER_SIZE             1024 
    1919#else 
  • box/trunk/lib/common/Timer.cpp

    r2295 r2415  
    348348#endif 
    349349{ 
    350         #ifndef NDEBUG 
     350        #ifndef BOX_RELEASE_BUILD 
    351351        if (timeoutSecs == 0) 
    352352        { 
     
    477477Timer::~Timer() 
    478478{ 
    479         #ifndef NDEBUG 
     479        #ifndef BOX_RELEASE_BUILD 
    480480        BOX_TRACE(TIMER_ID "destroyed"); 
    481481        #endif 
     
    504504#endif 
    505505{ 
    506         #ifndef NDEBUG 
     506        #ifndef BOX_RELEASE_BUILD 
    507507        if (mExpired) 
    508508        { 
     
    545545Timer& Timer::operator=(const Timer& rToCopy) 
    546546{ 
    547         #ifndef NDEBUG 
     547        #ifndef BOX_RELEASE_BUILD 
    548548        if (rToCopy.mExpired) 
    549549        { 
     
    596596void Timer::OnExpire() 
    597597{ 
    598         #ifndef NDEBUG 
     598        #ifndef BOX_RELEASE_BUILD 
    599599        BOX_TRACE(TIMER_ID "fired"); 
    600600        #endif 
  • box/trunk/lib/common/Utils.cpp

    r2356 r2415  
    5959                rOutput.push_back(String.substr(b)); 
    6060        } 
    61 /*#ifndef NDEBUG 
     61/*#ifndef BOX_RELEASE_BUILD 
    6262        BOX_TRACE("Splitting string '" << String << " on " << (char)SplitOn); 
    6363        for(unsigned int l = 0; l < rOutput.size(); ++l) 
  • box/trunk/lib/compress/CompressStream.cpp

    r2127 r2415  
    2020 
    2121// How big a buffer to use 
    22 #ifndef NDEBUG 
     22#ifndef BOX_RELEASE_BUILD 
    2323        // debug! 
    2424        #define BUFFER_SIZE     256 
  • box/trunk/lib/raidfile/RaidFileUtil.cpp

    r2378 r2415  
    5959                        { 
    6060                                (*pRevisionID) = FileModificationTime(st); 
    61 #ifdef NDEBUG 
     61#ifdef BOX_RELEASE_BUILD 
    6262                                // The resolution of timestamps may be very 
    6363                                // low, e.g. 1 second. So add the size to it 
     
    108108        { 
    109109                (*pRevisionID) = revisionID; 
    110 #ifdef NDEBUG 
     110#ifdef BOX_RELEASE_BUILD 
    111111                // The resolution of timestamps may be very low, e.g. 
    112112                // 1 second. So add the size to it to give a bit more 
  • box/trunk/lib/raidfile/RaidFileWrite.cpp

    r2210 r2415  
    391391//      // doesn't really apply, as space benefits of using fragment size are worth efficiency, 
    392392//      // and anyway, it'll be buffered eventually so it won't matter. 
    393 //      #ifndef NDEBUG 
     393//      #ifndef BOX_RELEASE_BUILD 
    394394//      { 
    395395//              if(writeFileStat.st_blksize != blockSize) 
  • box/trunk/lib/server/Daemon.cpp

    r2317 r2415  
    297297        mAppName = argv[0]; 
    298298 
    299         #ifdef NDEBUG 
     299        #ifdef BOX_RELEASE_BUILD 
    300300        mLogLevel = Log::NOTICE; // need an int to do math with 
    301301        #else 
  • box/trunk/lib/server/Protocol.cpp

    r2311 r2415  
    2727#include "MemLeakFindOn.h" 
    2828 
    29 #ifdef NDEBUG 
     29#ifdef BOX_RELEASE_BUILD 
    3030        #define PROTOCOL_ALLOCATE_SEND_BLOCK_CHUNK      1024 
    3131#else 
  • box/trunk/lib/server/SSLLib.cpp

    r2397 r2415  
    2424#include "MemLeakFindOn.h" 
    2525 
    26 #ifndef NDEBUG 
     26#ifndef BOX_RELEASE_BUILD 
    2727        bool SSLLib__TraceErrors = false; 
    2828#endif 
  • box/trunk/lib/server/SSLLib.h

    r2090 r2415  
    1111#define SSLLIB__H 
    1212 
    13 #ifndef NDEBUG 
     13#ifndef BOX_RELEASE_BUILD 
    1414        extern bool SSLLib__TraceErrors; 
    1515        #define SET_DEBUG_SSLLIB_TRACE_ERRORS {SSLLib__TraceErrors = true;} 
  • box/trunk/lib/server/ServerStream.h

    r2256 r2415  
    109109                        // Child task, dump leaks to trace, which we make sure is on 
    110110                        #ifdef BOX_MEMORY_LEAK_TESTING 
    111                                 #ifndef NDEBUG 
     111                                #ifndef BOX_RELEASE_BUILD 
    112112                                        TRACE_TO_SYSLOG(true); 
    113113                                        TRACE_TO_STDOUT(true); 
  • box/trunk/lib/server/SocketStreamTLS.cpp

    r2253 r2415  
    392392                        // wait for the requried data 
    393393                        { 
    394                         #ifndef NDEBUG 
     394                        #ifndef BOX_RELEASE_BUILD 
    395395                                bool conditionmet =  
    396396                        #endif 
  • box/trunk/test/backupdiff/testbackupdiff.cpp

    r2135 r2415  
    389389{ 
    390390        // Want to trace out all the details 
    391         #ifndef NDEBUG 
     391        #ifndef BOX_RELEASE_BUILD 
    392392        #ifndef WIN32 
    393393        BackupStoreFile::TraceDetailsOfDiffProcess = true; 
  • box/trunk/test/common/testcommon.cpp

    r2215 r2415  
    299299        // Check that using timer methods without initialisation 
    300300        // throws an assertion failure. Can only do this in debug mode 
    301         #ifndef NDEBUG 
     301        #ifndef BOX_RELEASE_BUILD 
    302302                TEST_CHECK_THROWS(Timers::Add(*(Timer*)NULL),  
    303303                        CommonException, AssertFailed); 
     
    307307 
    308308        // TEST_CHECK_THROWS(Timers::Signal(), CommonException, AssertFailed); 
    309         #ifndef NDEBUG 
     309        #ifndef BOX_RELEASE_BUILD 
    310310                TEST_CHECK_THROWS(Timers::Cleanup(), CommonException, 
    311311                        AssertFailed); 
     
    316316         
    317317        // Check that double initialisation throws an exception 
    318         #ifndef NDEBUG 
     318        #ifndef BOX_RELEASE_BUILD 
    319319                TEST_CHECK_THROWS(Timers::Init(), CommonException, 
    320320                        AssertFailed); 
     
    325325         
    326326        // Check that double cleanup throws an exception 
    327         #ifndef NDEBUG 
     327        #ifndef BOX_RELEASE_BUILD 
    328328                TEST_CHECK_THROWS(Timers::Cleanup(), CommonException, 
    329329                        AssertFailed); 
Note: See TracChangeset for help on using the changeset viewer.