/*__ __ ____\ \/ /_ __ __ _| |_/ _ \\ /| '_ \ / _` | __|| __// \| |_) | (_| | |_\___/_/\_\ .__/ \__,_|\__||_| XML parserCopyright (c) 1997-2000 Thai Open Source Software Center LtdCopyright (c) 2000-2017 Expat development teamLicensed under the MIT license:Permission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and to permitpersons to whom the Software is furnished to do so, subject to thefollowing conditions:The above copyright notice and this permission notice shall be includedin all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. INNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OROTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THEUSE OR OTHER DEALINGS IN THE SOFTWARE.*/#ifndef Expat_External_INCLUDED#define Expat_External_INCLUDED 1/* External API definitions *//* Expat tries very hard to make the API boundary very specificallydefined. There are two macros defined to control this boundary;each of these can be defined before including this header toachieve some different behavior, but doing so it not recommended ortested frequently.XMLCALL - The calling convention to use for all calls across the"library boundary." This will default to cdecl, andtry really hard to tell the compiler that's what wewant.XMLIMPORT - Whatever magic is needed to note that a function isto be imported from a dynamically loaded library(.dll, .so, or .sl, depending on your platform).The XMLCALL macro was added in Expat 1.95.7. The only one which isexpected to be directly useful in client code is XMLCALL.Note that on at least some Unix versions, the Expat library must becompiled with the cdecl calling convention as the default sincesystem headers may assume the cdecl convention.*//* Namespace external symbols to allow multiple libexpat version toco-exist. */#include "pyexpatns.h"#ifndef XMLCALL# if defined(_MSC_VER)# define XMLCALL __cdecl# elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)# define XMLCALL __attribute__((cdecl))# else/* For any platform which uses this definition and supports more thanone calling convention, we need to extend this definition todeclare the convention used on that platform, if it's possible todo so.If this is the case for your platform, please file a bug reportwith information on how to identify your platform via the Cpre-processor and how to specify the same calling convention as theplatform's malloc() implementation.*/# define XMLCALL# endif#endif /* not defined XMLCALL */#if ! defined(XML_STATIC) && ! defined(XMLIMPORT)# ifndef XML_BUILDING_EXPAT/* using Expat from an application */# if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)# define XMLIMPORT __declspec(dllimport)# endif# endif#endif /* not defined XML_STATIC */#ifndef XML_ENABLE_VISIBILITY# define XML_ENABLE_VISIBILITY 0#endif#if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY# define XMLIMPORT __attribute__((visibility("default")))#endif/* If we didn't define it above, define it away: */#ifndef XMLIMPORT# define XMLIMPORT#endif#if defined(__GNUC__) \&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))# define XML_ATTR_MALLOC __attribute__((__malloc__))#else# define XML_ATTR_MALLOC#endif#if defined(__GNUC__) \&& ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))#else# define XML_ATTR_ALLOC_SIZE(x)#endif#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL#ifdef __cplusplusextern "C" {#endif#ifdef XML_UNICODE_WCHAR_T# ifndef XML_UNICODE# define XML_UNICODE# endif# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"# endif#endif#ifdef XML_UNICODE /* Information is UTF-16 encoded. */# ifdef XML_UNICODE_WCHAR_Ttypedef wchar_t XML_Char;typedef wchar_t XML_LChar;# elsetypedef unsigned short XML_Char;typedef char XML_LChar;# endif /* XML_UNICODE_WCHAR_T */#else /* Information is UTF-8 encoded. */typedef char XML_Char;typedef char XML_LChar;#endif /* XML_UNICODE */#ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */typedef long long XML_Index;typedef unsigned long long XML_Size;#elsetypedef long XML_Index;typedef unsigned long XML_Size;#endif /* XML_LARGE_SIZE */#ifdef __cplusplus}#endif#endif /* not Expat_External_INCLUDED */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。