| 3458 | #ifdef XML_DTD |
| 3459 | |
| 3460 | static enum XML_Error PTRCALL |
| 3461 | externalParEntInitProcessor(XML_Parser parser, |
| 3462 | const char *s, |
| 3463 | const char *end, |
| 3464 | const char **nextPtr) |
| 3465 | { |
| 3466 | enum XML_Error result = initializeEncoding(parser); |
| 3467 | if (result != XML_ERROR_NONE) |
| 3468 | return result; |
| 3469 | |
| 3470 | /* we know now that XML_Parse(Buffer) has been called, |
| 3471 | so we consider the external parameter entity read */ |
| 3472 | _dtd->paramEntityRead = XML_TRUE; |
| 3473 | |
| 3474 | if (prologState.inEntityValue) { |
| 3475 | processor = entityValueInitProcessor; |
| 3476 | return entityValueInitProcessor(parser, s, end, nextPtr); |
| 3477 | } |
| 3478 | else { |
| 3479 | processor = externalParEntProcessor; |
| 3480 | return externalParEntProcessor(parser, s, end, nextPtr); |
| 3481 | } |
| 3482 | } |
| 3483 | |
| 3484 | static enum XML_Error PTRCALL |
| 3485 | entityValueInitProcessor(XML_Parser parser, |
nothing calls this directly
no test coverage detected