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

Function getRootParserOf

Utilities/cmexpat/lib/xmlparse.c:8656–8669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8654#endif /* XML_GE == 1 */
8655
8656static XML_Parser
8657getRootParserOf(XML_Parser parser, unsigned int *outLevelDiff) {
8658 XML_Parser rootParser = parser;
8659 unsigned int stepsTakenUpwards = 0;
8660 while (rootParser->m_parentParser) {
8661 rootParser = rootParser->m_parentParser;
8662 stepsTakenUpwards++;
8663 }
8664 assert(! rootParser->m_parentParser);
8665 if (outLevelDiff != NULL) {
8666 *outLevelDiff = stepsTakenUpwards;
8667 }
8668 return rootParser;
8669}
8670
8671#if XML_GE == 1
8672

Callers 10

expat_mallocFunction · 0.85
expat_freeFunction · 0.85
expat_reallocFunction · 0.85
get_hash_secret_saltFunction · 0.85
xmlparse.cFile · 0.85
XML_SetHashSaltFunction · 0.85
accountingReportStatsFunction · 0.85
accountingDiffToleratedFunction · 0.85
entityTrackingOnOpenFunction · 0.85
entityTrackingOnCloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…