mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
applied const patches from Tom Moog #58002 Daniel
* parser.c include/libxml/parser.h: applied const patches from Tom Moog #58002 Daniel
This commit is contained in:
7
parser.c
7
parser.c
@ -9861,7 +9861,8 @@ xmlCreateMemoryParserCtxt(const char *buffer, int size) {
|
||||
* Returns the resulting document tree
|
||||
*/
|
||||
xmlDocPtr
|
||||
xmlSAXParseMemory(xmlSAXHandlerPtr sax, char *buffer, int size, int recovery) {
|
||||
xmlSAXParseMemory(xmlSAXHandlerPtr sax, const char *buffer,
|
||||
int size, int recovery) {
|
||||
xmlDocPtr ret;
|
||||
xmlParserCtxtPtr ctxt;
|
||||
|
||||
@ -9896,7 +9897,7 @@ xmlSAXParseMemory(xmlSAXHandlerPtr sax, char *buffer, int size, int recovery) {
|
||||
* Returns the resulting document tree
|
||||
*/
|
||||
|
||||
xmlDocPtr xmlParseMemory(char *buffer, int size) {
|
||||
xmlDocPtr xmlParseMemory(const char *buffer, int size) {
|
||||
return(xmlSAXParseMemory(NULL, buffer, size, 0));
|
||||
}
|
||||
|
||||
@ -9911,7 +9912,7 @@ xmlDocPtr xmlParseMemory(char *buffer, int size) {
|
||||
* Returns the resulting document tree
|
||||
*/
|
||||
|
||||
xmlDocPtr xmlRecoverMemory(char *buffer, int size) {
|
||||
xmlDocPtr xmlRecoverMemory(const char *buffer, int size) {
|
||||
return(xmlSAXParseMemory(NULL, buffer, size, 1));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user