| 4988 | #ifdef XML_DTD |
| 4989 | |
| 4990 | static enum XML_Error PTRCALL |
| 4991 | externalParEntInitProcessor(XML_Parser parser, const char *s, const char *end, |
| 4992 | const char **nextPtr) { |
| 4993 | enum XML_Error result = initializeEncoding(parser); |
| 4994 | if (result != XML_ERROR_NONE) |
| 4995 | return result; |
| 4996 | |
| 4997 | /* we know now that XML_Parse(Buffer) has been called, |
| 4998 | so we consider the external parameter entity read */ |
| 4999 | parser->m_dtd->paramEntityRead = XML_TRUE; |
| 5000 | |
| 5001 | if (parser->m_prologState.inEntityValue) { |
| 5002 | parser->m_processor = entityValueInitProcessor; |
| 5003 | return entityValueInitProcessor(parser, s, end, nextPtr); |
| 5004 | } else { |
| 5005 | parser->m_processor = externalParEntProcessor; |
| 5006 | return externalParEntProcessor(parser, s, end, nextPtr); |
| 5007 | } |
| 5008 | } |
| 5009 | |
| 5010 | static enum XML_Error PTRCALL |
| 5011 | entityValueInitProcessor(XML_Parser parser, const char *s, const char *end, |
nothing calls this directly
no test coverage detected
searching dependent graphs…