| 401 | return (ctxt->nodeNr++); |
| 402 | } |
| 403 | static xmlNodePtr |
| 404 | nodeVPop(xmlValidCtxtPtr ctxt) |
| 405 | { |
| 406 | xmlNodePtr ret; |
| 407 | |
| 408 | if (ctxt->nodeNr <= 0) |
| 409 | return (NULL); |
| 410 | ctxt->nodeNr--; |
| 411 | if (ctxt->nodeNr > 0) |
| 412 | ctxt->node = ctxt->nodeTab[ctxt->nodeNr - 1]; |
| 413 | else |
| 414 | ctxt->node = NULL; |
| 415 | ret = ctxt->nodeTab[ctxt->nodeNr]; |
| 416 | ctxt->nodeTab[ctxt->nodeNr] = NULL; |
| 417 | return (ret); |
| 418 | } |
| 419 | |
| 420 | /* TODO: use hash table for accesses to elem and attribute definitions */ |
| 421 |
no outgoing calls
no test coverage detected