* xmlCtxtResetLastError: * @ctx: an XML parser context * * Cleanup the last global error registered. For parsing error * this does not change the well-formedness result. */
| 995 | * this does not change the well-formedness result. |
| 996 | */ |
| 997 | void |
| 998 | xmlCtxtResetLastError(void *ctx) |
| 999 | { |
| 1000 | xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; |
| 1001 | |
| 1002 | if (ctxt == NULL) |
| 1003 | return; |
| 1004 | ctxt->errNo = XML_ERR_OK; |
| 1005 | if (ctxt->lastError.code == XML_ERR_OK) |
| 1006 | return; |
| 1007 | xmlResetError(&ctxt->lastError); |
| 1008 | } |
| 1009 | |
| 1010 | /** |
| 1011 | * xmlCopyError: |
nothing calls this directly
no test coverage detected