Changeset 391 for python/trunk/Modules/expat/expat.h
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Modules/expat/expat.h
r2 r391 743 743 XML_GetIdAttributeIndex(XML_Parser parser); 744 744 745 #ifdef XML_ATTR_INFO 746 /* Source file byte offsets for the start and end of attribute names and values. 747 The value indices are exclusive of surrounding quotes; thus in a UTF-8 source 748 file an attribute value of "blah" will yield: 749 info->valueEnd - info->valueStart = 4 bytes. 750 */ 751 typedef struct { 752 XML_Index nameStart; /* Offset to beginning of the attribute name. */ 753 XML_Index nameEnd; /* Offset after the attribute name's last byte. */ 754 XML_Index valueStart; /* Offset to beginning of the attribute value. */ 755 XML_Index valueEnd; /* Offset after the attribute value's last byte. */ 756 } XML_AttrInfo; 757 758 /* Returns an array of XML_AttrInfo structures for the attribute/value pairs 759 passed in last call to the XML_StartElementHandler that were specified 760 in the start-tag rather than defaulted. Each attribute/value pair counts 761 as 1; thus the number of entries in the array is 762 XML_GetSpecifiedAttributeCount(parser) / 2. 763 */ 764 XMLPARSEAPI(const XML_AttrInfo *) 765 XML_GetAttributeInfo(XML_Parser parser); 766 #endif 767 745 768 /* Parses some input. Returns XML_STATUS_ERROR if a fatal error is 746 769 detected. The last call to XML_Parse must have isFinal true; len … … 884 907 enum XML_ParamEntityParsing parsing); 885 908 909 /* Sets the hash salt to use for internal hash calculations. 910 Helps in preventing DoS attacks based on predicting hash 911 function behavior. This must be called before parsing is started. 912 Returns 1 if successful, 0 when called after parsing has started. 913 */ 914 XMLPARSEAPI(int) 915 XML_SetHashSalt(XML_Parser parser, 916 unsigned long hash_salt); 917 918 #define XML_HAS_SET_HASH_SALT /* Python Only: Defined for pyexpat.c. */ 919 886 920 /* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then 887 921 XML_GetErrorCode returns information about the error. … … 984 1018 XML_FEATURE_SIZEOF_XML_CHAR, 985 1019 XML_FEATURE_SIZEOF_XML_LCHAR, 986 XML_FEATURE_NS 1020 XML_FEATURE_NS, 1021 XML_FEATURE_LARGE_SIZE, 1022 XML_FEATURE_ATTR_INFO 987 1023 /* Additional features must be added to the end of this enum. */ 988 1024 }; … … 1004 1040 */ 1005 1041 #define XML_MAJOR_VERSION 2 1006 #define XML_MINOR_VERSION 01042 #define XML_MINOR_VERSION 1 1007 1043 #define XML_MICRO_VERSION 0 1008 1044
Note:
See TracChangeset
for help on using the changeset viewer.