]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: debugs tweaks.
authorrobertc <>
Wed, 9 Jul 2003 05:01:46 +0000 (05:01 +0000)
committerrobertc <>
Wed, 9 Jul 2003 05:01:46 +0000 (05:01 +0000)
Keywords:

* Remove an inappropriate # from the last line of src/debug.cc
* Rename Debug::currentDebug to Debug::CurrentDebug as per the coding standards.

src/Debug.h
src/debug.cc
test-suite/test_tools.cc

index 68168d625630ae4a8ed62793492baa345e824597..902c5a11a561041b003fe127c244b7e00ef4dbf6 100644 (file)
@@ -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 */
index adfdbc84571a24df27ab076c09b4207acdefe0e4..92585fc6963e0dbe893ce428f56ea752c4ad934e 100644 (file)
@@ -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);
index 800d4ec10d3d23eb6548024fce3614928c5cba9a..ce1ff9b0a4fef22edd77f32cf19557f026061efc 100644 (file)
@@ -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);