The idea here is to avoid using stack for each IGNORE section when the whole file is parsed with one call. */
| 4720 | the whole file is parsed with one call. |
| 4721 | */ |
| 4722 | static enum XML_Error PTRCALL |
| 4723 | ignoreSectionProcessor(XML_Parser parser, const char *start, const char *end, |
| 4724 | const char **endPtr) { |
| 4725 | enum XML_Error result |
| 4726 | = doIgnoreSection(parser, parser->m_encoding, &start, end, endPtr, |
| 4727 | (XML_Bool)! parser->m_parsingStatus.finalBuffer); |
| 4728 | if (result != XML_ERROR_NONE) |
| 4729 | return result; |
| 4730 | if (start) { |
| 4731 | parser->m_processor = prologProcessor; |
| 4732 | return prologProcessor(parser, start, end, endPtr); |
| 4733 | } |
| 4734 | return result; |
| 4735 | } |
| 4736 | |
| 4737 | /* startPtr gets set to non-null is the section is closed, and to null |
| 4738 | if the section is not yet closed. |
nothing calls this directly
no test coverage detected
searching dependent graphs…