зеркало из 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!!!
|
||||
|
||||
#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;
|
||||
|
||||
{
|
||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
|||
chartype* mStr;
|
||||
PRInt32 mLength;
|
||||
PRInt32 mCapacity;
|
||||
#ifdef NS_DEBUG
|
||||
#ifdef RICKG_DEBUG
|
||||
static PRBool mSelfTested;
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -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!";
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
{
|
||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
|||
chartype* mStr;
|
||||
PRInt32 mLength;
|
||||
PRInt32 mCapacity;
|
||||
#ifdef NS_DEBUG
|
||||
#ifdef RICKG_DEBUG
|
||||
static PRBool mSelfTested;
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -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!";
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
{
|
||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
|||
chartype* mStr;
|
||||
PRInt32 mLength;
|
||||
PRInt32 mCapacity;
|
||||
#ifdef NS_DEBUG
|
||||
#ifdef RICKG_DEBUG
|
||||
static PRBool mSelfTested;
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -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!";
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
{
|
||||
|
|
|
@ -765,7 +765,7 @@ typedef PRUnichar chartype;
|
|||
chartype* mStr;
|
||||
PRInt32 mLength;
|
||||
PRInt32 mCapacity;
|
||||
#ifdef NS_DEBUG
|
||||
#ifdef RICKG_DEBUG
|
||||
static PRBool mSelfTested;
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -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!";
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче