Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsParserModule.cpp File Reference
#include "nsIAtom.h"
#include "nsString.h"
#include "nspr.h"
#include "nsCOMPtr.h"
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsParserCIID.h"
#include "nsParser.h"
#include "CNavDTD.h"
#include "COtherDTD.h"
#include "nsHTMLEntities.h"
#include "nsHTMLTokenizer.h"
#include "nsElementTable.h"
#include "nsParserService.h"
#include "nsSAXAttributes.h"
#include "nsSAXLocator.h"
#include "nsSAXXMLReader.h"

Go to the source code of this file.

Functions

 Initialize (nsIModule *aSelf)
 Shutdown (nsIModule *aSelf)

Variables

static const nsModuleComponentInfo gComponents []
static PRBool gInitialized = PR_FALSE

Function Documentation

Initialize ( nsIModule aSelf)

Definition at line 130 of file nsParserModule.cpp.

{
  if (!gInitialized) {
    nsresult rv = nsHTMLTags::AddRefTable();
    NS_ENSURE_SUCCESS(rv, rv);

    rv = nsHTMLEntities::AddRefTable();
    if (NS_FAILED(rv)) {
      nsHTMLTags::ReleaseTable();
      return rv;
    }
#ifdef NS_DEBUG
    CheckElementTable();
#endif
    CNewlineToken::AllocNewline();
    gInitialized = PR_TRUE;
  }

  return nsParser::Init();
}

Here is the call graph for this function:

Shutdown ( nsIModule aSelf)

Variable Documentation

Definition at line 87 of file nsParserModule.cpp.

Definition at line 127 of file nsParserModule.cpp.