зеркало из https://github.com/mozilla/gecko-dev.git
Call the test program outtest instead of Convert; fix some of the debug prints
This commit is contained in:
Родитель
ee712ef0b4
Коммит
7800f2f0cd
|
@ -95,13 +95,18 @@ nsresult HTML2text(int toHTML)
|
|||
rv = NS_NewNavHTMLDTD(&dtd);
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
printf("Couldn't create new content sink: 0x%x\n", rv);
|
||||
printf("Couldn't create new HTML DTD: 0x%x\n", rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
parser->RegisterDTD(dtd);
|
||||
|
||||
parser->Parse(inString, 0, "text/html", PR_FALSE, PR_TRUE);
|
||||
rv = parser->Parse(inString, 0, "text/html", PR_FALSE, PR_TRUE);
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
printf("Parse() failed! 0x%x\n", rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
printf("Output string is: %s\n-------------------- \n",
|
||||
outString.ToNewCString());
|
||||
|
|
|
@ -22,7 +22,7 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = Convert
|
||||
PROGRAM = outtest
|
||||
|
||||
CPPSRCS = \
|
||||
Convert.cpp \
|
||||
|
|
|
@ -95,13 +95,18 @@ nsresult HTML2text(int toHTML)
|
|||
rv = NS_NewNavHTMLDTD(&dtd);
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
printf("Couldn't create new content sink: 0x%x\n", rv);
|
||||
printf("Couldn't create new HTML DTD: 0x%x\n", rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
parser->RegisterDTD(dtd);
|
||||
|
||||
parser->Parse(inString, 0, "text/html", PR_FALSE, PR_TRUE);
|
||||
rv = parser->Parse(inString, 0, "text/html", PR_FALSE, PR_TRUE);
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
printf("Parse() failed! 0x%x\n", rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
printf("Output string is: %s\n-------------------- \n",
|
||||
outString.ToNewCString());
|
||||
|
|
|
@ -22,7 +22,7 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = Convert
|
||||
PROGRAM = outtest
|
||||
|
||||
CPPSRCS = \
|
||||
Convert.cpp \
|
||||
|
|
Загрузка…
Ссылка в новой задаче