* xmlVErrMemory: * @ctxt: an XML validation parser context * @extra: extra information * * Handle an out of memory error */
| 51 | * Handle an out of memory error |
| 52 | */ |
| 53 | static void |
| 54 | xmlVErrMemory(xmlValidCtxtPtr ctxt) |
| 55 | { |
| 56 | if (ctxt != NULL) { |
| 57 | if (ctxt->flags & XML_VCTXT_USE_PCTXT) { |
| 58 | xmlCtxtErrMemory(ctxt->userData); |
| 59 | } else { |
| 60 | xmlRaiseMemoryError(NULL, ctxt->error, ctxt->userData, |
| 61 | XML_FROM_VALID, NULL); |
| 62 | } |
| 63 | } else { |
| 64 | xmlRaiseMemoryError(NULL, NULL, NULL, XML_FROM_VALID, NULL); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | static void |
| 69 | xmlDoErrValid(xmlValidCtxtPtr ctxt, xmlNodePtr node, |
no test coverage detected