Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Modules/expat/expat.h

    r2 r391  
    743743XML_GetIdAttributeIndex(XML_Parser parser);
    744744
     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*/
     751typedef 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*/
     764XMLPARSEAPI(const XML_AttrInfo *)
     765XML_GetAttributeInfo(XML_Parser parser);
     766#endif
     767
    745768/* Parses some input. Returns XML_STATUS_ERROR if a fatal error is
    746769   detected.  The last call to XML_Parse must have isFinal true; len
     
    884907                          enum XML_ParamEntityParsing parsing);
    885908
     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*/
     914XMLPARSEAPI(int)
     915XML_SetHashSalt(XML_Parser parser,
     916                unsigned long hash_salt);
     917
     918#define XML_HAS_SET_HASH_SALT  /* Python Only: Defined for pyexpat.c. */
     919
    886920/* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then
    887921   XML_GetErrorCode returns information about the error.
     
    9841018  XML_FEATURE_SIZEOF_XML_CHAR,
    9851019  XML_FEATURE_SIZEOF_XML_LCHAR,
    986   XML_FEATURE_NS
     1020  XML_FEATURE_NS,
     1021  XML_FEATURE_LARGE_SIZE,
     1022  XML_FEATURE_ATTR_INFO
    9871023  /* Additional features must be added to the end of this enum. */
    9881024};
     
    10041040*/
    10051041#define XML_MAJOR_VERSION 2
    1006 #define XML_MINOR_VERSION 0
     1042#define XML_MINOR_VERSION 1
    10071043#define XML_MICRO_VERSION 0
    10081044
Note: See TracChangeset for help on using the changeset viewer.