| 800 | } |
| 801 | |
| 802 | static void |
| 803 | parserInit(XML_Parser parser, const XML_Char *encodingName) |
| 804 | { |
| 805 | processor = prologInitProcessor; |
| 806 | XmlPrologStateInit(&prologState); |
| 807 | protocolEncodingName = (encodingName != NULL |
| 808 | ? poolCopyString(&tempPool, encodingName) |
| 809 | : NULL); |
| 810 | curBase = NULL; |
| 811 | XmlInitEncoding(&initEncoding, &encoding, 0); |
| 812 | userData = NULL; |
| 813 | handlerArg = NULL; |
| 814 | startElementHandler = NULL; |
| 815 | endElementHandler = NULL; |
| 816 | characterDataHandler = NULL; |
| 817 | processingInstructionHandler = NULL; |
| 818 | commentHandler = NULL; |
| 819 | startCdataSectionHandler = NULL; |
| 820 | endCdataSectionHandler = NULL; |
| 821 | defaultHandler = NULL; |
| 822 | startDoctypeDeclHandler = NULL; |
| 823 | endDoctypeDeclHandler = NULL; |
| 824 | unparsedEntityDeclHandler = NULL; |
| 825 | notationDeclHandler = NULL; |
| 826 | startNamespaceDeclHandler = NULL; |
| 827 | endNamespaceDeclHandler = NULL; |
| 828 | notStandaloneHandler = NULL; |
| 829 | externalEntityRefHandler = NULL; |
| 830 | externalEntityRefHandlerArg = parser; |
| 831 | skippedEntityHandler = NULL; |
| 832 | elementDeclHandler = NULL; |
| 833 | attlistDeclHandler = NULL; |
| 834 | entityDeclHandler = NULL; |
| 835 | xmlDeclHandler = NULL; |
| 836 | bufferPtr = buffer; |
| 837 | bufferEnd = buffer; |
| 838 | parseEndByteIndex = 0; |
| 839 | parseEndPtr = NULL; |
| 840 | declElementType = NULL; |
| 841 | declAttributeId = NULL; |
| 842 | declEntity = NULL; |
| 843 | doctypeName = NULL; |
| 844 | doctypeSysid = NULL; |
| 845 | doctypePubid = NULL; |
| 846 | declAttributeType = NULL; |
| 847 | declNotationName = NULL; |
| 848 | declNotationPublicId = NULL; |
| 849 | declAttributeIsCdata = XML_FALSE; |
| 850 | declAttributeIsId = XML_FALSE; |
| 851 | memset(&position, 0, sizeof(POSITION)); |
| 852 | errorCode = XML_ERROR_NONE; |
| 853 | eventPtr = NULL; |
| 854 | eventEndPtr = NULL; |
| 855 | positionPtr = NULL; |
| 856 | openInternalEntities = NULL; |
| 857 | defaultExpandInternalEntities = XML_TRUE; |
| 858 | tagLevel = 0; |
| 859 | tagStack = NULL; |
no test coverage detected