From 5098683c49302220e1869e40112f523390f566db Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Sun, 25 Apr 1999 01:27:51 +0000 Subject: [PATCH] disabled some unnecessary debug output --- base/src/nsString.cpp | 6 +++--- base/src/nsString.h | 2 +- base/src/nsString2.cpp | 6 +++--- base/src/nsString2.h | 2 +- string/obsolete/nsString.cpp | 6 +++--- string/obsolete/nsString.h | 2 +- string/obsolete/nsString2.cpp | 6 +++--- string/obsolete/nsString2.h | 2 +- xpcom/ds/nsString.cpp | 6 +++--- xpcom/ds/nsString.h | 2 +- xpcom/ds/nsString2.cpp | 6 +++--- xpcom/ds/nsString2.h | 2 +- xpcom/string/obsolete/nsString.cpp | 6 +++--- xpcom/string/obsolete/nsString.h | 2 +- xpcom/string/obsolete/nsString2.cpp | 6 +++--- xpcom/string/obsolete/nsString2.h | 2 +- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/base/src/nsString.cpp b/base/src/nsString.cpp index 309721d973e..d0cdea7a55f 100644 --- a/base/src/nsString.cpp +++ b/base/src/nsString.cpp @@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer."; PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!! -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString1::mSelfTested = PR_FALSE; #endif @@ -174,7 +174,7 @@ nsString1::nsString1() { mLength = mCapacity = 0; mStr = kCommonEmptyBuffer; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){ */ void nsString1::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG mSelfTested=PR_TRUE; { diff --git a/base/src/nsString.h b/base/src/nsString.h index d44e0ee62bb..6be2ec800b5 100644 --- a/base/src/nsString.h +++ b/base/src/nsString.h @@ -765,7 +765,7 @@ typedef PRUnichar chartype; chartype* mStr; PRInt32 mLength; PRInt32 mCapacity; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif }; diff --git a/base/src/nsString2.cpp b/base/src/nsString2.cpp index faa058137c0..ab7c0299a8f 100644 --- a/base/src/nsString2.cpp +++ b/base/src/nsString2.cpp @@ -35,7 +35,7 @@ static const char* kNullPointerError = "Error: unexpected null ptr"; static const char* kWhitespace="\b\t\r\n "; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString2::mSelfTested = PR_FALSE; #endif @@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){ nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) { nsStr::Initialize(*this,aCharSize); -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out) */ void nsString2::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static const char* kConstructorError = kConstructorError; static const char* kComparisonError = "Comparision error!"; static const char* kEqualsError = "Equals error!"; diff --git a/base/src/nsString2.h b/base/src/nsString2.h index b77046cc16d..ba7179f9e71 100644 --- a/base/src/nsString2.h +++ b/base/src/nsString2.h @@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte); static void SelfTest(); virtual void DebugDump(ostream& aStream) const; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif diff --git a/string/obsolete/nsString.cpp b/string/obsolete/nsString.cpp index 309721d973e..d0cdea7a55f 100644 --- a/string/obsolete/nsString.cpp +++ b/string/obsolete/nsString.cpp @@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer."; PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!! -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString1::mSelfTested = PR_FALSE; #endif @@ -174,7 +174,7 @@ nsString1::nsString1() { mLength = mCapacity = 0; mStr = kCommonEmptyBuffer; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){ */ void nsString1::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG mSelfTested=PR_TRUE; { diff --git a/string/obsolete/nsString.h b/string/obsolete/nsString.h index d44e0ee62bb..6be2ec800b5 100644 --- a/string/obsolete/nsString.h +++ b/string/obsolete/nsString.h @@ -765,7 +765,7 @@ typedef PRUnichar chartype; chartype* mStr; PRInt32 mLength; PRInt32 mCapacity; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif }; diff --git a/string/obsolete/nsString2.cpp b/string/obsolete/nsString2.cpp index faa058137c0..ab7c0299a8f 100644 --- a/string/obsolete/nsString2.cpp +++ b/string/obsolete/nsString2.cpp @@ -35,7 +35,7 @@ static const char* kNullPointerError = "Error: unexpected null ptr"; static const char* kWhitespace="\b\t\r\n "; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString2::mSelfTested = PR_FALSE; #endif @@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){ nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) { nsStr::Initialize(*this,aCharSize); -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out) */ void nsString2::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static const char* kConstructorError = kConstructorError; static const char* kComparisonError = "Comparision error!"; static const char* kEqualsError = "Equals error!"; diff --git a/string/obsolete/nsString2.h b/string/obsolete/nsString2.h index b77046cc16d..ba7179f9e71 100644 --- a/string/obsolete/nsString2.h +++ b/string/obsolete/nsString2.h @@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte); static void SelfTest(); virtual void DebugDump(ostream& aStream) const; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif diff --git a/xpcom/ds/nsString.cpp b/xpcom/ds/nsString.cpp index 309721d973e..d0cdea7a55f 100644 --- a/xpcom/ds/nsString.cpp +++ b/xpcom/ds/nsString.cpp @@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer."; PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!! -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString1::mSelfTested = PR_FALSE; #endif @@ -174,7 +174,7 @@ nsString1::nsString1() { mLength = mCapacity = 0; mStr = kCommonEmptyBuffer; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){ */ void nsString1::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG mSelfTested=PR_TRUE; { diff --git a/xpcom/ds/nsString.h b/xpcom/ds/nsString.h index d44e0ee62bb..6be2ec800b5 100644 --- a/xpcom/ds/nsString.h +++ b/xpcom/ds/nsString.h @@ -765,7 +765,7 @@ typedef PRUnichar chartype; chartype* mStr; PRInt32 mLength; PRInt32 mCapacity; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif }; diff --git a/xpcom/ds/nsString2.cpp b/xpcom/ds/nsString2.cpp index faa058137c0..ab7c0299a8f 100644 --- a/xpcom/ds/nsString2.cpp +++ b/xpcom/ds/nsString2.cpp @@ -35,7 +35,7 @@ static const char* kNullPointerError = "Error: unexpected null ptr"; static const char* kWhitespace="\b\t\r\n "; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString2::mSelfTested = PR_FALSE; #endif @@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){ nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) { nsStr::Initialize(*this,aCharSize); -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out) */ void nsString2::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static const char* kConstructorError = kConstructorError; static const char* kComparisonError = "Comparision error!"; static const char* kEqualsError = "Equals error!"; diff --git a/xpcom/ds/nsString2.h b/xpcom/ds/nsString2.h index b77046cc16d..ba7179f9e71 100644 --- a/xpcom/ds/nsString2.h +++ b/xpcom/ds/nsString2.h @@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte); static void SelfTest(); virtual void DebugDump(ostream& aStream) const; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif diff --git a/xpcom/string/obsolete/nsString.cpp b/xpcom/string/obsolete/nsString.cpp index 309721d973e..d0cdea7a55f 100644 --- a/xpcom/string/obsolete/nsString.cpp +++ b/xpcom/string/obsolete/nsString.cpp @@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer."; PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!! -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString1::mSelfTested = PR_FALSE; #endif @@ -174,7 +174,7 @@ nsString1::nsString1() { mLength = mCapacity = 0; mStr = kCommonEmptyBuffer; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){ */ void nsString1::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG mSelfTested=PR_TRUE; { diff --git a/xpcom/string/obsolete/nsString.h b/xpcom/string/obsolete/nsString.h index d44e0ee62bb..6be2ec800b5 100644 --- a/xpcom/string/obsolete/nsString.h +++ b/xpcom/string/obsolete/nsString.h @@ -765,7 +765,7 @@ typedef PRUnichar chartype; chartype* mStr; PRInt32 mLength; PRInt32 mCapacity; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif }; diff --git a/xpcom/string/obsolete/nsString2.cpp b/xpcom/string/obsolete/nsString2.cpp index faa058137c0..ab7c0299a8f 100644 --- a/xpcom/string/obsolete/nsString2.cpp +++ b/xpcom/string/obsolete/nsString2.cpp @@ -35,7 +35,7 @@ static const char* kNullPointerError = "Error: unexpected null ptr"; static const char* kWhitespace="\b\t\r\n "; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG PRBool nsString2::mSelfTested = PR_FALSE; #endif @@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){ nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) { nsStr::Initialize(*this,aCharSize); -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG if(!mSelfTested) { mSelfTested=PR_TRUE; SelfTest(); @@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out) */ void nsString2::SelfTest(void) { -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static const char* kConstructorError = kConstructorError; static const char* kComparisonError = "Comparision error!"; static const char* kEqualsError = "Equals error!"; diff --git a/xpcom/string/obsolete/nsString2.h b/xpcom/string/obsolete/nsString2.h index b77046cc16d..ba7179f9e71 100644 --- a/xpcom/string/obsolete/nsString2.h +++ b/xpcom/string/obsolete/nsString2.h @@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte); static void SelfTest(); virtual void DebugDump(ostream& aStream) const; -#ifdef NS_DEBUG +#ifdef RICKG_DEBUG static PRBool mSelfTested; #endif