mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Make HTML parser functions take const pointers
The 'cur' parameter of htmlParseDoc and htmlSAXParseDoc should be 'const xmlChar *'. Fixes bug 770650.
This commit is contained in:
parent
988a5a3b6b
commit
576912fa04
@ -6278,7 +6278,8 @@ htmlCreatePushParserCtxt(htmlSAXHandlerPtr sax, void *user_data,
|
||||
*/
|
||||
|
||||
htmlDocPtr
|
||||
htmlSAXParseDoc(xmlChar *cur, const char *encoding, htmlSAXHandlerPtr sax, void *userData) {
|
||||
htmlSAXParseDoc(const xmlChar *cur, const char *encoding,
|
||||
htmlSAXHandlerPtr sax, void *userData) {
|
||||
htmlDocPtr ret;
|
||||
htmlParserCtxtPtr ctxt;
|
||||
|
||||
@ -6317,7 +6318,7 @@ htmlSAXParseDoc(xmlChar *cur, const char *encoding, htmlSAXHandlerPtr sax, void
|
||||
*/
|
||||
|
||||
htmlDocPtr
|
||||
htmlParseDoc(xmlChar *cur, const char *encoding) {
|
||||
htmlParseDoc(const xmlChar *cur, const char *encoding) {
|
||||
return(htmlSAXParseDoc(cur, encoding, NULL, NULL));
|
||||
}
|
||||
|
||||
|
@ -115,12 +115,12 @@ XMLPUBFUN htmlParserCtxtPtr XMLCALL
|
||||
XMLPUBFUN int XMLCALL
|
||||
htmlParseDocument(htmlParserCtxtPtr ctxt);
|
||||
XMLPUBFUN htmlDocPtr XMLCALL
|
||||
htmlSAXParseDoc (xmlChar *cur,
|
||||
htmlSAXParseDoc (const xmlChar *cur,
|
||||
const char *encoding,
|
||||
htmlSAXHandlerPtr sax,
|
||||
void *userData);
|
||||
XMLPUBFUN htmlDocPtr XMLCALL
|
||||
htmlParseDoc (xmlChar *cur,
|
||||
htmlParseDoc (const xmlChar *cur,
|
||||
const char *encoding);
|
||||
XMLPUBFUN htmlDocPtr XMLCALL
|
||||
htmlSAXParseFile(const char *filename,
|
||||
|
Loading…
x
Reference in New Issue
Block a user