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

Function parserInit

Utilities/cmexpat/lib/xmlparse.c:1536–1624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534}
1535
1536static void
1537parserInit(XML_Parser parser, const XML_Char *encodingName) {
1538 parser->m_processor = prologInitProcessor;
1539 XmlPrologStateInit(&parser->m_prologState);
1540 if (encodingName != NULL) {
1541 parser->m_protocolEncodingName = copyString(encodingName, parser);
1542 }
1543 parser->m_curBase = NULL;
1544 XmlInitEncoding(&parser->m_initEncoding, &parser->m_encoding, 0);
1545 parser->m_userData = NULL;
1546 parser->m_handlerArg = NULL;
1547 parser->m_startElementHandler = NULL;
1548 parser->m_endElementHandler = NULL;
1549 parser->m_characterDataHandler = NULL;
1550 parser->m_processingInstructionHandler = NULL;
1551 parser->m_commentHandler = NULL;
1552 parser->m_startCdataSectionHandler = NULL;
1553 parser->m_endCdataSectionHandler = NULL;
1554 parser->m_defaultHandler = NULL;
1555 parser->m_startDoctypeDeclHandler = NULL;
1556 parser->m_endDoctypeDeclHandler = NULL;
1557 parser->m_unparsedEntityDeclHandler = NULL;
1558 parser->m_notationDeclHandler = NULL;
1559 parser->m_startNamespaceDeclHandler = NULL;
1560 parser->m_endNamespaceDeclHandler = NULL;
1561 parser->m_notStandaloneHandler = NULL;
1562 parser->m_externalEntityRefHandler = NULL;
1563 parser->m_externalEntityRefHandlerArg = parser;
1564 parser->m_skippedEntityHandler = NULL;
1565 parser->m_elementDeclHandler = NULL;
1566 parser->m_attlistDeclHandler = NULL;
1567 parser->m_entityDeclHandler = NULL;
1568 parser->m_xmlDeclHandler = NULL;
1569 parser->m_bufferPtr = parser->m_buffer;
1570 parser->m_bufferEnd = parser->m_buffer;
1571 parser->m_parseEndByteIndex = 0;
1572 parser->m_parseEndPtr = NULL;
1573 parser->m_partialTokenBytesBefore = 0;
1574 parser->m_reparseDeferralEnabled = g_reparseDeferralEnabledDefault;
1575 parser->m_lastBufferRequestSize = 0;
1576 parser->m_declElementType = NULL;
1577 parser->m_declAttributeId = NULL;
1578 parser->m_declEntity = NULL;
1579 parser->m_doctypeName = NULL;
1580 parser->m_doctypeSysid = NULL;
1581 parser->m_doctypePubid = NULL;
1582 parser->m_declAttributeType = NULL;
1583 parser->m_declNotationName = NULL;
1584 parser->m_declNotationPublicId = NULL;
1585 parser->m_declAttributeIsCdata = XML_FALSE;
1586 parser->m_declAttributeIsId = XML_FALSE;
1587 memset(&parser->m_position, 0, sizeof(POSITION));
1588 parser->m_errorCode = XML_ERROR_NONE;
1589 parser->m_eventPtr = NULL;
1590 parser->m_eventEndPtr = NULL;
1591 parser->m_positionPtr = NULL;
1592 parser->m_openInternalEntities = NULL;
1593 parser->m_openAttributeEntities = NULL;

Callers 2

xmlparse.cFile · 0.85
XML_ParserResetFunction · 0.85

Calls 3

XmlPrologStateInitFunction · 0.85
copyStringFunction · 0.85
getDebugLevelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…