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.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /externals/expat/include/expat_external.h (Version 11.3.0) and /externals/expat/include/expat_external.h (Version 10.2)


  1 /*                                             <<   1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
  2                             __  __             <<   2    See the file COPYING for copying permission.
  3                          ___\ \/ /_ __   __ _| << 
  4                         / _ \\  /| '_ \ / _` | << 
  5                        |  __//  \| |_) | (_| | << 
  6                         \___/_/\_\ .__/ \__,_| << 
  7                                  |_| XML parse << 
  8                                                << 
  9    Copyright (c) 1997-2000 Thai Open Source So << 
 10    Copyright (c) 2000      Clark Cooper <coope << 
 11    Copyright (c) 2000-2004 Fred L. Drake, Jr.  << 
 12    Copyright (c) 2001-2002 Greg Stein <gstein@ << 
 13    Copyright (c) 2002-2006 Karl Waclawek <karl << 
 14    Copyright (c) 2016      Cristian Rodríguez << 
 15    Copyright (c) 2016-2019 Sebastian Pipping < << 
 16    Copyright (c) 2017      Rhodri James <rhodr << 
 17    Copyright (c) 2018      Yury Gribov <tetra2 << 
 18    Licensed under the MIT license:             << 
 19                                                << 
 20    Permission is  hereby granted,  free of cha << 
 21    a  copy  of  this  software   and  associat << 
 22    "Software"),  to  deal in  the  Software  w << 
 23    without  limitation the  rights  to use,  c << 
 24    distribute, sublicense, and/or sell copies  << 
 25    persons  to whom  the Software  is  furnish << 
 26    following conditions:                       << 
 27                                                << 
 28    The above copyright  notice and this permis << 
 29    in all copies or substantial portions of th << 
 30                                                << 
 31    THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WIT << 
 32    EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT L << 
 33    MERCHANTABILITY, FITNESS FOR A PARTICULAR P << 
 34    NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HO << 
 35    DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN << 
 36    OTHERWISE, ARISING FROM, OUT OF OR IN CONNE << 
 37    USE OR OTHER DEALINGS IN THE SOFTWARE.      << 
 38 */                                                  3 */
 39                                                     4 
 40 #ifndef Expat_External_INCLUDED                     5 #ifndef Expat_External_INCLUDED
 41 #define Expat_External_INCLUDED 1                   6 #define Expat_External_INCLUDED 1
 42                                                     7 
 43 /* External API definitions */                      8 /* External API definitions */
 44                                                     9 
                                                   >>  10 #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
                                                   >>  11 #define XML_USE_MSC_EXTENSIONS 1
                                                   >>  12 #endif
                                                   >>  13 
 45 /* Expat tries very hard to make the API bound     14 /* Expat tries very hard to make the API boundary very specifically
 46    defined.  There are two macros defined to c     15    defined.  There are two macros defined to control this boundary;
 47    each of these can be defined before includi     16    each of these can be defined before including this header to
 48    achieve some different behavior, but doing      17    achieve some different behavior, but doing so it not recommended or
 49    tested frequently.                              18    tested frequently.
 50                                                    19 
 51    XMLCALL    - The calling convention to use      20    XMLCALL    - The calling convention to use for all calls across the
 52                 "library boundary."  This will     21                 "library boundary."  This will default to cdecl, and
 53                 try really hard to tell the co     22                 try really hard to tell the compiler that's what we
 54                 want.                              23                 want.
 55                                                    24 
 56    XMLIMPORT  - Whatever magic is needed to no     25    XMLIMPORT  - Whatever magic is needed to note that a function is
 57                 to be imported from a dynamica     26                 to be imported from a dynamically loaded library
 58                 (.dll, .so, or .sl, depending      27                 (.dll, .so, or .sl, depending on your platform).
 59                                                    28 
 60    The XMLCALL macro was added in Expat 1.95.7     29    The XMLCALL macro was added in Expat 1.95.7.  The only one which is
 61    expected to be directly useful in client co     30    expected to be directly useful in client code is XMLCALL.
 62                                                    31 
 63    Note that on at least some Unix versions, t     32    Note that on at least some Unix versions, the Expat library must be
 64    compiled with the cdecl calling convention      33    compiled with the cdecl calling convention as the default since
 65    system headers may assume the cdecl convent     34    system headers may assume the cdecl convention.
 66 */                                                 35 */
 67 #ifndef XMLCALL                                    36 #ifndef XMLCALL
 68 #  if defined(_MSC_VER)                        <<  37 #if defined(_MSC_VER)
 69 #    define XMLCALL __cdecl                    <<  38 #define XMLCALL __cdecl
 70 #  elif defined(__GNUC__) && defined(__i386) & <<  39 #elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER)
 71 #    define XMLCALL __attribute__((cdecl))     <<  40 #define XMLCALL __attribute__((cdecl))
 72 #  else                                        <<  41 #else
 73 /* For any platform which uses this definition     42 /* For any platform which uses this definition and supports more than
 74    one calling convention, we need to extend t     43    one calling convention, we need to extend this definition to
 75    declare the convention used on that platfor     44    declare the convention used on that platform, if it's possible to
 76    do so.                                          45    do so.
 77                                                    46 
 78    If this is the case for your platform, plea     47    If this is the case for your platform, please file a bug report
 79    with information on how to identify your pl     48    with information on how to identify your platform via the C
 80    pre-processor and how to specify the same c     49    pre-processor and how to specify the same calling convention as the
 81    platform's malloc() implementation.             50    platform's malloc() implementation.
 82 */                                                 51 */
 83 #    define XMLCALL                            <<  52 #define XMLCALL
 84 #  endif                                       <<  53 #endif
 85 #endif /* not defined XMLCALL */               <<  54 #endif  /* not defined XMLCALL */
 86                                                << 
 87 #if ! defined(XML_STATIC) && ! defined(XMLIMPO << 
 88 #  ifndef XML_BUILDING_EXPAT                   << 
 89 /* using Expat from an application */          << 
 90                                                    55 
 91 #    if defined(_MSC_EXTENSIONS) && ! defined( << 
 92 #      define XMLIMPORT __declspec(dllimport)  << 
 93 #    endif                                     << 
 94                                                    56 
 95 #  endif                                       <<  57 #if !defined(XML_STATIC) && !defined(XMLIMPORT)
 96 #endif /* not defined XML_STATIC */            <<  58 #ifndef XML_BUILDING_EXPAT
                                                   >>  59 /* using Expat from an application */
 97                                                    60 
 98 #ifndef XML_ENABLE_VISIBILITY                  <<  61 #ifdef XML_USE_MSC_EXTENSIONS
 99 #  define XML_ENABLE_VISIBILITY 0              <<  62 #define XMLIMPORT __declspec(dllimport)
