Skip to content

Commit a962b33

Browse files
committed
Merge remote-tracking branch 'upstream/master' into comm_0275
2 parents b0e612f + 377e9d6 commit a962b33

File tree

518 files changed

+54064
-30197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

518 files changed

+54064
-30197
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Build HTML
2929
run: make -C docs html
3030
- name: Build PDF
31-
run: make -C docs latexpdf
31+
run: make -C docs PAPER=a4 latexpdf
3232
- uses: actions/upload-artifact@main
3333
with:
3434
name: mame-docs-${{ github.sha }}

3rdparty/expat/CMake.README

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual
44
Studio) and should work on all other platform cmake supports.
55

6-
Assuming ~/expat-2.2.10 is the source directory of expat, add a subdirectory
6+
Assuming ~/expat-2.6.4 is the source directory of expat, add a subdirectory
77
build and change into that directory:
8-
~/expat-2.2.10$ mkdir build && cd build
9-
~/expat-2.2.10/build$
8+
~/expat-2.6.4$ mkdir build && cd build
9+
~/expat-2.6.4/build$
1010

1111
From that directory, call cmake first, then call make, make test and
1212
make install in the usual way:
13-
~/expat-2.2.10/build$ cmake ..
13+
~/expat-2.6.4/build$ cmake ..
1414
-- The C compiler identification is GNU
1515
-- The CXX compiler identification is GNU
1616
....
1717
-- Configuring done
1818
-- Generating done
19-
-- Build files have been written to: /home/patrick/expat-2.2.10/build
19+
-- Build files have been written to: /home/patrick/expat-2.6.4/build
2020

2121
If you want to specify the install location for your files, append
2222
-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
2323

