nsresult rv = NS_NewHTMLParser(&parser); nsresult r=NS_NewHTMLParser(&parser);
nsresult rv = NS_NewParser(&parser); nsresult r=NS_NewParser(&parser);
void parseFile (const char* aFilename,int size){  //debug  //aFilename="s:\\ns\\raptor\\parser\\tests\\html\\home01.html";  //aFilename="c:\\temp\\sun\\test00000.html";  //aFilename="c:\\windows\\temp\\test.html";  aFilename="s:\\readHTML-VC\\test.html";  //aFilename="c:\\temp\\sun\\commentbug.html";  char filename[_MAX_PATH];  strcpy(filename,aFilename);  strcat(filename,".tokens");  {    nsIParser* parser;    nsresult rv = NS_NewHTMLParser(&parser);    nsresult r=NS_NewHTMLParser(&parser);    CHTMLContentSink theSink;    parser->setContentSink(&theSink);    parser->parse(aFilename);    parser->Release();  }  int failpos=0;  if(!compareFiles(aFilename,filename,failpos)) {    filelist << "FAILED: " << aFilename << "[" << failpos << "]" << endl;  }}