100 #endif                                             63 #endif
101                                                    64 
102 #if ! defined(XMLIMPORT) && XML_ENABLE_VISIBIL << 
103 #  define XMLIMPORT __attribute__((visibility( << 
104 #endif                                             65 #endif
                                                   >>  66 #endif  /* not defined XML_STATIC */
                                                   >>  67 
105                                                    68 
106 /* If we didn't define it above, define it awa     69 /* If we didn't define it above, define it away: */
107 #ifndef XMLIMPORT                                  70 #ifndef XMLIMPORT
108 #  define XMLIMPORT                            <<  71 #define XMLIMPORT
109 #endif                                             72 #endif
110                                                    73 
111 #if defined(__GNUC__)                          << 
112     && (__GNUC__ > 2 || (__GNUC__ == 2 && __GN << 
113 #  define XML_ATTR_MALLOC __attribute__((__mal << 
114 #else                                          << 
115 #  define XML_ATTR_MALLOC                      << 
116 #endif                                         << 
117                                                << 
118 #if defined(__GNUC__)                          << 
119     && ((__GNUC__ > 4) || (__GNUC__ == 4 && __ << 
120 #  define XML_ATTR_ALLOC_SIZE(x) __attribute__ << 
121 #else                                          << 
122 #  define XML_ATTR_ALLOC_SIZE(x)               << 
123 #endif                                         << 
124                                                    74 
125 #define XMLPARSEAPI(type) XMLIMPORT type XMLCA     75 #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
126                                                    76 
127 #ifdef __cplusplus                                 77 #ifdef __cplusplus
128 extern "C" {                                       78 extern "C" {
129 #endif                                             79 #endif
130                                                    80 
131 #ifdef XML_UNICODE_WCHAR_T                         81 #ifdef XML_UNICODE_WCHAR_T
132 #  ifndef XML_UNICODE                          <<  82 #define XML_UNICODE
133 #    define XML_UNICODE                        << 
134 #  endif                                       << 
135 #  if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF << 
136 #    error "sizeof(wchar_t) != 2; Need -fshort << 
137 #  endif                                       << 
138 #endif                                             83 #endif
139                                                    84 
140 #ifdef XML_UNICODE /* Information is UTF-16 en <<  85 #ifdef XML_UNICODE     /* Information is UTF-16 encoded. */
141 #  ifdef XML_UNICODE_WCHAR_T                   <<  86 #ifdef XML_UNICODE_WCHAR_T
142 typedef wchar_t XML_Char;                          87 typedef wchar_t XML_Char;
143 typedef wchar_t XML_LChar;                         88 typedef wchar_t XML_LChar;
144 #  else                                        <<  89 #else
145 typedef unsigned short XML_Char;                   90 typedef unsigned short XML_Char;
146 typedef char XML_LChar;                            91 typedef char XML_LChar;
147 #  endif /* XML_UNICODE_WCHAR_T */             <<  92 #endif /* XML_UNICODE_WCHAR_T */
148 #else    /* Information is UTF-8 encoded. */   <<  93 #else                  /* Information is UTF-8 encoded. */
149 typedef char XML_Char;                             94 typedef char XML_Char;
150 typedef char XML_LChar;                            95 typedef char XML_LChar;
151 #endif   /* XML_UNICODE */                     <<  96 #endif /* XML_UNICODE */
152                                                    97 
153 #ifdef XML_LARGE_SIZE /* Use large integers fo <<  98 #ifdef XML_LARGE_SIZE  /* Use large integers for file/stream positions. */
                                                   >>  99 #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
                                                   >> 100 typedef __int64 XML_Index; 
                                                   >> 101 typedef unsigned __int64 XML_Size;
                                                   >> 102 #else
154 typedef long long XML_Index;                      103 typedef long long XML_Index;
155 typedef unsigned long long XML_Size;              104 typedef unsigned long long XML_Size;
                                                   >> 105 #endif
156 #else                                             106 #else
157 typedef long XML_Index;                           107 typedef long XML_Index;
158 typedef unsigned long XML_Size;                   108 typedef unsigned long XML_Size;
159 #endif /* XML_LARGE_SIZE */                       109 #endif /* XML_LARGE_SIZE */
160                                                   110 
161 #ifdef __cplusplus                                111 #ifdef __cplusplus
162 }                                                 112 }
163 #endif                                            113 #endif
164                                                   114 
165 #endif /* not Expat_External_INCLUDED */          115 #endif /* not Expat_External_INCLUDED */
166                                                   116