changed to preprocessor for code generation for tag & entity tables

cleanup tag and entity lookup apis


git-svn-id: svn://10.0.0.236/trunk@39926 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1999-07-18 00:12:32 +00:00
parent d329e12cb0
commit 82107c30bd
40 changed files with 1710 additions and 646 deletions

View File

@@ -26,6 +26,9 @@
#include "nsParserNode.h"
#include "nsWellFormedDTD.h"
#include "nsHTMLTags.h"
#include "nsHTMLEntities.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
@@ -62,11 +65,15 @@ nsParserFactory::nsParserFactory(const nsCID &aClass)
{
mRefCnt = 0;
mClassID = aClass;
nsHTMLTags::AddRefTable();
nsHTMLEntities::AddRefTable();
}
nsParserFactory::~nsParserFactory()
{
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
nsHTMLEntities::ReleaseTable();
nsHTMLTags::ReleaseTable();
}
nsresult nsParserFactory::QueryInterface(const nsIID &aIID,