24-
~/expat-2.2.10/build$ make && make test && make install
24+
~/expat-2.6.4/build$ make && make test && make install
2525
Scanning dependencies of target expat
2626
[ 5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
2727
[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
@@ -36,7 +36,7 @@ Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and
3636
make sure that gcc can be called. On Windows, you also might want to specify a
3737
special Generator for CMake:
3838
for Visual Studio builds do:
39-
cmake .. -G "Visual Studio 15 2017" && msbuild /m expat.sln
39+
cmake .. -G "Visual Studio 16 2019" && msbuild /m expat.sln
4040
for mingw builds do:
4141
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install
4242
&& gmake && gmake install

3rdparty/expat/CMakeLists.txt

+418-149
Large diffs are not rendered by default.

3rdparty/expat/COPYING

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
2-
Copyright (c) 2001-2019 Expat maintainers
2+
Copyright (c) 2001-2022 Expat maintainers
33

44
Permission is hereby granted, free of charge, to any person obtaining
55
a copy of this software and associated documentation files (the

3rdparty/expat/Changes

+740-4
Large diffs are not rendered by default.

3rdparty/expat/ConfigureChecks.cmake

+17-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include(CheckCCompilerFlag)
22
include(CheckCSourceCompiles)
33
include(CheckIncludeFile)
44
include(CheckIncludeFiles)
5+
include(CheckLibraryExists)
56
include(CheckSymbolExists)
67
include(TestBigEndian)
78

@@ -45,22 +46,31 @@ else(WORDS_BIGENDIAN)
4546
endif(WORDS_BIGENDIAN)
4647

4748
if(HAVE_SYS_TYPES_H)
48-
check_symbol_exists("off_t" "sys/types.h" OFF_T)
49-
check_symbol_exists("size_t" "sys/types.h" SIZE_T)
50-
else(HAVE_SYS_TYPES_H)
51-
set(OFF_T "long")
52-
set(SIZE_T "unsigned")
53-
endif(HAVE_SYS_TYPES_H)
49+
check_c_source_compiles("
50+
#include <sys/types.h>
51+
int main(void) {
52+
const off_t offset = -123;
53+
return 0;
54+
}"
55+
HAVE_OFF_T)
56+
endif()
57+
58+
if(NOT HAVE_OFF_T)
59+
set(off_t "long")
60+
endif()
5461

5562
check_c_source_compiles("
63+
#define _GNU_SOURCE
5664
#include <stdlib.h> /* for NULL */
5765
#include <unistd.h> /* for syscall */
5866
#include <sys/syscall.h> /* for SYS_getrandom */
59-
int main() {
67+
int main(void) {
6068
syscall(SYS_getrandom, NULL, 0, 0);
6169
return 0;
6270
}"
6371
HAVE_SYSCALL_GETRANDOM)
6472

6573
check_c_compiler_flag("-fno-strict-aliasing" FLAG_NO_STRICT_ALIASING)
6674
check_c_compiler_flag("-fvisibility=hidden" FLAG_VISIBILITY)
75+
76+
check_library_exists(m cos "" _EXPAT_LIBM_FOUND)

3rdparty/expat/Makefile.am

+35-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
# \___/_/\_\ .__/ \__,_|\__|
77
# |_| XML parser
88
#
9-
# Copyright (c) 2017 Expat development team
9+
# Copyright (c) 2017-2023 Sebastian Pipping <[email protected]>
10+
# Copyright (c) 2018 KangLin <[email protected]>
11+
# Copyright (c) 2022 Johnny Jazeix <[email protected]>
12+
# Copyright (c) 2023 Sony Corporation / Snild Dolkow <[email protected]>
13+
# Copyright (c) 2024 Alexander Bluhm <[email protected]>
14+
# Copyright (c) 2024 Dag-Erling Smørgrav <[email protected]>
1015
# Licensed under the MIT license:
1116
#
1217
# Permission is hereby granted, free of charge, to any person obtaining
@@ -53,32 +58,51 @@ pkgconfig_DATA = expat.pc
5358
pkgconfigdir = $(libdir)/pkgconfig
5459

5560

61+
dist_cmake_DATA = \
62+
cmake/autotools/expat.cmake
63+
64+
nodist_cmake_DATA = \
65+
cmake/autotools/expat-config-version.cmake \
66+
cmake/autotools/expat-noconfig.cmake \
67+
cmake/expat-config.cmake
68+
69+
cmakedir = $(libdir)/cmake/expat-@PACKAGE_VERSION@
70+
71+
5672
_EXTRA_DIST_CMAKE = \
57-
cmake/expat-config.cmake.in \
73+
cmake/autotools/expat-noconfig__linux.cmake.in \
74+
cmake/autotools/expat-noconfig__macos.cmake.in \
75+
cmake/autotools/expat-noconfig__windows.cmake.in \
76+
cmake/autotools/expat-package-init.cmake \
5877
cmake/mingw-toolchain.cmake \
5978
\
6079
CMakeLists.txt \
6180
CMake.README \
6281
ConfigureChecks.cmake \
82+
expat.pc.cmake \
6383
expat_config.h.cmake
6484

6585
_EXTRA_DIST_WINDOWS = \
6686
win32/build_expat_iss.bat \
6787
win32/expat.iss \
6888
win32/MANIFEST.txt \
69-
win32/README.txt
89+
win32/README.txt \
90+
win32/version.rc.cmake
7091

7192
EXTRA_DIST = \
7293
$(_EXTRA_DIST_CMAKE) \
7394
$(_EXTRA_DIST_WINDOWS) \
7495
\
7596
conftools/expat.m4 \
7697
conftools/get-version.sh \
77-
conftools/PrintPath \
98+
\
99+
fuzz/xml_parsebuffer_fuzzer.c \
100+
fuzz/xml_parse_fuzzer.c \
78101
\
79102
xmlwf/xmlwf_helpgen.py \
80103
xmlwf/xmlwf_helpgen.sh \
81104
\
105+
buildconf.sh \
82106
Changes \
83107
README.md \
84108
\
@@ -92,10 +116,10 @@ buildlib:
92116
@echo 'ERROR: is no longer supported. INSTEAD please:' >&2
93117
@echo 'ERROR:' >&2
94118
@echo 'ERROR: * Mass-patch Makefile.am, e.g.' >&2
95-
@echo 'ERROR: # find -name Makefile.am -exec sed \' >&2
119+
@echo 'ERROR: # find . -name Makefile.am -exec sed \' >&2
96120
@echo 'ERROR: -e "s,libexpat\.la,libexpatw.la," \' >&2
97121
@echo 'ERROR: -e "s,libexpat_la,libexpatw_la," \' >&2
98-
@echo 'ERROR: -i {} +' >&2
122+
@echo 'ERROR: -i.bak {} +' >&2
99123
@echo 'ERROR:' >&2
100124
@echo 'ERROR: * Run automake to re-generate Makefile.in files' >&2
101125
@echo 'ERROR:' >&2
@@ -110,6 +134,11 @@ buildlib:
110134
run-benchmark:
111135
$(MAKE) -C tests/benchmark
112136
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/recset.xml 65535 3
137+
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_attr.xml 4096 3
138+
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_cdata.xml 4096 3
139+
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_comment.xml 4096 3
140+
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_tag.xml 4096 3
141+
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_text.xml 4096 3
113142

114143
.PHONY: download-xmlts-zip
115144
download-xmlts-zip:

0 commit comments

Comments
 (0)