exports htmlNewParserCtxt() as Michael Day pointed out this is needed to
* HTMLparser.c include/libxml/HTMLparser.h: exports htmlNewParserCtxt()
as Michael Day pointed out this is needed to use htmlCtxtRead*()
Daniel
diff --git a/ChangeLog b/ChangeLog
index 452c15e..c61831f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 21 08:53:06 CEST 2006 Daniel Veillard <daniel@veillard.com>
+
+ * HTMLparser.c include/libxml/HTMLparser.h: exports htmlNewParserCtxt()
+ as Michael Day pointed out this is needed to use htmlCtxtRead*()
+
Tue Sep 19 14:42:59 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parser.c: applied patch from Ben Darnell on #321545, I could not
diff --git a/HTMLparser.c b/HTMLparser.c
index 2ceef16..02692b3 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -4261,10 +4261,10 @@
*
* Allocate and initialize a new parser context.
*
- * Returns the xmlParserCtxtPtr or NULL
+ * Returns the htmlParserCtxtPtr or NULL in case of allocation error
*/
-static htmlParserCtxtPtr
+htmlParserCtxtPtr
htmlNewParserCtxt(void)
{
xmlParserCtxtPtr ctxt;
diff --git a/include/libxml/HTMLparser.h b/include/libxml/HTMLparser.h
index 8477efb..05905e4 100644
--- a/include/libxml/HTMLparser.h
+++ b/include/libxml/HTMLparser.h
@@ -106,6 +106,9 @@
htmlParseElement(htmlParserCtxtPtr ctxt);
XMLPUBFUN htmlParserCtxtPtr XMLCALL
+ htmlNewParserCtxt(void);
+
+XMLPUBFUN htmlParserCtxtPtr XMLCALL
htmlCreateMemoryParserCtxt(const char *buffer,
int size);