incremental fix for DON to get Linux off the floor

This commit is contained in:
rickg%netscape.com 1999-01-12 01:14:12 +00:00
Родитель 3a514406b6
Коммит fdd08d48b5
8 изменённых файлов: 24 добавлений и 26 удалений

Просмотреть файл

@ -11,11 +11,11 @@
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/**
* MODULE NOTES:
* @update gess 4/8/98

Просмотреть файл

@ -24,8 +24,8 @@
*
*/
#ifndef NS_NAVHTMLDTD__
#define NS_NAVHTMLDTD__
#ifndef NS_RTFDTD__
#define NS_RTFDTD__
#include "nsIDTD.h"
#include "nsISupports.h"

Просмотреть файл

@ -32,11 +32,11 @@ static CTokenDeallocator gTokenKiller;
* @update gess9/10/98
*/
nsTagStack::nsTagStack(int aDefaultSize) {
mCapacity=aDefaultSize;
mCount=0;
#ifndef NS_DEBUG
mTags =new eHTMLTags[mCapacity];
#endif
mCapacity=aDefaultSize;
mCount=0;
nsCRT::zero(mTags,mCapacity*sizeof(eHTMLTags));
}

Просмотреть файл

@ -32,7 +32,7 @@
#include "nsWellFormedDTD.h"
#include "nsViewSourceHTML.h" //uncomment this to partially enable viewsource...
#undef rickgdebug
#define rickgdebug
#ifdef rickgdebug
#include "CRtfDTD.h"
#endif
@ -619,7 +619,7 @@ nsresult nsParser::Parse(fstream& aStream,PRBool aVerifyEnabled){
*/
nsresult nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString,PRBool aVerifyEnabled){
#ifdef rickgdebug
#ifdef _rickgdebug
{
fstream out("c:/temp/parseout.file",ios::trunc);
aSourceBuffer.DebugDump(out);
@ -770,8 +770,7 @@ nsParser::OnStatus(nsIURL* aURL, const PRUnichar* aMsg)
return result;
}
#undef _DEBUGDUMPFILE
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
fstream* gDumpFile;
#endif
@ -793,7 +792,7 @@ nsresult nsParser::OnStartBinding(nsIURL* aURL, const char *aSourceType){
mParserContext->mDTD=0;
mParserContext->mSourceType=aSourceType;
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
gDumpFile = new fstream("c:/temp/out.file",ios::trunc);
#endif
@ -856,7 +855,7 @@ nsresult nsParser::OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUin
nsString& theBuffer=mParserContext->mScanner->GetBuffer();
theBuffer.ToUCS2(theStartPos);
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
(*gDumpFile) << mParserContext->mTransferBuffer;
#endif
@ -889,7 +888,7 @@ nsresult nsParser::OnStopBinding(nsIURL* aURL, nsresult status, const PRUnichar*
mObserver->OnStopBinding(aURL, status, aMsg);
}
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
if(gDumpFile){
gDumpFile->close();
delete gDumpFile;

Просмотреть файл

@ -11,11 +11,11 @@
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/**
* MODULE NOTES:
* @update gess 4/8/98

Просмотреть файл

@ -24,8 +24,8 @@
*
*/
#ifndef NS_NAVHTMLDTD__
#define NS_NAVHTMLDTD__
#ifndef NS_RTFDTD__
#define NS_RTFDTD__
#include "nsIDTD.h"
#include "nsISupports.h"

Просмотреть файл

@ -32,11 +32,11 @@ static CTokenDeallocator gTokenKiller;
* @update gess9/10/98
*/
nsTagStack::nsTagStack(int aDefaultSize) {
mCapacity=aDefaultSize;
mCount=0;
#ifndef NS_DEBUG
mTags =new eHTMLTags[mCapacity];
#endif
mCapacity=aDefaultSize;
mCount=0;
nsCRT::zero(mTags,mCapacity*sizeof(eHTMLTags));
}

Просмотреть файл

@ -32,7 +32,7 @@
#include "nsWellFormedDTD.h"
#include "nsViewSourceHTML.h" //uncomment this to partially enable viewsource...
#undef rickgdebug
#define rickgdebug
#ifdef rickgdebug
#include "CRtfDTD.h"
#endif
@ -619,7 +619,7 @@ nsresult nsParser::Parse(fstream& aStream,PRBool aVerifyEnabled){
*/
nsresult nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString,PRBool aVerifyEnabled){
#ifdef rickgdebug
#ifdef _rickgdebug
{
fstream out("c:/temp/parseout.file",ios::trunc);
aSourceBuffer.DebugDump(out);
@ -770,8 +770,7 @@ nsParser::OnStatus(nsIURL* aURL, const PRUnichar* aMsg)
return result;
}
#undef _DEBUGDUMPFILE
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
fstream* gDumpFile;
#endif
@ -793,7 +792,7 @@ nsresult nsParser::OnStartBinding(nsIURL* aURL, const char *aSourceType){
mParserContext->mDTD=0;
mParserContext->mSourceType=aSourceType;
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
gDumpFile = new fstream("c:/temp/out.file",ios::trunc);
#endif
@ -856,7 +855,7 @@ nsresult nsParser::OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUin
nsString& theBuffer=mParserContext->mScanner->GetBuffer();
theBuffer.ToUCS2(theStartPos);
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
(*gDumpFile) << mParserContext->mTransferBuffer;
#endif
@ -889,7 +888,7 @@ nsresult nsParser::OnStopBinding(nsIURL* aURL, nsresult status, const PRUnichar*
mObserver->OnStopBinding(aURL, status, aMsg);
}
#ifdef _DEBUGDUMPFILE
#ifdef rickgdebug
if(gDumpFile){
gDumpFile->close();
delete gDumpFile;