XPCOM'ing the parser. Use repository to get a parser now.

This commit is contained in:
spider@netscape.com
1998-07-30 22:42:27 +00:00
parent 70b086d0c2
commit 331ec5cb13
32 changed files with 742 additions and 74 deletions

View File

@@ -2,6 +2,14 @@
#include "nsVoidArray.h"
#include "nsIWebShell.h"
#include "nsString.h"
#include "nsRepository.h"
#include "nsParserCIID.h"
#ifdef XP_PC
#define PARSER_DLL "raptorhtmlpars.dll"
#else
#define PARSER_DLL "libraptorhtmlpars.so"
#endif
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList, nsIWebShell * ww);
@@ -12,6 +20,10 @@ int main(int argc, char **argv)
for (i = 1; i < argc; i++) {
gWorkList->AppendElement(new nsString(argv[i]));
}
static NS_DEFINE_IID(kCParserCID, NS_PARSER_IID);
NSRepository::RegisterFactory(kCParserCID, PARSER_DLL, PR_FALSE, PR_FALSE);
return DebugRobot(gWorkList, nsnull);
}