1
0
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:
Daniel Veillard
2001-07-26 20:05:51 +00:00
parent 951895369a
commit 50822cb62b
3 changed files with 12 additions and 6 deletions

View File

@ -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));
}