1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- parser.c parser.h parserInternals.h: fixed a couple of

interfaces for handling memory buffer input to const char *
  upon suggestion of JamesH.
Daniel
This commit is contained in:
Daniel Veillard
2001-05-16 10:57:35 +00:00
parent c3739e7233
commit fd7ddca8b2
6 changed files with 12 additions and 6 deletions

View File

@ -9630,7 +9630,7 @@ xmlSAXUserParseFile(xmlSAXHandlerPtr sax, void *user_data,
* Returns the new parser context or NULL
*/
xmlParserCtxtPtr
xmlCreateMemoryParserCtxt(char *buffer, int size) {
xmlCreateMemoryParserCtxt(const char *buffer, int size) {
xmlParserCtxtPtr ctxt;
xmlParserInputPtr input;
xmlParserInputBufferPtr buf;
@ -9745,7 +9745,7 @@ xmlDocPtr xmlRecoverMemory(char *buffer, int size) {
* Returns 0 in case of success or a error number otherwise
*/
int xmlSAXUserParseMemory(xmlSAXHandlerPtr sax, void *user_data,
char *buffer, int size) {
const char *buffer, int size) {
int ret = 0;
xmlParserCtxtPtr ctxt;
xmlSAXHandlerPtr oldsax = NULL;