| 4403 | #ifdef XML_DTD |
| 4404 | |
| 4405 | static enum XML_Error PTRCALL |
| 4406 | externalParEntInitProcessor(XML_Parser parser, const char *s, const char *end, |
| 4407 | const char **nextPtr) { |
| 4408 | enum XML_Error result = initializeEncoding(parser); |
| 4409 | if (result != XML_ERROR_NONE) |
| 4410 | return result; |
| 4411 | |
| 4412 | /* we know now that XML_Parse(Buffer) has been called, |
| 4413 | so we consider the external parameter entity read */ |
| 4414 | parser->m_dtd->paramEntityRead = XML_TRUE; |
| 4415 | |
| 4416 | if (parser->m_prologState.inEntityValue) { |
| 4417 | parser->m_processor = entityValueInitProcessor; |
| 4418 | return entityValueInitProcessor(parser, s, end, nextPtr); |
| 4419 | } else { |
| 4420 | parser->m_processor = externalParEntProcessor; |
| 4421 | return externalParEntProcessor(parser, s, end, nextPtr); |
| 4422 | } |
| 4423 | } |
| 4424 | |
| 4425 | static enum XML_Error PTRCALL |
| 4426 | entityValueInitProcessor(XML_Parser parser, const char *s, const char *end, |
nothing calls this directly
no test coverage detected