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

@ -1,3 +1,9 @@
Wed May 16 12:55:48 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c parser.h parserInternals.h: fixed a couple of
interfaces for handling memory buffer input to const char *
upon suggestion of JamesH.
Tue May 15 17:22:27 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr> Tue May 15 17:22:27 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* configure.in: LoTR sent a patch fixing the previous commit * configure.in: LoTR sent a patch fixing the previous commit

View File

@ -402,7 +402,7 @@ int xmlSAXUserParseFile (xmlSAXHandlerPtr sax,
const char *filename); const char *filename);
int xmlSAXUserParseMemory (xmlSAXHandlerPtr sax, int xmlSAXUserParseMemory (xmlSAXHandlerPtr sax,
void *user_data, void *user_data,
char *buffer, const char *buffer,
int size); int size);
xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax, xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax,
char *buffer, char *buffer,

View File

@ -137,7 +137,7 @@ int xmlIsChar (int c);
*/ */
xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur); xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur);
xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename); xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename);
xmlParserCtxtPtr xmlCreateMemoryParserCtxt(char *buffer, xmlParserCtxtPtr xmlCreateMemoryParserCtxt(const char *buffer,
int size); int size);
xmlParserCtxtPtr xmlNewParserCtxt (void); xmlParserCtxtPtr xmlNewParserCtxt (void);
xmlParserCtxtPtr xmlCreateEntityParserCtxt(const xmlChar *URL, xmlParserCtxtPtr xmlCreateEntityParserCtxt(const xmlChar *URL,

View File

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

View File

@ -402,7 +402,7 @@ int xmlSAXUserParseFile (xmlSAXHandlerPtr sax,
const char *filename); const char *filename);
int xmlSAXUserParseMemory (xmlSAXHandlerPtr sax, int xmlSAXUserParseMemory (xmlSAXHandlerPtr sax,
void *user_data, void *user_data,
char *buffer, const char *buffer,
int size); int size);
xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax, xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax,
char *buffer, char *buffer,

View File

@ -137,7 +137,7 @@ int xmlIsChar (int c);
*/ */
xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur); xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur);
xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename); xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename);
xmlParserCtxtPtr xmlCreateMemoryParserCtxt(char *buffer, xmlParserCtxtPtr xmlCreateMemoryParserCtxt(const char *buffer,
int size); int size);
xmlParserCtxtPtr xmlNewParserCtxt (void); xmlParserCtxtPtr xmlNewParserCtxt (void);
xmlParserCtxtPtr xmlCreateEntityParserCtxt(const xmlChar *URL, xmlParserCtxtPtr xmlCreateEntityParserCtxt(const xmlChar *URL,