diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-11-21 00:28:39 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-11-21 00:28:39 +0000 |
commit | 1d913863130a17a638db69c2c50f89e5b0d4aae4 (patch) | |
tree | f42ce1a7a2d3a7cff9e58bd73ddb401689281b12 /xmlwriter.c | |
parent | c59d826ef94d75622421ae8f47e54a8b38ad6123 (diff) | |
download | android_external_libxml2-1d913863130a17a638db69c2c50f89e5b0d4aae4.tar.gz android_external_libxml2-1d913863130a17a638db69c2c50f89e5b0d4aae4.tar.bz2 android_external_libxml2-1d913863130a17a638db69c2c50f89e5b0d4aae4.zip |
applied patch from Robert Stepanek to start import os schemas support,
* xmlschemas.c: applied patch from Robert Stepanek to start
import os schemas support, cleaned up stuff and the patch.
* test/schemas/import0_0.* result/schemas/import0_0_0*: added test
to regression, fixed a few regressions too.
Daniel
Diffstat (limited to 'xmlwriter.c')
-rw-r--r-- | xmlwriter.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/xmlwriter.c b/xmlwriter.c index e81eae0f..fb5acb47 100644 --- a/xmlwriter.c +++ b/xmlwriter.c @@ -217,7 +217,8 @@ xmlNewTextWriterMemory(xmlBufferPtr buf, int compression ATTRIBUTE_UNUSED) * Returns the new xmlTextWriterPtr or NULL in case of error */ xmlTextWriterPtr -xmlNewTextWriterPushParser(xmlParserCtxtPtr ctxt, int compression) +xmlNewTextWriterPushParser(xmlParserCtxtPtr ctxt, + int compression ATTRIBUTE_UNUSED) { xmlTextWriterPtr ret; xmlOutputBufferPtr out; @@ -273,7 +274,7 @@ xmlNewTextWriterDoc(xmlDocPtr * doc, int compression) return NULL; } - ctxt->myDoc = xmlNewDoc(XML_DEFAULT_VERSION); + ctxt->myDoc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION); if (ctxt->myDoc == NULL) { xmlFreeParserCtxt(ctxt); xmlGenericError(xmlGenericErrorContext, @@ -552,6 +553,7 @@ xmlTextWriterEndDocument(xmlTextWriterPtr writer) * xmlTextWriterWriteFormatComment: * @writer: the xmlTextWriterPtr * @format: format string (see printf) + * @...: extra parameters for the format * * Write an xml comment. * @@ -929,6 +931,7 @@ xmlTextWriterFullEndElement(xmlTextWriterPtr writer) * xmlTextWriterWriteFormatRaw: * @writer: the xmlTextWriterPtr * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted raw xml text. * @@ -1066,6 +1069,7 @@ xmlTextWriterWriteRaw(xmlTextWriterPtr writer, const xmlChar * content) * xmlTextWriterWriteFormatString: * @writer: the xmlTextWriterPtr * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted xml text. * @@ -1644,6 +1648,7 @@ xmlTextWriterEndAttribute(xmlTextWriterPtr writer) * @writer: the xmlTextWriterPtr * @name: attribute name * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted xml attribute. * @@ -1738,6 +1743,7 @@ xmlTextWriterWriteAttribute(xmlTextWriterPtr writer, const xmlChar * name, * @name: attribute local name * @namespaceURI: namespace URI * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted xml attribute.with namespace support * @@ -1859,6 +1865,7 @@ xmlTextWriterWriteAttributeNS(xmlTextWriterPtr writer, * @writer: the xmlTextWriterPtr * @name: element name * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted xml element. * @@ -1953,6 +1960,7 @@ xmlTextWriterWriteElement(xmlTextWriterPtr writer, const xmlChar * name, * @name: element local name * @namespaceURI: namespace URI * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted xml element with namespace support. * @@ -2193,6 +2201,7 @@ xmlTextWriterEndPI(xmlTextWriterPtr writer) * @writer: the xmlTextWriterPtr * @target: PI target * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted PI. * @@ -2401,6 +2410,7 @@ xmlTextWriterEndCDATA(xmlTextWriterPtr writer) * xmlTextWriterWriteFormatCDATA: * @writer: the xmlTextWriterPtr * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted xml CDATA. * @@ -2655,6 +2665,7 @@ xmlTextWriterEndDTD(xmlTextWriterPtr writer) * @pubid: the public identifier, which is an alternative to the system identifier * @sysid: the system identifier, which is the URI of the DTD * @format: format string (see printf) + * @...: extra parameters for the format * * Write a DTD with a formatted markup declarations part. * @@ -2840,6 +2851,7 @@ xmlTextWriterStartDTDElement(xmlTextWriterPtr writer, const xmlChar * name) * @writer: the xmlTextWriterPtr * @name: the name of the DTD element * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted DTD element. * @@ -3024,6 +3036,7 @@ xmlTextWriterStartDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name) * @writer: the xmlTextWriterPtr * @name: the name of the DTD ATTLIST * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted DTD ATTLIST. * @@ -3219,6 +3232,7 @@ xmlTextWriterStartDTDEntity(xmlTextWriterPtr writer, * @pe: TRUE if this is a parameter entity, FALSE if not * @name: the name of the DTD entity * @format: format string (see printf) + * @...: extra parameters for the format * * Write a formatted DTD internal entity. * @@ -3795,7 +3809,7 @@ xmlTextWriterWriteDocCallback(void *context, const xmlChar * str, int len) xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) context; int rc; - if ((rc = xmlParseChunk(ctxt, str, len, 0)) != 0) { + if ((rc = xmlParseChunk(ctxt, (const char *) str, len, 0)) != 0) { xmlGenericError(xmlGenericErrorContext, "xmlTextWriterWriteDocCallback : XML error %d !\n", rc); |