MCPcopy Create free account
hub / github.com/Kitware/CMake / ignoreSectionProcessor

Function ignoreSectionProcessor

Utilities/cmexpat/lib/xmlparse.c:4722–4735  ·  view source on GitHub ↗

The idea here is to avoid using stack for each IGNORE section when the whole file is parsed with one call. */

Source from the content-addressed store, hash-verified

4720 the whole file is parsed with one call.
4721*/
4722static enum XML_Error PTRCALL
4723ignoreSectionProcessor(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.

Callers

nothing calls this directly

Calls 2

doIgnoreSectionFunction · 0.85
prologProcessorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…