* xmlTextWriterCloseDocCallback: * @context: the xmlBufferPtr * * Close callback for the xmlOutputBuffer with target xmlBuffer * * Returns -1, 0, 1 */
| 4462 | * Returns -1, 0, 1 |
| 4463 | */ |
| 4464 | static int |
| 4465 | xmlTextWriterCloseDocCallback(void *context) |
| 4466 | { |
| 4467 | xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) context; |
| 4468 | int rc; |
| 4469 | |
| 4470 | if ((rc = xmlParseChunk(ctxt, NULL, 0, 1)) != 0) { |
| 4471 | xmlWriterErrMsgInt(NULL, XML_ERR_INTERNAL_ERROR, |
| 4472 | "xmlTextWriterCloseDocCallback : XML error %d !\n", |
| 4473 | rc); |
| 4474 | return -1; |
| 4475 | } |
| 4476 | |
| 4477 | return 0; |
| 4478 | } |
| 4479 | |
| 4480 | /** |
| 4481 | * xmlTextWriterVSprintf: |
nothing calls this directly
no test coverage detected