1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +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

@ -1,3 +1,8 @@
Fri Jul 27 10:03:56 EDT 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c include/libxml/parser.h: applied const patches from
Tom Moog #58002
Thu Jul 26 18:55:52 CEST 2001 Thomas Broyer <tbroyer@ltgt.net>
* xpath.c include/libxml/xpath{,Internals}.h: added a function

View File

@ -416,7 +416,7 @@ xmlChar * xmlStrncat (xmlChar *cur,
* Basic parsing Interfaces
*/
xmlDocPtr xmlParseDoc (xmlChar *cur);
xmlDocPtr xmlParseMemory (char *buffer,
xmlDocPtr xmlParseMemory (const char *buffer,
int size);
xmlDocPtr xmlParseFile (const char *filename);
int xmlSubstituteEntitiesDefault(int val);
@ -429,7 +429,7 @@ int xmlLineNumbersDefault (int val);
* Recovery mode
*/
xmlDocPtr xmlRecoverDoc (xmlChar *cur);
xmlDocPtr xmlRecoverMemory (char *buffer,
xmlDocPtr xmlRecoverMemory (const char *buffer,
int size);
xmlDocPtr xmlRecoverFile (const char *filename);
@ -449,7 +449,7 @@ int xmlSAXUserParseMemory (xmlSAXHandlerPtr sax,
const char *buffer,
int size);
xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax,
char *buffer,
const char *buffer,
int size,
int recovery);
xmlDocPtr xmlSAXParseFile (xmlSAXHandlerPtr sax,

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