diff options
author | setser <setser@yandex-team.ru> | 2022-05-09 00:13:37 +0300 |
---|---|---|
committer | setser <setser@yandex-team.ru> | 2022-05-09 00:13:37 +0300 |
commit | e87e3fc8d0e04eb7ba3eee221bb91613b527ad85 (patch) | |
tree | 5279c128bdbdf902b9a08d9fae8e55b91910a553 /contrib/libs/libxml/include | |
parent | f4f3e4024a1f32bd0bc3fa20239025a1b179e42d (diff) | |
download | ydb-e87e3fc8d0e04eb7ba3eee221bb91613b527ad85.tar.gz |
Update libxml to 2.9.13
ref:f572491d236694e847142c36f0f5546c649e05d7
Diffstat (limited to 'contrib/libs/libxml/include')
-rw-r--r-- | contrib/libs/libxml/include/libxml/c14n.h | 10 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/parser.h | 16 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/tree.h | 6 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/xmlIO.h | 2 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/xmlexports.h | 154 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/xmlschemas.h | 2 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/xmlversion.h | 14 | ||||
-rw-r--r-- | contrib/libs/libxml/include/libxml/xpath.h | 4 |
8 files changed, 68 insertions, 140 deletions
diff --git a/contrib/libs/libxml/include/libxml/c14n.h b/contrib/libs/libxml/include/libxml/c14n.h index 1237d6c366..bca4591dda 100644 --- a/contrib/libs/libxml/include/libxml/c14n.h +++ b/contrib/libs/libxml/include/libxml/c14n.h @@ -16,17 +16,19 @@ */ #ifndef __XML_C14N_H__ #define __XML_C14N_H__ + +#include "xmlversion.h" + #ifdef LIBXML_C14N_ENABLED #ifdef LIBXML_OUTPUT_ENABLED +#include "tree.h" +#include "xpath.h" + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -#include "xmlversion.h" -#include "tree.h" -#include "xpath.h" - /* * XML Canonicalization * http://www.w3.org/TR/xml-c14n diff --git a/contrib/libs/libxml/include/libxml/parser.h b/contrib/libs/libxml/include/libxml/parser.h index a4e97caee8..98a91cd9dc 100644 --- a/contrib/libs/libxml/include/libxml/parser.h +++ b/contrib/libs/libxml/include/libxml/parser.h @@ -79,7 +79,7 @@ struct _xmlParserInput { /** * xmlParserNodeInfo: * - * The parser can be asked to collect Node informations, i.e. at what + * The parser can be asked to collect Node information, i.e. at what * place in the file they were detected. * NOTE: This is off by default and not very well tested. */ @@ -169,6 +169,8 @@ typedef enum { XML_PARSE_READER = 5 } xmlParserMode; +typedef struct _xmlStartTag xmlStartTag; + /** * xmlParserCtxt: * @@ -231,7 +233,7 @@ struct _xmlParserCtxt { int nameMax; /* Max depth of the parsing stack */ const xmlChar * *nameTab; /* array of nodes */ - long nbChars; /* number of xmlChar processed */ + long nbChars; /* unused */ long checkIndex; /* used by progressive parsing lookup */ int keepBlanks; /* ugly but ... */ int disableSAX; /* SAX callbacks are disabled */ @@ -280,7 +282,7 @@ struct _xmlParserCtxt { int nsMax; /* the size of the arrays */ const xmlChar * *nsTab; /* the array of prefix/namespace name */ int *attallocs; /* which attribute were allocated */ - void * *pushTab; /* array of data for push */ + xmlStartTag *pushTab; /* array of data for push */ xmlHashTablePtr attsDefault; /* defaulted attributes if any */ xmlHashTablePtr attsSpecial; /* non-CDATA attributes if any */ int nsWellFormed; /* is the document XML Namespace okay */ @@ -296,7 +298,7 @@ struct _xmlParserCtxt { xmlAttrPtr freeAttrs; /* List of freed attributes nodes */ /* - * the complete error informations for the last error. + * the complete error information for the last error. */ xmlError lastError; xmlParserMode parseMode; /* the parser mode */ @@ -329,7 +331,7 @@ struct _xmlSAXLocator { * xmlSAXHandler: * * A SAX handler is bunch of callbacks called by the parser when processing - * of the input generate data or structure informations. + * of the input generate data or structure information. */ /** @@ -685,7 +687,7 @@ typedef int (*hasExternalSubsetSAXFunc) (void *ctx); * attribute values. * * SAX2 callback when an element start has been detected by the parser. - * It provides the namespace informations for the element, as well as + * It provides the namespace information for the element, as well as * the new namespace declarations on the element. */ @@ -707,7 +709,7 @@ typedef void (*startElementNsSAX2Func) (void *ctx, * @URI: the element namespace name if available * * SAX2 callback when an element end has been detected by the parser. - * It provides the namespace informations for the element. + * It provides the namespace information for the element. */ typedef void (*endElementNsSAX2Func) (void *ctx, diff --git a/contrib/libs/libxml/include/libxml/tree.h b/contrib/libs/libxml/include/libxml/tree.h index f257fb6a9d..981c4a0d4b 100644 --- a/contrib/libs/libxml/include/libxml/tree.h +++ b/contrib/libs/libxml/include/libxml/tree.h @@ -443,7 +443,7 @@ struct _xmlAttr { struct _xmlDoc *doc; /* the containing document */ xmlNs *ns; /* pointer to the associated namespace */ xmlAttributeType atype; /* the attribute type if validating */ - void *psvi; /* for type/PSVI informations */ + void *psvi; /* for type/PSVI information */ }; /** @@ -502,7 +502,7 @@ struct _xmlNode { xmlChar *content; /* the content */ struct _xmlAttr *properties;/* properties list */ xmlNs *nsDef; /* namespace definitions on this node */ - void *psvi; /* for type/PSVI informations */ + void *psvi; /* for type/PSVI information */ unsigned short line; /* line number */ unsigned short extra; /* extra data for XPath/XSLT */ }; @@ -578,7 +578,7 @@ struct _xmlDoc { int charset; /* Internal flag for charset handling, actually an xmlCharEncoding */ struct _xmlDict *dict; /* dict used to allocate names or NULL */ - void *psvi; /* for type/PSVI informations */ + void *psvi; /* for type/PSVI information */ int parseFlags; /* set of xmlParserOption used to parse the document */ int properties; /* set of xmlDocProperties for this document diff --git a/contrib/libs/libxml/include/libxml/xmlIO.h b/contrib/libs/libxml/include/libxml/xmlIO.h index a2da495f5f..05b5278c49 100644 --- a/contrib/libs/libxml/include/libxml/xmlIO.h +++ b/contrib/libs/libxml/include/libxml/xmlIO.h @@ -217,6 +217,8 @@ xmlParserInputBufferPtr */ XMLPUBFUN void XMLCALL xmlCleanupOutputCallbacks (void); +XMLPUBFUN int XMLCALL + xmlPopOutputCallbacks (void); XMLPUBFUN void XMLCALL xmlRegisterDefaultOutputCallbacks(void); XMLPUBFUN xmlOutputBufferPtr XMLCALL diff --git a/contrib/libs/libxml/include/libxml/xmlexports.h b/contrib/libs/libxml/include/libxml/xmlexports.h index f03af0d03a..aceede5ec0 100644 --- a/contrib/libs/libxml/include/libxml/xmlexports.h +++ b/contrib/libs/libxml/include/libxml/xmlexports.h @@ -3,43 +3,46 @@ * Description: macros for marking symbols as exportable/importable. * * Copy: See Copyright for the status of this software. - * - * Author: Igor Zlatovic <igor@zlatkovic.com> */ #ifndef __XML_EXPORTS_H__ #define __XML_EXPORTS_H__ -/** - * XMLPUBFUN, XMLPUBVAR, XMLCALL - * - * Macros which declare an exportable function, an exportable variable and - * the calling convention used for functions. - * - * Please use an extra block for every platform/compiler combination when - * modifying this, rather than overlong #ifdef lines. This helps - * readability as well as the fact that different compilers on the same - * platform might need different definitions. - */ +#if defined(_WIN32) || defined(__CYGWIN__) +/** DOC_DISABLE */ + +#ifdef LIBXML_STATIC + #define XMLPUBLIC +#elif defined(IN_LIBXML) + #define XMLPUBLIC __declspec(dllexport) +#else + #define XMLPUBLIC __declspec(dllimport) +#endif + +#if defined(LIBXML_FASTCALL) + #define XMLCALL __fastcall +#else + #define XMLCALL __cdecl +#endif +#define XMLCDECL __cdecl + +/** DOC_ENABLE */ +#else /* not Windows */ /** - * XMLPUBFUN: - * - * Macros which declare an exportable function - */ -#define XMLPUBFUN -/** - * XMLPUBVAR: + * XMLPUBLIC: * - * Macros which declare an exportable variable + * Macro which declares a public symbol */ -#define XMLPUBVAR extern +#define XMLPUBLIC + /** * XMLCALL: * - * Macros which declare the called convention for exported functions + * Macro which declares the calling convention for exported functions */ #define XMLCALL + /** * XMLCDECL: * @@ -48,100 +51,21 @@ */ #define XMLCDECL -/** DOC_DISABLE */ - -/* Windows platform with MS compiler */ -#if defined(_WIN32) && defined(_MSC_VER) - #undef XMLPUBFUN - #undef XMLPUBVAR - #undef XMLCALL - #undef XMLCDECL - #if defined(IN_LIBXML) && !defined(LIBXML_STATIC) - #define XMLPUBFUN __declspec(dllexport) - #define XMLPUBVAR __declspec(dllexport) - #else - #define XMLPUBFUN - #if !defined(LIBXML_STATIC) - #define XMLPUBVAR __declspec(dllimport) extern - #else - #define XMLPUBVAR extern - #endif - #endif - #if defined(LIBXML_FASTCALL) - #define XMLCALL __fastcall - #else - #define XMLCALL __cdecl - #endif - #define XMLCDECL __cdecl -#endif +#endif /* platform switch */ -/* Windows platform with Borland compiler */ -#if defined(_WIN32) && defined(__BORLANDC__) - #undef XMLPUBFUN - #undef XMLPUBVAR - #undef XMLCALL - #undef XMLCDECL - #if defined(IN_LIBXML) && !defined(LIBXML_STATIC) - #define XMLPUBFUN __declspec(dllexport) - #define XMLPUBVAR __declspec(dllexport) extern - #else - #define XMLPUBFUN - #if !defined(LIBXML_STATIC) - #define XMLPUBVAR __declspec(dllimport) extern - #else - #define XMLPUBVAR extern - #endif - #endif - #define XMLCALL __cdecl - #define XMLCDECL __cdecl -#endif - -/* Windows platform with GNU compiler (Mingw) */ -#if defined(_WIN32) && defined(__MINGW32__) - #undef XMLPUBFUN - #undef XMLPUBVAR - #undef XMLCALL - #undef XMLCDECL - /* - * if defined(IN_LIBXML) this raises problems on mingw with msys - * _imp__xmlFree listed as missing. Try to workaround the problem - * by also making that declaration when compiling client code. - */ - #if defined(IN_LIBXML) && !defined(LIBXML_STATIC) - #define XMLPUBFUN __declspec(dllexport) - #define XMLPUBVAR __declspec(dllexport) extern - #else - #define XMLPUBFUN - #if !defined(LIBXML_STATIC) - #define XMLPUBVAR __declspec(dllimport) extern - #else - #define XMLPUBVAR extern - #endif - #endif - #define XMLCALL __cdecl - #define XMLCDECL __cdecl -#endif +/* + * XMLPUBFUN: + * + * Macro which declares an exportable function + */ +#define XMLPUBFUN XMLPUBLIC -/* Cygwin platform (does not define _WIN32), GNU compiler */ -#if defined(__CYGWIN__) - #undef XMLPUBFUN - #undef XMLPUBVAR - #undef XMLCALL - #undef XMLCDECL - #if defined(IN_LIBXML) && !defined(LIBXML_STATIC) - #define XMLPUBFUN __declspec(dllexport) - #define XMLPUBVAR __declspec(dllexport) - #else - #define XMLPUBFUN - #if !defined(LIBXML_STATIC) - #define XMLPUBVAR __declspec(dllimport) extern - #else - #define XMLPUBVAR extern - #endif - #endif - #define XMLCALL __cdecl - #define XMLCDECL __cdecl -#endif +/** + * XMLPUBVAR: + * + * Macro which declares an exportable variable + */ +#define XMLPUBVAR XMLPUBLIC extern /* Compatibility */ #if !defined(LIBXML_DLL_IMPORT) diff --git a/contrib/libs/libxml/include/libxml/xmlschemas.h b/contrib/libs/libxml/include/libxml/xmlschemas.h index 54855e8b8b..c9bd91bc8b 100644 --- a/contrib/libs/libxml/include/libxml/xmlschemas.h +++ b/contrib/libs/libxml/include/libxml/xmlschemas.h @@ -122,7 +122,7 @@ typedef xmlSchemaValidCtxt *xmlSchemaValidCtxtPtr; * @line: returned line information * * A schemas validation locator, a callback called by the validator. - * This is used when file or node informations are not available + * This is used when file or node information are not available * to find out what file and line number are affected * * Returns: 0 in case of success and -1 in case of error diff --git a/contrib/libs/libxml/include/libxml/xmlversion.h b/contrib/libs/libxml/include/libxml/xmlversion.h index 8d910e5731..d75d20ef15 100644 --- a/contrib/libs/libxml/include/libxml/xmlversion.h +++ b/contrib/libs/libxml/include/libxml/xmlversion.h @@ -1,6 +1,6 @@ /* - * Summary: compile-time version informations - * Description: compile-time version informations for the XML library + * Summary: compile-time version information + * Description: compile-time version information for the XML library * * Copy: See Copyright for the status of this software. * @@ -29,26 +29,26 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version); * * the version string like "1.2.3" */ -#define LIBXML_DOTTED_VERSION "2.9.10" +#define LIBXML_DOTTED_VERSION "2.9.13" /** * LIBXML_VERSION: * * the version number: 1.2.3 value is 10203 */ -#define LIBXML_VERSION 20910 +#define LIBXML_VERSION 20913 /** * LIBXML_VERSION_STRING: * * the version number string, 1.2.3 value is "10203" */ -#define LIBXML_VERSION_STRING "20910" +#define LIBXML_VERSION_STRING "20913" /** * LIBXML_VERSION_EXTRA: * - * extra version information, used to show a CVS compilation + * extra version information, used to show a git commit description */ #define LIBXML_VERSION_EXTRA "" @@ -58,7 +58,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version); * Macro to check that the libxml version in use is compatible with * the version the software has been compiled against */ -#define LIBXML_TEST_VERSION xmlCheckVersion(20910); +#define LIBXML_TEST_VERSION xmlCheckVersion(20913); #ifndef VMS #if 0 diff --git a/contrib/libs/libxml/include/libxml/xpath.h b/contrib/libs/libxml/include/libxml/xpath.h index 91c7578768..3d3de1fcf4 100644 --- a/contrib/libs/libxml/include/libxml/xpath.h +++ b/contrib/libs/libxml/include/libxml/xpath.h @@ -359,8 +359,6 @@ struct _xmlXPathContext { unsigned long opLimit; unsigned long opCount; int depth; - int maxDepth; - int maxParserDepth; }; /* @@ -373,7 +371,7 @@ typedef xmlXPathCompExpr *xmlXPathCompExprPtr; /** * xmlXPathParserContext: * - * An XPath parser context. It contains pure parsing informations, + * An XPath parser context. It contains pure parsing information, * an xmlXPathContext, and the stack of objects. */ struct _xmlXPathParserContext { |