From 98631882f9c2a93eb65392080d18393aa7bef590 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Sat, 27 Feb 1999 08:04:46 +0000 Subject: [PATCH] - Add expat to the windows build only... - Changed nsParser such that nsExpatDTD gets added to the doubly ended queue of DTDs instead of nsWellFormedDTD if EXPAT is #define'd. git-svn-id: svn://10.0.0.236/trunk@22346 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/makefile.win | 9 ++++++++- mozilla/htmlparser/src/nsParser.cpp | 5 +++++ mozilla/parser/htmlparser/src/makefile.win | 9 ++++++++- mozilla/parser/htmlparser/src/nsParser.cpp | 5 +++++ 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/mozilla/htmlparser/src/makefile.win b/mozilla/htmlparser/src/makefile.win index e80769379e9..24972b41bdd 100644 --- a/mozilla/htmlparser/src/makefile.win +++ b/mozilla/htmlparser/src/makefile.win @@ -27,6 +27,7 @@ CPPSRCS= \ nsDTDUtils.cpp \ nsHTMLTokenizer.cpp \ nsXMLTokenizer.cpp \ + nsExpatTokenizer.cpp \ nsElementTable.cpp \ CNavDTD.cpp \ COtherDTD.cpp \ @@ -49,6 +50,7 @@ CPPSRCS= \ nsWellFormedDTD.cpp \ nsViewSourceHTML.cpp \ nsXIFDTD.cpp \ + nsExpatDTD.cpp \ prstrm.cpp \ $(NULL) @@ -56,6 +58,7 @@ CPP_OBJS= \ .\$(OBJDIR)\nsDTDUtils.obj \ .\$(OBJDIR)\nsHTMLTokenizer.obj \ .\$(OBJDIR)\nsXMLTokenizer.obj \ + .\$(OBJDIR)\nsExpatTokenizer.obj \ .\$(OBJDIR)\nsElementTable.obj \ .\$(OBJDIR)\CNavDTD.obj \ .\$(OBJDIR)\COtherDTD.obj \ @@ -78,12 +81,14 @@ CPP_OBJS= \ .\$(OBJDIR)\nsWellFormedDTD.obj \ .\$(OBJDIR)\nsViewSourceHTML.obj \ .\$(OBJDIR)\nsXIFDTD.obj \ + .\$(OBJDIR)\nsExpatDTD.obj \ .\$(OBJDIR)\prstrm.obj \ $(NULL) EXPORTS= \ nshtmlpars.h \ nsITokenizer.h \ + nsIExpatTokenizer.h \ nsIContentSink.h \ nsIHTMLContentSink.h \ nsILoggingSink.h \ @@ -103,6 +108,7 @@ EXPORTS= \ COtherDTD.h \ nsIDTD.h \ nsXIFDTD.h \ + nsExpatDTD.h \ nsParserCIID.h \ $(NULL) @@ -110,7 +116,7 @@ EXTRA_EXPORTS= \ nsHTMLTags.h \ $(NULL) -LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\netlib -I$(PUBLIC)\uconv +LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\netlib -I$(PUBLIC)\uconv -I$(PUBLIC)\expat MAKE_OBJ_TYPE = DLL DLLNAME = raptorhtmlpars @@ -126,6 +132,7 @@ LLIBS= \ $(DIST)\lib\xpcom32.lib \ $(DIST)\lib\raptorbase.lib \ $(DIST)\lib\libplc21.lib \ + $(DIST)\lib\expat.lib \ $(LIBNSPR) !ifdef MOZ_NO_DEBUG_RTL diff --git a/mozilla/htmlparser/src/nsParser.cpp b/mozilla/htmlparser/src/nsParser.cpp index 2d6b29a8d6d..66776d39a51 100644 --- a/mozilla/htmlparser/src/nsParser.cpp +++ b/mozilla/htmlparser/src/nsParser.cpp @@ -90,7 +90,12 @@ public: nsIDTD* theDTD; +#ifndef EXPAT NS_NewWellFormed_DTD(&theDTD); +#else + NS_New_Expat_DTD(&theDTD); +#endif + RegisterDTD(theDTD); NS_NewNavHTMLDTD(&theDTD); //do this as the default HTML DTD... diff --git a/mozilla/parser/htmlparser/src/makefile.win b/mozilla/parser/htmlparser/src/makefile.win index e80769379e9..24972b41bdd 100644 --- a/mozilla/parser/htmlparser/src/makefile.win +++ b/mozilla/parser/htmlparser/src/makefile.win @@ -27,6 +27,7 @@ CPPSRCS= \ nsDTDUtils.cpp \ nsHTMLTokenizer.cpp \ nsXMLTokenizer.cpp \ + nsExpatTokenizer.cpp \ nsElementTable.cpp \ CNavDTD.cpp \ COtherDTD.cpp \ @@ -49,6 +50,7 @@ CPPSRCS= \ nsWellFormedDTD.cpp \ nsViewSourceHTML.cpp \ nsXIFDTD.cpp \ + nsExpatDTD.cpp \ prstrm.cpp \ $(NULL) @@ -56,6 +58,7 @@ CPP_OBJS= \ .\$(OBJDIR)\nsDTDUtils.obj \ .\$(OBJDIR)\nsHTMLTokenizer.obj \ .\$(OBJDIR)\nsXMLTokenizer.obj \ + .\$(OBJDIR)\nsExpatTokenizer.obj \ .\$(OBJDIR)\nsElementTable.obj \ .\$(OBJDIR)\CNavDTD.obj \ .\$(OBJDIR)\COtherDTD.obj \ @@ -78,12 +81,14 @@ CPP_OBJS= \ .\$(OBJDIR)\nsWellFormedDTD.obj \ .\$(OBJDIR)\nsViewSourceHTML.obj \ .\$(OBJDIR)\nsXIFDTD.obj \ + .\$(OBJDIR)\nsExpatDTD.obj \ .\$(OBJDIR)\prstrm.obj \ $(NULL) EXPORTS= \ nshtmlpars.h \ nsITokenizer.h \ + nsIExpatTokenizer.h \ nsIContentSink.h \ nsIHTMLContentSink.h \ nsILoggingSink.h \ @@ -103,6 +108,7 @@ EXPORTS= \ COtherDTD.h \ nsIDTD.h \ nsXIFDTD.h \ + nsExpatDTD.h \ nsParserCIID.h \ $(NULL) @@ -110,7 +116,7 @@ EXTRA_EXPORTS= \ nsHTMLTags.h \ $(NULL) -LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\netlib -I$(PUBLIC)\uconv +LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\netlib -I$(PUBLIC)\uconv -I$(PUBLIC)\expat MAKE_OBJ_TYPE = DLL DLLNAME = raptorhtmlpars @@ -126,6 +132,7 @@ LLIBS= \ $(DIST)\lib\xpcom32.lib \ $(DIST)\lib\raptorbase.lib \ $(DIST)\lib\libplc21.lib \ + $(DIST)\lib\expat.lib \ $(LIBNSPR) !ifdef MOZ_NO_DEBUG_RTL diff --git a/mozilla/parser/htmlparser/src/nsParser.cpp b/mozilla/parser/htmlparser/src/nsParser.cpp index 2d6b29a8d6d..66776d39a51 100644 --- a/mozilla/parser/htmlparser/src/nsParser.cpp +++ b/mozilla/parser/htmlparser/src/nsParser.cpp @@ -90,7 +90,12 @@ public: nsIDTD* theDTD; +#ifndef EXPAT NS_NewWellFormed_DTD(&theDTD); +#else + NS_New_Expat_DTD(&theDTD); +#endif + RegisterDTD(theDTD); NS_NewNavHTMLDTD(&theDTD); //do this as the default HTML DTD...