зеркало из https://github.com/mozilla/pjs.git
disabled some unnecessary debug output
This commit is contained in:
Родитель
b5dcc14666
Коммит
5098683c49
|
@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer.";
|
||||||
|
|
||||||
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString1::mSelfTested = PR_FALSE;
|
PRBool nsString1::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ nsString1::nsString1() {
|
||||||
mLength = mCapacity = 0;
|
mLength = mCapacity = 0;
|
||||||
mStr = kCommonEmptyBuffer;
|
mStr = kCommonEmptyBuffer;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){
|
||||||
*/
|
*/
|
||||||
void nsString1::SelfTest(void) {
|
void nsString1::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
||||||
chartype* mStr;
|
chartype* mStr;
|
||||||
PRInt32 mLength;
|
PRInt32 mLength;
|
||||||
PRInt32 mCapacity;
|
PRInt32 mCapacity;
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
static const char* kNullPointerError = "Error: unexpected null ptr";
|
static const char* kNullPointerError = "Error: unexpected null ptr";
|
||||||
static const char* kWhitespace="\b\t\r\n ";
|
static const char* kWhitespace="\b\t\r\n ";
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString2::mSelfTested = PR_FALSE;
|
PRBool nsString2::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){
|
||||||
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
||||||
nsStr::Initialize(*this,aCharSize);
|
nsStr::Initialize(*this,aCharSize);
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out)
|
||||||
*/
|
*/
|
||||||
void nsString2::SelfTest(void) {
|
void nsString2::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static const char* kConstructorError = kConstructorError;
|
static const char* kConstructorError = kConstructorError;
|
||||||
static const char* kComparisonError = "Comparision error!";
|
static const char* kComparisonError = "Comparision error!";
|
||||||
static const char* kEqualsError = "Equals error!";
|
static const char* kEqualsError = "Equals error!";
|
||||||
|
|
|
@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte);
|
||||||
static void SelfTest();
|
static void SelfTest();
|
||||||
virtual void DebugDump(ostream& aStream) const;
|
virtual void DebugDump(ostream& aStream) const;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer.";
|
||||||
|
|
||||||
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString1::mSelfTested = PR_FALSE;
|
PRBool nsString1::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ nsString1::nsString1() {
|
||||||
mLength = mCapacity = 0;
|
mLength = mCapacity = 0;
|
||||||
mStr = kCommonEmptyBuffer;
|
mStr = kCommonEmptyBuffer;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){
|
||||||
*/
|
*/
|
||||||
void nsString1::SelfTest(void) {
|
void nsString1::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
||||||
chartype* mStr;
|
chartype* mStr;
|
||||||
PRInt32 mLength;
|
PRInt32 mLength;
|
||||||
PRInt32 mCapacity;
|
PRInt32 mCapacity;
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
static const char* kNullPointerError = "Error: unexpected null ptr";
|
static const char* kNullPointerError = "Error: unexpected null ptr";
|
||||||
static const char* kWhitespace="\b\t\r\n ";
|
static const char* kWhitespace="\b\t\r\n ";
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString2::mSelfTested = PR_FALSE;
|
PRBool nsString2::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){
|
||||||
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
||||||
nsStr::Initialize(*this,aCharSize);
|
nsStr::Initialize(*this,aCharSize);
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out)
|
||||||
*/
|
*/
|
||||||
void nsString2::SelfTest(void) {
|
void nsString2::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static const char* kConstructorError = kConstructorError;
|
static const char* kConstructorError = kConstructorError;
|
||||||
static const char* kComparisonError = "Comparision error!";
|
static const char* kComparisonError = "Comparision error!";
|
||||||
static const char* kEqualsError = "Equals error!";
|
static const char* kEqualsError = "Equals error!";
|
||||||
|
|
|
@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte);
|
||||||
static void SelfTest();
|
static void SelfTest();
|
||||||
virtual void DebugDump(ostream& aStream) const;
|
virtual void DebugDump(ostream& aStream) const;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer.";
|
||||||
|
|
||||||
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString1::mSelfTested = PR_FALSE;
|
PRBool nsString1::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ nsString1::nsString1() {
|
||||||
mLength = mCapacity = 0;
|
mLength = mCapacity = 0;
|
||||||
mStr = kCommonEmptyBuffer;
|
mStr = kCommonEmptyBuffer;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){
|
||||||
*/
|
*/
|
||||||
void nsString1::SelfTest(void) {
|
void nsString1::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
||||||
chartype* mStr;
|
chartype* mStr;
|
||||||
PRInt32 mLength;
|
PRInt32 mLength;
|
||||||
PRInt32 mCapacity;
|
PRInt32 mCapacity;
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
static const char* kNullPointerError = "Error: unexpected null ptr";
|
static const char* kNullPointerError = "Error: unexpected null ptr";
|
||||||
static const char* kWhitespace="\b\t\r\n ";
|
static const char* kWhitespace="\b\t\r\n ";
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString2::mSelfTested = PR_FALSE;
|
PRBool nsString2::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){
|
||||||
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
||||||
nsStr::Initialize(*this,aCharSize);
|
nsStr::Initialize(*this,aCharSize);
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out)
|
||||||
*/
|
*/
|
||||||
void nsString2::SelfTest(void) {
|
void nsString2::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static const char* kConstructorError = kConstructorError;
|
static const char* kConstructorError = kConstructorError;
|
||||||
static const char* kComparisonError = "Comparision error!";
|
static const char* kComparisonError = "Comparision error!";
|
||||||
static const char* kEqualsError = "Equals error!";
|
static const char* kEqualsError = "Equals error!";
|
||||||
|
|
|
@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte);
|
||||||
static void SelfTest();
|
static void SelfTest();
|
||||||
virtual void DebugDump(ostream& aStream) const;
|
virtual void DebugDump(ostream& aStream) const;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ const char* kFoolMsg = "Error: Some fool overwrote the shared buffer.";
|
||||||
|
|
||||||
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
PRUnichar kCommonEmptyBuffer[100]; //shared by all strings; NEVER WRITE HERE!!!
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString1::mSelfTested = PR_FALSE;
|
PRBool nsString1::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ nsString1::nsString1() {
|
||||||
mLength = mCapacity = 0;
|
mLength = mCapacity = 0;
|
||||||
mStr = kCommonEmptyBuffer;
|
mStr = kCommonEmptyBuffer;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -2246,7 +2246,7 @@ NS_BASE int fputs(const nsString1& aString, FILE* out){
|
||||||
*/
|
*/
|
||||||
void nsString1::SelfTest(void) {
|
void nsString1::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
||||||
chartype* mStr;
|
chartype* mStr;
|
||||||
PRInt32 mLength;
|
PRInt32 mLength;
|
||||||
PRInt32 mCapacity;
|
PRInt32 mCapacity;
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
static const char* kNullPointerError = "Error: unexpected null ptr";
|
static const char* kNullPointerError = "Error: unexpected null ptr";
|
||||||
static const char* kWhitespace="\b\t\r\n ";
|
static const char* kWhitespace="\b\t\r\n ";
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
PRBool nsString2::mSelfTested = PR_FALSE;
|
PRBool nsString2::mSelfTested = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ void Subsume(nsStr& aDest,nsStr& aSource){
|
||||||
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
nsString2::nsString2(eCharSize aCharSize,nsIMemoryAgent* anAgent) : mAgent(anAgent) {
|
||||||
nsStr::Initialize(*this,aCharSize);
|
nsStr::Initialize(*this,aCharSize);
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
if(!mSelfTested) {
|
if(!mSelfTested) {
|
||||||
mSelfTested=PR_TRUE;
|
mSelfTested=PR_TRUE;
|
||||||
SelfTest();
|
SelfTest();
|
||||||
|
@ -1703,7 +1703,7 @@ NS_BASE int fputs(const nsString2& aString, FILE* out)
|
||||||
*/
|
*/
|
||||||
void nsString2::SelfTest(void) {
|
void nsString2::SelfTest(void) {
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static const char* kConstructorError = kConstructorError;
|
static const char* kConstructorError = kConstructorError;
|
||||||
static const char* kComparisonError = "Comparision error!";
|
static const char* kComparisonError = "Comparision error!";
|
||||||
static const char* kEqualsError = "Equals error!";
|
static const char* kEqualsError = "Equals error!";
|
||||||
|
|
|
@ -695,7 +695,7 @@ static nsString2* NewString(eCharSize aCharSize=eTwoByte);
|
||||||
static void SelfTest();
|
static void SelfTest();
|
||||||
virtual void DebugDump(ostream& aStream) const;
|
virtual void DebugDump(ostream& aStream) const;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef RICKG_DEBUG
|
||||||
static PRBool mSelfTested;
|
static PRBool mSelfTested;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче