Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: expat_external.h
/*
[0] Fix | Delete
__ __ _
[1] Fix | Delete
___\ \/ /_ __ __ _| |_
[2] Fix | Delete
/ _ \\ /| '_ \ / _` | __|
[3] Fix | Delete
| __// \| |_) | (_| | |_
[4] Fix | Delete
\___/_/\_\ .__/ \__,_|\__|
[5] Fix | Delete
|_| XML parser
[6] Fix | Delete
[7] Fix | Delete
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
[8] Fix | Delete
Copyright (c) 2000-2017 Expat development team
[9] Fix | Delete
Licensed under the MIT license:
[10] Fix | Delete
[11] Fix | Delete
Permission is hereby granted, free of charge, to any person obtaining
[12] Fix | Delete
a copy of this software and associated documentation files (the
[13] Fix | Delete
"Software"), to deal in the Software without restriction, including
[14] Fix | Delete
without limitation the rights to use, copy, modify, merge, publish,
[15] Fix | Delete
distribute, sublicense, and/or sell copies of the Software, and to permit
[16] Fix | Delete
persons to whom the Software is furnished to do so, subject to the
[17] Fix | Delete
following conditions:
[18] Fix | Delete
[19] Fix | Delete
The above copyright notice and this permission notice shall be included
[20] Fix | Delete
in all copies or substantial portions of the Software.
[21] Fix | Delete
[22] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
[23] Fix | Delete
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
[24] Fix | Delete
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
[25] Fix | Delete
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
[26] Fix | Delete
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
[27] Fix | Delete
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
[28] Fix | Delete
USE OR OTHER DEALINGS IN THE SOFTWARE.
[29] Fix | Delete
*/
[30] Fix | Delete
[31] Fix | Delete
#ifndef Expat_External_INCLUDED
[32] Fix | Delete
#define Expat_External_INCLUDED 1
[33] Fix | Delete
[34] Fix | Delete
/* External API definitions */
[35] Fix | Delete
[36] Fix | Delete
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
[37] Fix | Delete
# define XML_USE_MSC_EXTENSIONS 1
[38] Fix | Delete
#endif
[39] Fix | Delete
[40] Fix | Delete
/* Expat tries very hard to make the API boundary very specifically
[41] Fix | Delete
defined. There are two macros defined to control this boundary;
[42] Fix | Delete
each of these can be defined before including this header to
[43] Fix | Delete
achieve some different behavior, but doing so it not recommended or
[44] Fix | Delete
tested frequently.
[45] Fix | Delete
[46] Fix | Delete
XMLCALL - The calling convention to use for all calls across the
[47] Fix | Delete
"library boundary." This will default to cdecl, and
[48] Fix | Delete
try really hard to tell the compiler that's what we
[49] Fix | Delete
want.
[50] Fix | Delete
[51] Fix | Delete
XMLIMPORT - Whatever magic is needed to note that a function is
[52] Fix | Delete
to be imported from a dynamically loaded library
[53] Fix | Delete
(.dll, .so, or .sl, depending on your platform).
[54] Fix | Delete
[55] Fix | Delete
The XMLCALL macro was added in Expat 1.95.7. The only one which is
[56] Fix | Delete
expected to be directly useful in client code is XMLCALL.
[57] Fix | Delete
[58] Fix | Delete
Note that on at least some Unix versions, the Expat library must be
[59] Fix | Delete
compiled with the cdecl calling convention as the default since
[60] Fix | Delete
system headers may assume the cdecl convention.
[61] Fix | Delete
*/
[62] Fix | Delete
#ifndef XMLCALL
[63] Fix | Delete
# if defined(_MSC_VER)
[64] Fix | Delete
# define XMLCALL __cdecl
[65] Fix | Delete
# elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER)
[66] Fix | Delete
# define XMLCALL __attribute__((cdecl))
[67] Fix | Delete
# else
[68] Fix | Delete
/* For any platform which uses this definition and supports more than
[69] Fix | Delete
one calling convention, we need to extend this definition to
[70] Fix | Delete
declare the convention used on that platform, if it's possible to
[71] Fix | Delete
do so.
[72] Fix | Delete
[73] Fix | Delete
If this is the case for your platform, please file a bug report
[74] Fix | Delete
with information on how to identify your platform via the C
[75] Fix | Delete
pre-processor and how to specify the same calling convention as the
[76] Fix | Delete
platform's malloc() implementation.
[77] Fix | Delete
*/
[78] Fix | Delete
# define XMLCALL
[79] Fix | Delete
# endif
[80] Fix | Delete
#endif /* not defined XMLCALL */
[81] Fix | Delete
[82] Fix | Delete
[83] Fix | Delete
#if !defined(XML_STATIC) && !defined(XMLIMPORT)
[84] Fix | Delete
# ifndef XML_BUILDING_EXPAT
[85] Fix | Delete
/* using Expat from an application */
[86] Fix | Delete
[87] Fix | Delete
# ifdef XML_USE_MSC_EXTENSIONS
[88] Fix | Delete
# define XMLIMPORT __declspec(dllimport)
[89] Fix | Delete
# endif
[90] Fix | Delete
[91] Fix | Delete
# endif
[92] Fix | Delete
#endif /* not defined XML_STATIC */
[93] Fix | Delete
[94] Fix | Delete
#if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4)
[95] Fix | Delete
# define XMLIMPORT __attribute__ ((visibility ("default")))
[96] Fix | Delete
#endif
[97] Fix | Delete
[98] Fix | Delete
/* If we didn't define it above, define it away: */
[99] Fix | Delete
#ifndef XMLIMPORT
[100] Fix | Delete
# define XMLIMPORT
[101] Fix | Delete
#endif
[102] Fix | Delete
[103] Fix | Delete
#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
[104] Fix | Delete
# define XML_ATTR_MALLOC __attribute__((__malloc__))
[105] Fix | Delete
#else
[106] Fix | Delete
# define XML_ATTR_MALLOC
[107] Fix | Delete
#endif
[108] Fix | Delete
[109] Fix | Delete
#if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
[110] Fix | Delete
# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
[111] Fix | Delete
#else
[112] Fix | Delete
# define XML_ATTR_ALLOC_SIZE(x)
[113] Fix | Delete
#endif
[114] Fix | Delete
[115] Fix | Delete
#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
[116] Fix | Delete
[117] Fix | Delete
#ifdef __cplusplus
[118] Fix | Delete
extern "C" {
[119] Fix | Delete
#endif
[120] Fix | Delete
[121] Fix | Delete
#ifdef XML_UNICODE_WCHAR_T
[122] Fix | Delete
# ifndef XML_UNICODE
[123] Fix | Delete
# define XML_UNICODE
[124] Fix | Delete
# endif
[125] Fix | Delete
# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
[126] Fix | Delete
# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
[127] Fix | Delete
# endif
[128] Fix | Delete
#endif
[129] Fix | Delete
[130] Fix | Delete
#ifdef XML_UNICODE /* Information is UTF-16 encoded. */
[131] Fix | Delete
# ifdef XML_UNICODE_WCHAR_T
[132] Fix | Delete
typedef wchar_t XML_Char;
[133] Fix | Delete
typedef wchar_t XML_LChar;
[134] Fix | Delete
# else
[135] Fix | Delete
typedef unsigned short XML_Char;
[136] Fix | Delete
typedef char XML_LChar;
[137] Fix | Delete
# endif /* XML_UNICODE_WCHAR_T */
[138] Fix | Delete
#else /* Information is UTF-8 encoded. */
[139] Fix | Delete
typedef char XML_Char;
[140] Fix | Delete
typedef char XML_LChar;
[141] Fix | Delete
#endif /* XML_UNICODE */
[142] Fix | Delete
[143] Fix | Delete
#ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
[144] Fix | Delete
# if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
[145] Fix | Delete
typedef __int64 XML_Index;
[146] Fix | Delete
typedef unsigned __int64 XML_Size;
[147] Fix | Delete
# else
[148] Fix | Delete
typedef long long XML_Index;
[149] Fix | Delete
typedef unsigned long long XML_Size;
[150] Fix | Delete
# endif
[151] Fix | Delete
#else
[152] Fix | Delete
typedef long XML_Index;
[153] Fix | Delete
typedef unsigned long XML_Size;
[154] Fix | Delete
#endif /* XML_LARGE_SIZE */
[155] Fix | Delete
[156] Fix | Delete
#ifdef __cplusplus
[157] Fix | Delete
}
[158] Fix | Delete
#endif
[159] Fix | Delete
[160] Fix | Delete
#endif /* not Expat_External_INCLUDED */
[161] Fix | Delete
[162] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function