From: robertc <> Date: Wed, 9 Jul 2003 05:01:46 +0000 (+0000) Subject: Summary: debugs tweaks. X-Git-Tag: SQUID_3_0_PRE1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ecaa0f063616f22eeab93092c83cc7b64d7dc1d;p=thirdparty%2Fsquid.git Summary: debugs tweaks. Keywords: * Remove an inappropriate # from the last line of src/debug.cc * Rename Debug::currentDebug to Debug::CurrentDebug as per the coding standards. --- diff --git a/src/Debug.h b/src/Debug.h index 68168d6256..902c5a11a5 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -1,6 +1,6 @@ /* - * $Id: Debug.h,v 1.4 2003/07/07 22:44:28 robertc Exp $ + * $Id: Debug.h,v 1.5 2003/07/08 23:01:46 robertc Exp $ * * DEBUG: section 0 Debug Routines * AUTHOR: Harvest Derived @@ -49,7 +49,7 @@ public: static void finishDebug(); private: - static std::ostringstream *currentDebug; + static std::ostringstream *CurrentDebug; }; /* Debug stream */ diff --git a/src/debug.cc b/src/debug.cc index adfdbc8457..92585fc696 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,6 +1,6 @@ /* - * $Id: debug.cc,v 1.92 2003/07/07 22:44:28 robertc Exp $ + * $Id: debug.cc,v 1.93 2003/07/08 23:01:46 robertc Exp $ * * DEBUG: section 0 Debug Routines * AUTHOR: Harvest Derived @@ -525,17 +525,16 @@ ctx_get_descr(Ctx ctx) { std::ostream & Debug::getDebugOut() { - assert (currentDebug == NULL); - currentDebug = new std::ostringstream(); - return *currentDebug; + assert (CurrentDebug == NULL); + CurrentDebug = new std::ostringstream(); + return *CurrentDebug; } void Debug::finishDebug() { - _db_print("%s\n", currentDebug->str().c_str()); - delete currentDebug; - currentDebug = NULL; + _db_print("%s\n", CurrentDebug->str().c_str()); + delete CurrentDebug; + CurrentDebug = NULL; } -std::ostringstream *Debug::currentDebug (NULL); -# +std::ostringstream *Debug::CurrentDebug (NULL); diff --git a/test-suite/test_tools.cc b/test-suite/test_tools.cc index 800d4ec10d..ce1ff9b0a4 100644 --- a/test-suite/test_tools.cc +++ b/test-suite/test_tools.cc @@ -1,6 +1,6 @@ /* - * $Id: test_tools.cc,v 1.2 2003/07/07 22:44:28 robertc Exp $ + * $Id: test_tools.cc,v 1.3 2003/07/08 23:01:47 robertc Exp $ * * AUTHOR: Robert Collins * @@ -124,17 +124,17 @@ fatal(const char *message) { std::ostream & Debug::getDebugOut() { - assert (currentDebug == NULL); - currentDebug = new std::ostringstream(); - return *currentDebug; + assert (CurrentDebug == NULL); + CurrentDebug = new std::ostringstream(); + return *CurrentDebug; } void Debug::finishDebug() { - _db_print("%s\n", currentDebug->str().c_str()); - delete currentDebug; - currentDebug = NULL; + _db_print("%s\n", CurrentDebug->str().c_str()); + delete CurrentDebug; + CurrentDebug = NULL; } -std::ostringstream *Debug::currentDebug (NULL); +std::ostringstream *Debug::CurrentDebug (NULL);