Update Source To expat-26

This commit is contained in:
Thomas A 2023-01-30 20:44:25 -08:00
parent a40cdd8b6a
commit 3d6cd4a85f
5 changed files with 58 additions and 18 deletions

21
expat.txt Normal file
View File

@ -0,0 +1,21 @@
Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
Copyright (c) 2001-2017 Expat maintainers
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in 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 OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -36,6 +36,8 @@
#include <stdlib.h> #include <stdlib.h>
#include "expat_external.h" #include "expat_external.h"
#include <os/availability.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@ -888,7 +890,7 @@ XML_SetParamEntityParsing(XML_Parser parser,
Note: If parser == NULL, the function will do nothing and return 0. Note: If parser == NULL, the function will do nothing and return 0.
*/ */
XMLPARSEAPI(int) XMLPARSEAPI(int)
XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt) __OSX_AVAILABLE_STARTING(__MAC_10_11_2, __IPHONE_NA); XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt) API_AVAILABLE(macosx(10.11.2));
/* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then /* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then
XML_GetErrorCode returns information about the error. XML_GetErrorCode returns information about the error.

View File

@ -3217,7 +3217,7 @@ storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr,
and clear flags that say whether attributes were specified */ and clear flags that say whether attributes were specified */
i = 0; i = 0;
if (nPrefixes) { if (nPrefixes) {
int j; /* hash table index */ unsigned long j; /* hash table index */
unsigned long version = parser->m_nsAttsVersion; unsigned long version = parser->m_nsAttsVersion;
int nsAttsSize = (int)1 << parser->m_nsAttsPower; int nsAttsSize = (int)1 << parser->m_nsAttsPower;
unsigned char oldNsAttsPower = parser->m_nsAttsPower; unsigned char oldNsAttsPower = parser->m_nsAttsPower;
@ -3285,7 +3285,7 @@ storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr,
if (! b) if (! b)
return XML_ERROR_UNBOUND_PREFIX; return XML_ERROR_UNBOUND_PREFIX;
for (j = 0; j < b->uriLen; j++) { for (j = 0; j < (unsigned int) b->uriLen; j++) {
const XML_Char c = b->uri[j]; const XML_Char c = b->uri[j];
if (! poolAppendChar(&parser->m_tempPool, c)) if (! poolAppendChar(&parser->m_tempPool, c))
return XML_ERROR_NO_MEMORY; return XML_ERROR_NO_MEMORY;

View File

@ -1,15 +1,18 @@
/* expat_config.h. Generated from expat_config.h.in by configure. */ /* expat_config.h. Generated from expat_config.h.in by configure. */
/* expat_config.h.in. Generated from configure.in by autoheader. */ /* expat_config.h.in. Generated from configure.ac by autoheader. */
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ /* 1234 = LILENDIAN, 4321 = BIGENDIAN */
#ifdef __BIG_ENDIAN__ #ifdef __BIG_ENDIAN__
#define BYTEORDER 4321 #define BYTEORDER 4321
#else #else
#define BYTEORDER 1234 #define BYTEORDER 1234
#endif #endif
/* Define to 1 if you have the `bcopy' function. */ /* Define to 1 if you have the `arc4random' function. */
#define HAVE_BCOPY 1 /* #undef HAVE_ARC4RANDOM */
/* Define to 1 if you have the `arc4random_buf' function. */
#define HAVE_ARC4RANDOM_BUF 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -20,11 +23,14 @@
/* Define to 1 if you have the `getpagesize' function. */ /* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1 #define HAVE_GETPAGESIZE 1
/* Define to 1 if you have the `getrandom' function. */
/* #undef HAVE_GETRANDOM */
/* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1 #define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `memmove' function. */ /* Define to 1 if you have the `bsd' library (-lbsd). */
#define HAVE_MEMMOVE 1 /* #undef HAVE_LIBBSD */
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1 #define HAVE_MEMORY_H 1
@ -44,6 +50,9 @@
/* Define to 1 if you have the <string.h> header file. */ /* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1 #define HAVE_STRING_H 1
/* Define to 1 if you have `syscall' and `SYS_getrandom'. */
/* #undef HAVE_SYSCALL_GETRANDOM */
/* Define to 1 if you have the <sys/param.h> header file. */ /* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_PARAM_H 1
@ -56,10 +65,12 @@
/* Define to 1 if you have the <unistd.h> header file. */ /* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "expat"
/* Define to the address where bug reports for this package should be sent. */ /* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "expat-bugs@libexpat.org" #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org"
@ -67,7 +78,7 @@
#define PACKAGE_NAME "expat" #define PACKAGE_NAME "expat"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "expat 2.1.0" #define PACKAGE_STRING "expat 2.2.8"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "expat" #define PACKAGE_TARNAME "expat"
@ -76,27 +87,34 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "2.1.0" #define PACKAGE_VERSION "2.2.8"
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
/* Version number of package */
#define VERSION "2.2.8"
/* whether byteorder is bigendian */ /* whether byteorder is bigendian */
/* #undef WORDS_BIGENDIAN */ /* #undef WORDS_BIGENDIAN */
/* Define to allow retrieving the byte offsets for attribute names and values.
*/
/* #undef XML_ATTR_INFO */
/* Define to specify how much context to retain around the current parse /* Define to specify how much context to retain around the current parse
point. */ point. */
#define XML_CONTEXT_BYTES 1024 #define XML_CONTEXT_BYTES 1024
/* Define to include code reading entropy from `/dev/urandom'. */
/* #undef XML_DEV_URANDOM */
/* Define to make parameter entity parsing functionality available. */ /* Define to make parameter entity parsing functionality available. */
#define XML_DTD 1 #define XML_DTD 1
/* Define to make XML Namespaces functionality available. */ /* Define to make XML Namespaces functionality available. */
#define XML_NS 1 #define XML_NS 1
/* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
/* #undef __func__ */
/* Define to empty if `const' does not conform to ANSI C. */ /* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */ /* #undef const */
@ -106,6 +124,4 @@
/* Define to `unsigned int' if <sys/types.h> does not define. */ /* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */ /* #undef size_t */
#define HAVE_ARC4RANDOM_BUF 1
#define XML_ENABLE_VISIBILITY 1 #define XML_ENABLE_VISIBILITY 1

View File

@ -7,5 +7,6 @@ if [[ "${ACTION}" == "install" ]]; then
fi fi
if [[ "${ACTION}" == "install" || "${ACTION}" == "installapi" ]]; then if [[ "${ACTION}" == "install" || "${ACTION}" == "installapi" ]]; then
mkdir -p ${DSTROOT}/usr/lib
ln -s libexpat.1.tbd ${DSTROOT}/usr/lib/libexpat.tbd ln -s libexpat.1.tbd ${DSTROOT}/usr/lib/libexpat.tbd
fi fi