1998-05-14 05:05:56 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "nsVoidArray.h"
|
1998-07-19 01:47:56 +04:00
|
|
|
#include "nsIWebShell.h"
|
1998-05-14 05:05:56 +04:00
|
|
|
#include "nsString.h"
|
1998-07-31 02:42:27 +04:00
|
|
|
#include "nsRepository.h"
|
|
|
|
#include "nsParserCIID.h"
|
|
|
|
|
|
|
|
#ifdef XP_PC
|
|
|
|
#define PARSER_DLL "raptorhtmlpars.dll"
|
|
|
|
#else
|
|
|
|
#define PARSER_DLL "libraptorhtmlpars.so"
|
|
|
|
#endif
|
1998-05-14 05:05:56 +04:00
|
|
|
|
1998-07-19 01:47:56 +04:00
|
|
|
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList, nsIWebShell * ww);
|
1998-05-14 05:05:56 +04:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
nsVoidArray * gWorkList = new nsVoidArray();
|
|
|
|
int i;
|
|
|
|
for (i = 1; i < argc; i++) {
|
|
|
|
gWorkList->AppendElement(new nsString(argv[i]));
|
|
|
|
}
|
1998-07-31 02:42:27 +04:00
|
|
|
|
|
|
|
static NS_DEFINE_IID(kCParserCID, NS_PARSER_IID);
|
1998-09-01 04:26:28 +04:00
|
|
|
nsRepository::RegisterFactory(kCParserCID, PARSER_DLL, PR_FALSE, PR_FALSE);
|
1998-07-31 02:42:27 +04:00
|
|
|
|
1998-05-15 02:16:51 +04:00
|
|
|
return DebugRobot(gWorkList, nsnull);
|
1998-05-14 05:05:56 +04:00
|
|
|
}
|
|
|
|
|