From 34c647cfae90c70005fd133f3a431e52c55b27f6 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 21 Sep 2006 06:53:59 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ HTMLparser.c | 4 ++-- include/libxml/HTMLparser.h | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 452c15e4..c61831f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 21 08:53:06 CEST 2006 Daniel Veillard + + * 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 * parser.c: applied patch from Ben Darnell on #321545, I could not diff --git a/HTMLparser.c b/HTMLparser.c index 2ceef16e..02692b38 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -4261,10 +4261,10 @@ htmlFreeParserCtxt(htmlParserCtxtPtr ctxt) * * 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 8477efbb..05905e4b 100644 --- a/include/libxml/HTMLparser.h +++ b/include/libxml/HTMLparser.h @@ -105,6 +105,9 @@ XMLPUBFUN int XMLCALL XMLPUBFUN void XMLCALL htmlParseElement(htmlParserCtxtPtr ctxt); +XMLPUBFUN htmlParserCtxtPtr XMLCALL + htmlNewParserCtxt(void); + XMLPUBFUN htmlParserCtxtPtr XMLCALL htmlCreateMemoryParserCtxt(const char *buffer, int size);