初始化PHP-Xlswrite扩展
This commit is contained in:
		
							
								
								
									
										37
									
								
								library/libexpat/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								library/libexpat/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| # CVS default ignores begin | ||||
| tags | ||||
| TAGS | ||||
| .make.state | ||||
| .nse_depinfo | ||||
| *~ | ||||
| #* | ||||
| .#* | ||||
| ,* | ||||
| _$* | ||||
| *$ | ||||
| *.old | ||||
| *.bak | ||||
| *.BAK | ||||
| *.orig | ||||
| *.rej | ||||
| .del-* | ||||
| *.a | ||||
| *.olb | ||||
| *.o | ||||
| *.obj | ||||
| *.so | ||||
| *.exe | ||||
| *.Z | ||||
| *.elc | ||||
| *.ln | ||||
| core | ||||
| # CVS default ignores end | ||||
| expat/win32/bin/ | ||||
| expat/win32/tmp/ | ||||
| expat/.vs/ | ||||
| expat/**/*.vcxproj.user | ||||
| expat/**/*.suo | ||||
| expat/**/*.sdf | ||||
| expat/**/*.VC.db | ||||
| expat/tests/**/Debug/ | ||||
| expat/tests/**/Release/ | ||||
							
								
								
									
										64
									
								
								library/libexpat/.travis.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										64
									
								
								library/libexpat/.travis.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,64 @@ | ||||
| #! /bin/bash | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| set -e | ||||
|  | ||||
| if [[ ${TRAVIS_OS_NAME} = osx ]]; then | ||||
|     export PATH="/usr/local/opt/coreutils/libexec/gnubin${PATH:+:}${PATH}" | ||||
| fi | ||||
|  | ||||
| PS4='# ' | ||||
| set -x | ||||
|  | ||||
| cd expat | ||||
| ./buildconf.sh | ||||
|  | ||||
| if [[ ${MODE} = distcheck ]]; then | ||||
|     ./configure | ||||
|     make distcheck | ||||
|  | ||||
|     mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} | ||||
|     ln -v -s "$PWD"/expat-*.tar.bz2 ~/rpmbuild/SOURCES/ | ||||
|     rpmbuild -ba expat.spec | ||||
| elif [[ ${MODE} = cmake ]]; then | ||||
|     cmake . | ||||
|     make all test | ||||
|     make DESTDIR="${PWD}"/ROOT install | ||||
|     find ROOT -printf "%P\n" | sort | ||||
| elif [[ ${MODE} = cmake-oos ]]; then | ||||
|     mkdir build | ||||
|     cd build | ||||
|     cmake .. | ||||
|     make all test | ||||
|     make DESTDIR="${PWD}"/ROOT install | ||||
|     find ROOT -printf "%P\n" | sort | ||||
| else | ||||
|     ./qa.sh "${MODE}" | ||||
| fi | ||||
							
								
								
									
										46
									
								
								library/libexpat/.travis.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								library/libexpat/.travis.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| # Copyright (C) 2017 Sebastian Pipping <sebastian@pipping.org> | ||||
| # Licensed under the MIT license | ||||
|  | ||||
| language: cpp | ||||
| os: | ||||
|   - linux | ||||
|   - osx | ||||
| dist: trusty | ||||
|  | ||||
| # Unbreak clang address sanitizer, needs SYS_PTRACE | ||||
| # https://github.com/google/sanitizers/issues/764#issuecomment-276663297 | ||||
| # https://github.com/travis-ci/travis-ci/issues/9033 | ||||
| sudo: required | ||||
|  | ||||
| git: | ||||
|   depth: 1 | ||||
|  | ||||
| env: | ||||
|   global: | ||||
|     - CFLAGS='-g -pipe' | ||||
|   matrix: | ||||
|     - MODE=address | ||||
|     - MODE=cmake | ||||
|     - MODE=cmake-oos | ||||
|     - MODE=distcheck | ||||
|     - MODE=lib-coverage | ||||
|  | ||||
| matrix: | ||||
|   exclude: | ||||
|     - os: osx | ||||
|       env: MODE=lib-coverage | ||||
|  | ||||
| addons: | ||||
|   homebrew: | ||||
|     update: true | ||||
|     brewfile: true | ||||
|   apt: | ||||
|     packages: | ||||
|       - cmake | ||||
|       - docbook2x | ||||
|       - dos2unix | ||||
|       - lzip | ||||
|       - rpm | ||||
|  | ||||
| script: | ||||
|   - ./.travis.sh | ||||
							
								
								
									
										13
									
								
								library/libexpat/Brewfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								library/libexpat/Brewfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| brew "autoconf" | ||||
| brew "automake" | ||||
| brew "cmake" | ||||
| brew "coreutils" | ||||
| brew "docbook2x" | ||||
| brew "dos2unix" | ||||
| brew "gcc" | ||||
| brew "gettext" | ||||
| brew "ghostscript" | ||||
| brew "libtool" | ||||
| brew "lzip" | ||||
| brew "m4" | ||||
| brew "rpm" | ||||
							
								
								
									
										1
									
								
								library/libexpat/README.md
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								library/libexpat/README.md
									
									
									
									
									
										Symbolic link
									
								
							| @@ -0,0 +1 @@ | ||||
| expat/README.md | ||||
							
								
								
									
										175
									
								
								library/libexpat/appveyor.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										175
									
								
								library/libexpat/appveyor.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,175 @@ | ||||
| # AppVeyor configuration | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (C) 2017 José Gutiérrez de la Concha <jose@zeroc.com> | ||||
| # Copyright (C) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| # scripts that are called at very beginning, before repo cloning | ||||
| init: | ||||
| - git config --global core.autocrlf input | ||||
|  | ||||
| # version format | ||||
| version: libexpat-{build} | ||||
|  | ||||
| # set clone depth, clone entire repository history if not defined | ||||
| clone_depth: 1 | ||||
|  | ||||
| # clone directory | ||||
| clone_folder: c:\projects\libexpat | ||||
|  | ||||
| configuration: Debug | ||||
|  | ||||
| # AppVeyor pre-installed software: | ||||
| # https://www.appveyor.com/docs/build-environment/#pre-installed-software | ||||
| # | ||||
| # CMake Visual Studio generators: | ||||
| # https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators | ||||
| environment: | ||||
|   matrix: | ||||
|     # Visual Studio 2010 Win32 | ||||
|     - GENERATOR: Visual Studio 10 2010 | ||||
|       PLATFORM: Win32 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2010 Win32 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 10 2010 | ||||
|       PLATFORM: Win32 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2010 x64 | ||||
|     - GENERATOR: Visual Studio 10 2010 Win64 | ||||
|       PLATFORM: x64 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2010 x64 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 10 2010 Win64 | ||||
|       PLATFORM: x64 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2012 Win32 | ||||
|     - GENERATOR: Visual Studio 11 2012 | ||||
|       PLATFORM: Win32 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2012 Win32 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 11 2012 | ||||
|       PLATFORM: Win32 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2012 x64 | ||||
|     - GENERATOR: Visual Studio 11 2012 Win64 | ||||
|       PLATFORM: x64 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2012 x64 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 11 2012 Win64 | ||||
|       PLATFORM: x64 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2013 Win32 | ||||
|     - GENERATOR: Visual Studio 12 2013 | ||||
|       PLATFORM: Win32 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2013 Win32 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 12 2013 | ||||
|       PLATFORM: Win32 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2013 x64 | ||||
|     - GENERATOR: Visual Studio 12 2013 Win64 | ||||
|       PLATFORM: x64 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2013 x64 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 12 2013 Win64 | ||||
|       PLATFORM: x64 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||||
|  | ||||
|     # Visual Studio 2015 Win32 | ||||
|     - GENERATOR: Visual Studio 14 2015 | ||||
|       PLATFORM: Win32 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||||
|  | ||||
|     # Visual Studio 2015 Win32 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 14 2015 | ||||
|       PLATFORM: Win32 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||||
|  | ||||
|     # Visual Studio 2015 x64 | ||||
|     - GENERATOR: Visual Studio 14 2015 Win64 | ||||
|       PLATFORM: x64 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||||
|  | ||||
|     # Visual Studio 2015 x64 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 14 2015 Win64 | ||||
|       PLATFORM: x64 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||||
|  | ||||
|     # Visual Studio 2017 Win32 | ||||
|     - GENERATOR: Visual Studio 15 2017 | ||||
|       PLATFORM: Win32 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||||
|  | ||||
|     # Visual Studio 2017 Win32 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 15 2017 | ||||
|       PLATFORM: Win32 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||||
|  | ||||
|     # Visual Studio 2017 x64 | ||||
|     - GENERATOR: Visual Studio 15 2017 Win64 | ||||
|       PLATFORM: x64 | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||||
|  | ||||
|     # Visual Studio 2017 x64 XML_UNICODE_WCHAR_T | ||||
|     - GENERATOR: Visual Studio 15 2017 Win64 | ||||
|       PLATFORM: x64 | ||||
|       CFLAGS: -DXML_UNICODE -DXML_UNICODE_WCHAR_T | ||||
|       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||||
|  | ||||
| before_build: | ||||
|   - echo Running cmake... | ||||
|   - cd c:\projects\libexpat | ||||
|   - cmake -DWARNINGS_AS_ERRORS=ON -G"%GENERATOR%" expat | ||||
|  | ||||
| build: | ||||
|   parallel: true                  # enable MSBuild parallel builds | ||||
|   project: expat.sln              # path to Visual Studio solution or project | ||||
|  | ||||
| test_script: | ||||
|   - cp Debug\expatd.dll tests\Debug | ||||
|   - tests\Debug\runtests.exe | ||||
							
								
								
									
										39
									
								
								library/libexpat/expat/.gitignore
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										39
									
								
								library/libexpat/expat/.gitignore
									
									
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| /autom4te.cache/ | ||||
| m4/ | ||||
| CMakeFiles/ | ||||
| Testing/ | ||||
| aclocal.m4 | ||||
| CMakeCache.txt | ||||
| cmake_install.cmake | ||||
| CTestTestfile.cmake | ||||
| install_manifest.txt | ||||
| Makefile | ||||
| .deps | ||||
| Makefile.in | ||||
| .libs | ||||
| *.la | ||||
| configure | ||||
| config.cache | ||||
| config.log | ||||
| config.status | ||||
| expat_config.h.in | ||||
| expat_config.h | ||||
| libtool | ||||
| expat.ncb | ||||
| expat.opt | ||||
| .project | ||||
| expat.pc | ||||
| *.gcda | ||||
| *.gcno | ||||
| *.gcov | ||||
| *.nccout | ||||
| *.expand | ||||
| /callgraph.svg | ||||
| /libexpat.so.* | ||||
| /run.sh | ||||
| build__R* | ||||
| coverage__R* | ||||
| source__R* | ||||
| /expat-*.tar.bz2 | ||||
| /expat-*.tar.bz2.asc | ||||
| /stamp-h1 | ||||
							
								
								
									
										10
									
								
								library/libexpat/expat/AUTHORS
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								library/libexpat/expat/AUTHORS
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| Expat is brought to you by: | ||||
|  | ||||
| Clark Cooper | ||||
| Fred L. Drake, Jr. | ||||
| Greg Stein | ||||
| James Clark | ||||
| Karl Waclawek | ||||
| Rhodri James | ||||
| Sebastian Pipping | ||||
| Steven Solie | ||||
							
								
								
									
										42
									
								
								library/libexpat/expat/CMake.README
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								library/libexpat/expat/CMake.README
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| == How to build expat with cmake (experimental) == | ||||
|  | ||||
| The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual  | ||||
| Studio) and should work on all other platform cmake supports. | ||||
|  | ||||
| Assuming ~/expat-2.2.7 is the source directory of expat, add a subdirectory | ||||
| build and change into that directory: | ||||
| ~/expat-2.2.7$ mkdir build && cd build | ||||
| ~/expat-2.2.7/build$ | ||||
|  | ||||
| From that directory, call cmake first, then call make, make test and  | ||||
| make install in the usual way: | ||||
| ~/expat-2.2.7/build$ cmake .. | ||||
| -- The C compiler identification is GNU | ||||
| -- The CXX compiler identification is GNU | ||||
| .... | ||||
| -- Configuring done | ||||
| -- Generating done | ||||
| -- Build files have been written to: /home/patrick/expat-2.2.7/build | ||||
|  | ||||
| If you want to specify the install location for your files, append  | ||||
| -DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call. | ||||
|  | ||||
| ~/expat-2.2.7/build$ make && make test && make install | ||||
| Scanning dependencies of target expat | ||||
| [  5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o | ||||
| [ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o | ||||
| .... | ||||
| -- Installing: /usr/local/lib/pkgconfig/expat.pc | ||||
| -- Installing: /usr/local/bin/xmlwf | ||||
| -- Installing: /usr/local/share/man/man1/xmlwf.1 | ||||
|  | ||||
| For Windows builds, you must make sure to call cmake from an environment where  | ||||
| your compiler is reachable, that means either you call it from the  | ||||
| Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and | ||||
| make sure that gcc can be called. On Windows, you also might want to specify a  | ||||
| special Generator for CMake: | ||||
| for Visual Studio builds do:  | ||||
| cmake .. -G "Visual Studio 10" && vcexpress expat.sln | ||||
| for mingw builds do:  | ||||
| cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install  | ||||
|     && gmake && gmake install | ||||
							
								
								
									
										21
									
								
								library/libexpat/expat/COPYING
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								library/libexpat/expat/COPYING
									
									
									
									
									
										Normal 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. | ||||
							
								
								
									
										635
									
								
								library/libexpat/expat/Changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										635
									
								
								library/libexpat/expat/Changes
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,635 @@ | ||||
| NOTE: We are looking for help with a few things: | ||||
|       https://github.com/libexpat/libexpat/labels/help%20wanted | ||||
|       If you can help, please get in touch.  Thanks! | ||||
|  | ||||
| Release 2.2.7 Wed June 19 2019 | ||||
|         Security fixes: | ||||
|        #186 #262  Fix extraction of namespace prefixes from XML names; | ||||
|                     XML names with multiple colons could end up in the | ||||
|                     wrong namespace, and take a high amount of RAM and CPU | ||||
|                     resources while processing, opening the door to | ||||
|                     use for denial-of-service attacks | ||||
|  | ||||
|         Other changes: | ||||
|        #195 #197  Autotools/CMake: Utilize -fvisibility=hidden to stop | ||||
|                     exporting non-API symbols | ||||
|             #227  Autotools: Add --without-examples and --without-tests | ||||
|             #228  Autotools: Modernize configure.ac | ||||
|        #245 #246  Autotools: Fix check for -fvisibility=hidden for Clang | ||||
|        #247 #248  Autotools: Fix compilation for lack of docbook2x-man | ||||
|        #236 #258  Autotools: Produce .tar.{gz,lz,xz} release archives | ||||
|             #212  CMake: Make libdir of pkgconfig expat.pc support multilib | ||||
|        #158 #263  CMake: Build man page in PROJECT_BINARY_DIR not _SOURCE_DIR | ||||
|             #219  Remove fallback to bcopy, assume that memmove(3) exists | ||||
|             #257  Use portable "/usr/bin/env bash" shebang (e.g. for OpenBSD) | ||||
|             #243  Windows: Fix syntax of .def module definition files | ||||
|                   Version info bumped from 7:8:6 to 7:9:6 | ||||
|  | ||||
|         Special thanks to: | ||||
|             Benjamin Peterson | ||||
|             Caolán McNamara | ||||
|             Hanno Böck | ||||
|             KangLin | ||||
|             Kishore Kunche | ||||
|             Marco Maggi | ||||
|             Rhodri James | ||||
|             Sebastian Dröge | ||||
|             userwithuid | ||||
|             Yury Gribov | ||||
|  | ||||
| Release 2.2.6 Sun August 12 2018 | ||||
|         Bug fixes: | ||||
|        #170 #206  Avoid doing arithmetic with NULL pointers in XML_GetBuffer | ||||
|        #204 #205  Fix 2.2.5 regression with suspend-resume while parsing | ||||
|                     a document like '<root/>' | ||||
|  | ||||
|         Other changes: | ||||
|        #165 #168  Autotools: Fix docbook-related configure syntax error | ||||
|             #166  Autotools: Avoid grep option `-q` for Solaris | ||||
|             #167  Autotools: Support | ||||
|                     ./configure DOCBOOK_TO_MAN="xmlto man --skip-validation" | ||||
|        #159 #167  Autotools: Support DOCBOOK_TO_MAN command which produces | ||||
|                     xmlwf.1 rather than XMLWF.1; also covers case insensitive | ||||
|                     file systems | ||||
|             #181  Autotools: Drop -rpath option passed to libtool | ||||
|             #188  Autotools: Detect and deny SGML docbook2man as ours is XML | ||||
|             #188  Autotools/CMake: Support command db2x_docbook2man as well | ||||
|             #174  CMake: Introduce option WARNINGS_AS_ERRORS, defaults to OFF | ||||
|        #184 #185  CMake: Introduce option MSVC_USE_STATIC_CRT, defaults to OFF | ||||
|        #207 #208  CMake: Introduce option XML_UNICODE and XML_UNICODE_WCHAR_T, | ||||
|                     both defaulting to OFF | ||||
|             #175  CMake: Prefer check_symbol_exists over check_function_exists | ||||
|             #176  CMake: Create the same pkg-config file as with GNU Autotools | ||||
|        #178 #179  CMake: Use GNUInstallDirs module to set proper defaults for | ||||
|                     install directories | ||||
|             #208  CMake: Utilize expat_config.h.cmake for XML_DEV_URANDOM | ||||
|             #180  Windows: Fix compilation of test suite for Visual Studio 2008 | ||||
|   #131 #173 #202  Address compiler warnings | ||||
|   #187 #190 #200  Fix miscellaneous typos | ||||
|                   Version info bumped from 7:7:6 to 7:8:6 | ||||
|  | ||||
|         Special thanks to: | ||||
|             Anton Maklakov | ||||
|             Benjamin Peterson | ||||
|             Brad King | ||||
|             Franek Korta | ||||
|             Frank Rast | ||||
|             Joe Orton | ||||
|             luzpaz | ||||
|             Pedro Vicente | ||||
|             Rainer Jung | ||||
|             Rhodri James | ||||
|             Rolf Ade | ||||
|             Rolf Eike Beer | ||||
|             Thomas Beutlich | ||||
|             Tomasz Kłoczko | ||||
|  | ||||
| Release 2.2.5 Tue October 31 2017 | ||||
|         Bug fixes: | ||||
|               #8  If the parser runs out of memory, make sure its internal | ||||
|                     state reflects the memory it actually has, not the memory | ||||
|                     it wanted to have. | ||||
|              #11  The default handler wasn't being called when it should for | ||||
|                     a SYSTEM or PUBLIC doctype if an entity declaration handler | ||||
|                     was registered. | ||||
|        #137 #138  Fix a case of mistakenly reported parsing success where | ||||
|                     XML_StopParser was called from an element handler | ||||
|             #162  Function XML_ErrorString was returning NULL rather than | ||||
|                     a message for code XML_ERROR_INVALID_ARGUMENT | ||||
|                     introduced with release 2.2.1 | ||||
|  | ||||
|         Other changes: | ||||
|             #106  xmlwf: Add argument -N adding notation declarations | ||||
|         #75 #106  Test suite: Resolve expected failure cases where xmlwf | ||||
|                     output was incomplete | ||||
|             #127  Windows: Fix test suite compilation | ||||
|        #126 #127  Windows: Fix compilation for Visual Studio 2012 | ||||
|                   Windows: Upgrade shipped project files to Visual Studio 2017 | ||||
|         #33 #132  tests: Mass-fix compilation for XML_UNICODE_WCHAR_T | ||||
|             #129  examples: Fix compilation for XML_UNICODE_WCHAR_T | ||||
|             #130  benchmark: Fix compilation for XML_UNICODE_WCHAR_T | ||||
|             #144  xmlwf: Fix compilation for XML_UNICODE_WCHAR_T; still needs | ||||
|                     Windows or MinGW for 2-byte wchar_t | ||||
|               #9  Address two Clang Static Analyzer false positives | ||||
|              #59  Resolve troublesome macros hiding parser struct membership | ||||
|                     and dereferencing that pointer | ||||
|               #6  Resolve superfluous internal malloc/realloc switch | ||||
|        #153 #155  Improve docbook2x-man detection | ||||
|             #160  Undefine NDEBUG in the test suite (rather than rejecting it) | ||||
|             #161  Address compiler warnings | ||||
|                   Version info bumped from 7:6:6 to 7:7:6 | ||||
|  | ||||
|         Special thanks to: | ||||
|             Benbuck Nason | ||||
|             Hans Wennborg | ||||
|             José Gutiérrez de la Concha | ||||
|             Pedro Monreal Gonzalez | ||||
|             Rhodri James | ||||
|             Rolf Ade | ||||
|             Stephen Groat | ||||
|                  and | ||||
|             Core Infrastructure Initiative | ||||
|  | ||||
| Release 2.2.4 Sat August 19 2017 | ||||
|         Bug fixes: | ||||
|             #115  Fix copying of partial characters for UTF-8 input | ||||
|  | ||||
|         Other changes: | ||||
|             #109  Fix "make check" for non-x86 architectures that default | ||||
|                     to unsigned type char (-128..127 rather than 0..255) | ||||
|             #109  coverage.sh: Cover -funsigned-char | ||||
|                   Autotools: Introduce --without-xmlwf argument | ||||
|              #65  Autotools: Replace handwritten Makefile with GNU Automake | ||||
|              #43  CMake: Auto-detect high quality entropy extractors, add new | ||||
|                     option USE_libbsd=ON to use arc4random_buf of libbsd | ||||
|              #74  CMake: Add -fno-strict-aliasing only where supported | ||||
|             #114  CMake: Always honor manually set BUILD_* options | ||||
|             #114  CMake: Compile man page if docbook2x-man is available, only | ||||
|             #117  Include file tests/xmltest.log.expected in source tarball | ||||
|                     (required for "make run-xmltest") | ||||
|             #117  Include (existing) Visual Studio 2013 files in source tarball | ||||
|                   Improve test suite error output | ||||
|             #111  Fix some typos in documentation | ||||
|                   Version info bumped from 7:5:6 to 7:6:6 | ||||
|  | ||||
|         Special thanks to: | ||||
|             Jakub Wilk | ||||
|             Joe Orton | ||||
|             Lin Tian | ||||
|             Rolf Eike Beer | ||||
|  | ||||
| Release 2.2.3 Wed August 2 2017 | ||||
|         Security fixes: | ||||
|              #82  CVE-2017-11742 -- Windows: Fix DLL hijacking vulnerability | ||||
|                     using Steve Holme's LoadLibrary wrapper for/of cURL | ||||
|  | ||||
|         Bug fixes: | ||||
|              #85  Fix a dangling pointer issue related to realloc | ||||
|  | ||||
|         Other changes: | ||||
|                   Increase code coverage | ||||
|              #91  Linux: Allow getrandom to fail if nonblocking pool has not | ||||
|                     yet been initialized and read /dev/urandom then, instead. | ||||
|                     This is in line with what recent Python does. | ||||
|              #81  Pre-10.7/Lion macOS: Support entropy from arc4random | ||||
|              #86  Check that a UTF-16 encoding in an XML declaration has the | ||||
|                     right endianness | ||||
|         #4 #5 #7  Recover correctly when some reallocations fail | ||||
|                   Repair "./configure && make" for systems without any | ||||
|                     provider of high quality entropy | ||||
|                     and try reading /dev/urandom on those | ||||
|                   Ensure that user-defined character encodings have converter | ||||
|                     functions when they are needed | ||||
|                   Fix mis-leading description of argument -c in xmlwf.1 | ||||
|                   Rely on macro HAVE_ARC4RANDOM_BUF (rather than __CloudABI__) | ||||
|                     for CloudABI | ||||
|             #100  Fix use of SIPHASH_MAIN in siphash.h | ||||
|              #23  Test suite: Fix memory leaks | ||||
|                   Version info bumped from 7:4:6 to 7:5:6 | ||||
|  | ||||
|         Special thanks to: | ||||
|             Chanho Park | ||||
|             Joe Orton | ||||
|             Pascal Cuoq | ||||
|             Rhodri James | ||||
|             Simon McVittie | ||||
|             Vadim Zeitlin | ||||
|             Viktor Szakats | ||||
|                  and | ||||
|             Core Infrastructure Initiative | ||||
|  | ||||
| Release 2.2.2 Wed July 12 2017 | ||||
|         Security fixes: | ||||
|              #43  Protect against compilation without any source of high | ||||
|                     quality entropy enabled, e.g. with CMake build system; | ||||
|                     commit ff0207e6076e9828e536b8d9cd45c9c92069b895 | ||||
|              #60  Windows with _UNICODE: | ||||
|                     Unintended use of LoadLibraryW with a non-wide string | ||||
|                     resulted in failure to load advapi32.dll and degradation | ||||
|                     in quality of used entropy when compiled with _UNICODE for | ||||
|                     Windows; you can launch existing binaries with | ||||
|                     EXPAT_ENTROPY_DEBUG=1 in the environment to inspect the | ||||
|                     quality of entropy used during runtime; commits | ||||
|                     * 95b95032f907ef1cd17ee7a9a1768010a825d61d | ||||
|                     * 73a5a2e9c081f49f2d775cf7ced864158b68dc80 | ||||
|    [MOX-006]      Fix non-NULL parser parameter validation in XML_Parse; | ||||
|                     resulted in NULL dereference, previously; | ||||
|                     commit ac256dafdffc9622ab0dc2c62fcecb0dfcfa71fe | ||||
|  | ||||
|         Bug fixes: | ||||
|              #69  Fix improper use of unsigned long long integer literals | ||||
|  | ||||
|         Other changes: | ||||
|              #73  Start requiring a C99 compiler | ||||
|              #49  Fix "==" Bashism in configure script | ||||
|              #50  Fix too eager getrandom detection for Debian GNU/kFreeBSD | ||||
|              #52    and macOS | ||||
|              #51  Address lack of stdint.h in Visual Studio 2003 to 2008 | ||||
|              #58  Address compile warnings | ||||
|              #68  Fix "./buildconf.sh && ./configure" for some versions | ||||
|                     of Dash for /bin/sh | ||||
|              #72  CMake: Ease use of Expat in context of a parent project | ||||
|                     with multiple CMakeLists.txt files | ||||
|              #72  CMake: Resolve mistaken executable permissions | ||||
|              #76  Address compile warning with -DNDEBUG (not recommended!) | ||||
|              #77  Address compile warning about macro redefinition | ||||
|  | ||||
|         Special thanks to: | ||||
|             Alexander Bluhm | ||||
|             Ben Boeckel | ||||
|             Cătălin Răceanu | ||||
|             Kerin Millar | ||||
|             László Böszörményi | ||||
|             S. P. Zeidler | ||||
|             Segev Finer | ||||
|             Václav Slavík | ||||
|             Victor Stinner | ||||
|             Viktor Szakats | ||||
|                  and | ||||
|             Radically Open Security | ||||
|  | ||||
| Release 2.2.1 Sat June 17 2017 | ||||
|         Security fixes: | ||||
|                   CVE-2017-9233 -- External entity infinite loop DoS | ||||
|                     Details: https://libexpat.github.io/doc/cve-2017-9233/ | ||||
|                     Commit c4bf96bb51dd2a1b0e185374362ee136fe2c9d7f | ||||
|    [MOX-002]      CVE-2016-9063 -- Detect integer overflow; commit | ||||
|                     d4f735b88d9932bd5039df2335eefdd0723dbe20 | ||||
|                     (Fixed version of existing downstream patches!) | ||||
|    (SF.net) #539  Fix regression from fix to CVE-2016-0718 cutting off | ||||
|                     longer tag names; commits | ||||
|                     * 896b6c1fd3b842f377d1b62135dccf0a579cf65d | ||||
|                     * af507cef2c93cb8d40062a0abe43a4f4e9158fb2 | ||||
|              #16    * 0dbbf43fdb20f593ddf4fa1ff67288000dd4a7fd | ||||
|              #25  More integer overflow detection (function poolGrow); commits | ||||
|                     * 810b74e4703dcfdd8f404e3cb177d44684775143 | ||||
|                     * 44178553f3539ce69d34abee77a05e879a7982ac | ||||
|    [MOX-002]      Detect overflow from len=INT_MAX call to XML_Parse; commits | ||||
|                     * 4be2cb5afcc018d996f34bbbce6374b7befad47f | ||||
|                     * 7e5b71b748491b6e459e5c9a1d090820f94544d8 | ||||
|    [MOX-005] #30  Use high quality entropy for hash initialization: | ||||
|                     * arc4random_buf on BSD, systems with libbsd | ||||
|                       (when configured with --with-libbsd), CloudABI | ||||
|                     * RtlGenRandom on Windows XP / Server 2003 and later | ||||
|                     * getrandom on Linux 3.17+ | ||||
|                     In a way, that's still part of CVE-2016-5300. | ||||
|                     https://github.com/libexpat/libexpat/pull/30/commits | ||||
|    [MOX-005]      For the low quality entropy extraction fallback code, | ||||
|                     the parser instance address can no longer leak, commit | ||||
|                     04ad658bd3079dd15cb60fc67087900f0ff4b083 | ||||
|    [MOX-003]      Prevent use of uninitialised variable; commit | ||||
|    [MOX-004]        a4dc944f37b664a3ca7199c624a98ee37babdb4b | ||||
|                   Add missing parameter validation to public API functions | ||||
|                     and dedicated error code XML_ERROR_INVALID_ARGUMENT: | ||||
|    [MOX-006]        * NULL checks; commits | ||||
|                       * d37f74b2b7149a3a95a680c4c4cd2a451a51d60a (merge/many) | ||||
|                       * 9ed727064b675b7180c98cb3d4f75efba6966681 | ||||
|                       * 6a747c837c50114dfa413994e07c0ba477be4534 | ||||
|                     * Negative length (XML_Parse); commit | ||||
|    [MOX-002]          70db8d2538a10f4c022655d6895e4c3e78692e7f | ||||
|    [MOX-001] #35  Change hash algorithm to William Ahern's version of SipHash | ||||
|                     to go further with fixing CVE-2012-0876. | ||||
|                     https://github.com/libexpat/libexpat/pull/39/commits | ||||
|  | ||||
|         Bug fixes: | ||||
|              #32  Fix sharing of hash salt across parsers; | ||||
|                     relevant where XML_ExternalEntityParserCreate is called | ||||
|                     prior to XML_Parse, in particular (e.g. FBReader) | ||||
|              #28  xmlwf: Auto-disable use of memory-mapping (and parsing | ||||
|                     as a single chunk) for files larger than ~1 GB (2^30 bytes) | ||||
|                     rather than failing with error "out of memory" | ||||
|               #3  Fix double free after malloc failure in DTD code; commit | ||||
|                     7ae9c3d3af433cd4defe95234eae7dc8ed15637f | ||||
|              #17  Fix memory leak on parser error for unbound XML attribute | ||||
|                     prefix with new namespaces defined in the same tag; | ||||
|                     found by Google's OSS-Fuzz; commits | ||||
|                     * 16f87daae5a16132e479e4f71862128c7a915c73 | ||||
|                     * b47dbc9745932c160893d433220e462bd605f8cd | ||||
|                   xmlwf on Windows: Add missing calls to CloseHandle | ||||
|  | ||||
|         New features: | ||||
|              #30  Introduced environment switch EXPAT_ENTROPY_DEBUG=1 | ||||
|                     for runtime debugging of entropy extraction | ||||
|  | ||||
|         Other changes: | ||||
|                   Increase code coverage | ||||
|              #33  Reject use of XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2; | ||||
|                     XML_UNICODE_WCHAR_T was never meant to be used outside | ||||
|                     of Windows; 4-byte wchar_t is common on Linux | ||||
|    (SF.net) #538  Start using -fno-strict-aliasing | ||||
|    (SF.net) #540  Support compilation against cloudlibc of CloudABI | ||||
|                   Allow MinGW cross-compilation | ||||
|    (SF.net) #534  CMake: Introduce option "BUILD_doc" (enabled by default) | ||||
|                     to bypass compilation of the xmlwf.1 man page | ||||
|    (SF.net)  pr2  CMake: Introduce option "INSTALL" (enabled by default) | ||||
|                     to bypass installation of expat files | ||||
|                   CMake: Fix ninja support | ||||
|                   Autotools: Add parameters --enable-xml-context [COUNT] | ||||
|                     and --disable-xml-context; default of context of 1024 | ||||
|                     bytes enabled unchanged | ||||
|              #14  Drop AmigaOS 4.x code and includes | ||||
|              #14  Drop ancient build systems: | ||||
|                     * Borland C++ Builder | ||||
|                     * OpenVMS | ||||
|                     * Open Watcom | ||||
|                     * Visual Studio 6.0 | ||||
|                     * Pre-X Mac OS (MPW Makefile) | ||||
|                     If you happen to rely on some of these, please get in | ||||
|                     touch for joining with maintenance. | ||||
|              #10  Move from WIN32 to _WIN32 | ||||
|              #13  Fix "make run-xmltest" order instability | ||||
|                   Address compile warnings | ||||
|                   Bump version info from 7:2:6 to 7:3:6 | ||||
|                   Add AUTHORS file | ||||
|  | ||||
|         Infrastructure: | ||||
|               #1  Migrate from SourceForge to GitHub (except downloads): | ||||
|                     https://github.com/libexpat/ | ||||
|               #1  Re-create http://libexpat.org/ project website | ||||
|                   Start utilizing Travis CI | ||||
|  | ||||
|         Special thanks to: | ||||
|             Andy Wang | ||||
|             Don Lewis | ||||
|             Ed Schouten | ||||
|             Karl Waclawek | ||||
|             Pascal Cuoq | ||||
|             Rhodri James | ||||
|             Sergei Nikulov | ||||
|             Tobias Taschner | ||||
|             Viktor Szakats | ||||
|                  and | ||||
|             Core Infrastructure Initiative | ||||
|             Mozilla Foundation (MOSS Track 3: Secure Open Source) | ||||
|             Radically Open Security | ||||
|  | ||||
| Release 2.2.0 Tue June 21 2016 | ||||
|         Security fixes: | ||||
|             #537  CVE-2016-0718 -- Fix crash on malformed input | ||||
|                   CVE-2016-4472 -- Improve insufficient fix to CVE-2015-1283 / | ||||
|                                    CVE-2015-2716 introduced with Expat 2.1.1 | ||||
|             #499  CVE-2016-5300 -- Use more entropy for hash initialization | ||||
|                                    than the original fix to CVE-2012-0876 | ||||
|             #519  CVE-2012-6702 -- Resolve troublesome internal call to srand | ||||
|                                    that was introduced with Expat 2.1.0 | ||||
|                                    when addressing CVE-2012-0876 (issue #496) | ||||
|  | ||||
|         Bug fixes: | ||||
|                   Fix uninitialized reads of size 1 | ||||
|                     (e.g. in little2_updatePosition) | ||||
|                   Fix detection of UTF-8 character boundaries | ||||
|  | ||||
|         Other changes: | ||||
|             #532  Fix compilation for Visual Studio 2010 (keyword "C99") | ||||
|                   Autotools: Resolve use of "$<" to better support bmake | ||||
|                   Autotools: Add QA script "qa.sh" (and make target "qa") | ||||
|                   Autotools: Respect CXXFLAGS if given | ||||
|                   Autotools: Fix "make run-xmltest" | ||||
|                   Autotools: Have "make run-xmltest" check for expected output | ||||
|              p90  CMake: Fix static build (BUILD_shared=OFF) on Windows | ||||
|             #536  CMake: Add soversion, support -DNO_SONAME=yes to bypass | ||||
|             #323  CMake: Add suffix "d" to differentiate debug from release | ||||
|                   CMake: Define WIN32 with CMake on Windows | ||||
|                   Annotate memory allocators for GCC | ||||
|                   Address all currently known compile warnings | ||||
|                   Make sure that API symbols remain visible despite | ||||
|                     -fvisibility=hidden | ||||
|                   Remove executable flag from source files | ||||
|                   Resolve COMPILED_FROM_DSP in favor of WIN32 | ||||
|  | ||||
|         Special thanks to: | ||||
|             Björn Lindahl | ||||
|             Christian Heimes | ||||
|             Cristian Rodríguez | ||||
|             Daniel Krügler | ||||
|             Gustavo Grieco | ||||
|             Karl Waclawek | ||||
|             László Böszörményi | ||||
|             Marco Grassi | ||||
|             Pascal Cuoq | ||||
|             Sergei Nikulov | ||||
|             Thomas Beutlich | ||||
|             Warren Young | ||||
|             Yann Droneaud | ||||
|  | ||||
| Release 2.1.1 Sat March 12 2016 | ||||
|         Security fixes: | ||||
|             #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer | ||||
|  | ||||
|         Bug fixes: | ||||
|             #502: Fix potential null pointer dereference | ||||
|             #520: Symbol XML_SetHashSalt was not exported | ||||
|             Output of "xmlwf -h" was incomplete | ||||
|  | ||||
|         Other changes: | ||||
|             #503: Document behavior of calling XML_SetHashSalt with salt 0 | ||||
|             Minor improvements to man page xmlwf(1) | ||||
|             Improvements to the experimental CMake build system | ||||
|             libtool now invoked with --verbose | ||||
|  | ||||
| Release 2.1.0 Sat March 24 2012 | ||||
|         - Security fixes: | ||||
|           #2958794: CVE-2012-1148 - Memory leak in poolGrow. | ||||
|           #2895533: CVE-2012-1147 - Resource leak in readfilemap.c. | ||||
|           #3496608: CVE-2012-0876 - Hash DOS attack. | ||||
|           #2894085: CVE-2009-3560 - Buffer over-read and crash in big2_toUtf8(). | ||||
|           #1990430: CVE-2009-3720 - Parser crash with special UTF-8 sequences. | ||||
|         - Bug Fixes: | ||||
|           #1742315: Harmful XML_ParserCreateNS suggestion. | ||||
|           #1785430: Expat build fails on linux-amd64 with gcc version>=4.1 -O3. | ||||
|           #1983953, 2517952, 2517962, 2649838:  | ||||
|                 Build modifications using autoreconf instead of buildconf.sh. | ||||
|           #2815947, #2884086: OBJEXT and EXEEXT support while building. | ||||
|           #2517938: xmlwf should return non-zero exit status if not well-formed. | ||||
|           #2517946: Wrong statement about XMLDecl in xmlwf.1 and xmlwf.sgml. | ||||
|           #2855609: Dangling positionPtr after error. | ||||
|           #2990652: CMake support. | ||||
|           #3010819: UNEXPECTED_STATE with a trailing "%" in entity value. | ||||
|           #3206497: Uninitialized memory returned from XML_Parse. | ||||
|           #3287849: make check fails on mingw-w64. | ||||
|         - Patches: | ||||
|           #1749198: pkg-config support. | ||||
|           #3010222: Fix for bug #3010819. | ||||
|           #3312568: CMake support. | ||||
|           #3446384: Report byte offsets for attr names and values. | ||||
|         - New Features / API changes: | ||||
|           Added new API member XML_SetHashSalt() that allows setting an initial | ||||
|                 value (salt) for hash calculations. This is part of the fix for | ||||
|                 bug #3496608 to randomize hash parameters. | ||||
|           When compiled with XML_ATTR_INFO defined, adds new API member | ||||
|                 XML_GetAttributeInfo() that allows retrieving the byte | ||||
|                 offsets for attribute names and values (patch #3446384). | ||||
|           Added CMake build system. | ||||
|                 See bug #2990652 and patch #3312568. | ||||
|           Added run-benchmark target to Makefile.in - relies on testdata module | ||||
|                 present in the same relative location as in the repository. | ||||
|            | ||||
| Release 2.0.1 Tue June 5 2007 | ||||
|         - Fixed bugs #1515266, #1515600: The character data handler's calling | ||||
|           of XML_StopParser() was not handled properly; if the parser was | ||||
|           stopped and the handler set to NULL, the parser would segfault. | ||||
|         - Fixed bug #1690883: Expat failed on EBCDIC systems as it assumed | ||||
|           some character constants to be ASCII encoded. | ||||
|         - Minor cleanups of the test harness. | ||||
|         - Fixed xmlwf bug #1513566: "out of memory" error on file size zero. | ||||
|         - Fixed outline.c bug #1543233: missing a final XML_ParserFree() call. | ||||
|         - Fixes and improvements for Windows platform: | ||||
|           bugs #1409451, #1476160, #1548182, #1602769, #1717322. | ||||
|         - Build fixes for various platforms: | ||||
|           HP-UX, Tru64, Solaris 9: patch #1437840, bug #1196180. | ||||
|           All Unix: #1554618 (refreshed config.sub/config.guess). | ||||
|                     #1490371, #1613457: support both, DESTDIR and INSTALL_ROOT, | ||||
|                     without relying on GNU-Make specific features. | ||||
|           #1647805: Patched configure.in to work better with Intel compiler. | ||||
|         - Fixes to Makefile.in to have make check work correctly: | ||||
|           bugs #1408143, #1535603, #1536684. | ||||
|         - Added Open Watcom support: patch #1523242. | ||||
|  | ||||
| Release 2.0.0 Wed Jan 11 2006 | ||||
|         - We no longer use the "check" library for C unit testing; we | ||||
|           always use the (partial) internal implementation of the API. | ||||
|         - Report XML_NS setting via XML_GetFeatureList(). | ||||
|         - Fixed headers for use from C++. | ||||
|         - XML_GetCurrentLineNumber() and  XML_GetCurrentColumnNumber() | ||||
|           now return unsigned integers. | ||||
|         - Added XML_LARGE_SIZE switch to enable 64-bit integers for | ||||
|           byte indexes and line/column numbers. | ||||
|         - Updated to use libtool 1.5.22 (the most recent). | ||||
|         - Added support for AmigaOS. | ||||
|         - Some mostly minor bug fixes. SF issues include: #1006708, | ||||
|           #1021776, #1023646, #1114960, #1156398, #1221160, #1271642. | ||||
|  | ||||
| Release 1.95.8 Fri Jul 23 2004 | ||||
|         - Major new feature: suspend/resume.  Handlers can now request | ||||
|           that a parse be suspended for later resumption or aborted | ||||
|           altogether.  See "Temporarily Stopping Parsing" in the | ||||
|           documentation for more details. | ||||
|         - Some mostly minor bug fixes, but compilation should no | ||||
|           longer generate warnings on most platforms.  SF issues | ||||
|           include: #827319, #840173, #846309, #888329, #896188, #923913, | ||||
|           #928113, #961698, #985192. | ||||
|  | ||||
| Release 1.95.7 Mon Oct 20 2003 | ||||
|         - Fixed enum XML_Status issue (reported on SourceForge many | ||||
|           times), so compilers that are properly picky will be happy. | ||||
|         - Introduced an XMLCALL macro to control the calling | ||||
|           convention used by the Expat API; this macro should be used | ||||
|           to annotate prototypes and definitions of callback | ||||
|           implementations in code compiled with a calling convention | ||||
|           other than the default convention for the host platform. | ||||
|         - Improved ability to build without the configure-generated | ||||
|           expat_config.h header.  This is useful for applications | ||||
|           which embed Expat rather than linking in the library. | ||||
|         - Fixed a variety of bugs: see SF issues #458907, #609603, | ||||
|           #676844, #679754, #692878, #692964, #695401, #699323, #699487, | ||||
|           #820946. | ||||
|         - Improved hash table lookups. | ||||
|         - Added more regression tests and improved documentation. | ||||
|  | ||||
| Release 1.95.6 Tue Jan 28 2003 | ||||
|         - Added XML_FreeContentModel(). | ||||
|         - Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree(). | ||||
|         - Fixed a variety of bugs: see SF issues #615606, #616863, | ||||
|           #618199, #653180, #673791. | ||||
|         - Enhanced the regression test suite. | ||||
|         - Man page improvements: includes SF issue #632146. | ||||
|  | ||||
| Release 1.95.5 Fri Sep 6 2002 | ||||
|         - Added XML_UseForeignDTD() for improved SAX2 support. | ||||
|         - Added XML_GetFeatureList(). | ||||
|         - Defined XML_Bool type and the values XML_TRUE and XML_FALSE. | ||||
|         - Use an incomplete struct instead of a void* for the parser | ||||
|           (may not retain). | ||||
|         - Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected. | ||||
|         - Finally fixed bug where default handler would report DTD | ||||
|           events that were already handled by another handler. | ||||
|           Initial patch contributed by Darryl Miles. | ||||
|         - Removed unnecessary DllMain() function that caused static | ||||
|           linking into a DLL to be difficult. | ||||
|         - Added VC++ projects for building static libraries. | ||||
|         - Reduced line-length for all source code and headers to be | ||||
|           no longer than 80 characters, to help with AS/400 support. | ||||
|         - Reduced memory copying during parsing (SF patch #600964). | ||||
|         - Fixed a variety of bugs: see SF issues #580793, #434664, | ||||
|           #483514, #580503, #581069, #584041, #584183, #584832, #585537, | ||||
|           #596555, #596678, #598352, #598944, #599715, #600479, #600971. | ||||
|  | ||||
| Release 1.95.4 Fri Jul 12 2002 | ||||
|         - Added support for VMS, contributed by Craig Berry.  See | ||||
|           vms/README.vms for more information. | ||||
|         - Added Mac OS (classic) support, with a makefile for MPW, | ||||
|           contributed by Thomas Wegner and Daryle Walker. | ||||
|         - Added Borland C++ Builder 5 / BCC 5.5 support, contributed | ||||
|           by Patrick McConnell (SF patch #538032). | ||||
|         - Fixed a variety of bugs: see SF issues #441449, #563184, | ||||
|           #564342, #566334, #566901, #569461, #570263, #575168, #579196. | ||||
|         - Made skippedEntityHandler conform to SAX2 (see source comment) | ||||
|         - Re-implemented WFC: Entity Declared from XML 1.0 spec and | ||||
|           added a new error "entity declared in parameter entity": | ||||
|           see SF bug report #569461 and SF patch #578161 | ||||
|         - Re-implemented section 5.1 from XML 1.0 spec: | ||||
|           see SF bug report #570263 and SF patch #578161 | ||||
|  | ||||
| Release 1.95.3 Mon Jun 3 2002 | ||||
|         - Added a project to the MSVC workspace to create a wchar_t | ||||
|           version of the library; the DLLs are named libexpatw.dll. | ||||
|         - Changed the name of the Windows DLLs from expat.dll to | ||||
|           libexpat.dll; this fixes SF bug #432456. | ||||
|         - Added the XML_ParserReset() API function. | ||||
|         - Fixed XML_SetReturnNSTriplet() to work for element names. | ||||
|         - Made the XML_UNICODE builds usable (thanks, Karl!). | ||||
|         - Allow xmlwf to read from standard input. | ||||
|         - Install a man page for xmlwf on Unix systems. | ||||
|         - Fixed many bugs; see SF bug reports #231864, #461380, #464837, | ||||
|           #466885, #469226, #477667, #484419, #487840, #494749, #496505, | ||||
|           #547350.  Other bugs which we can't test as easily may also | ||||
|           have been fixed, especially in the area of build support. | ||||
|  | ||||
| Release 1.95.2 Fri Jul 27 2001 | ||||
|         - More changes to make MSVC happy with the build; add a single | ||||
|           workspace to support both the library and xmlwf application. | ||||
|         - Added a Windows installer for Windows users; includes | ||||
|           xmlwf.exe. | ||||
|         - Added compile-time constants that can be used to determine the | ||||
|           Expat version | ||||
|         - Removed a lot of GNU-specific dependencies to aide portability | ||||
|           among the various Unix flavors. | ||||
|         - Fix the UTF-8 BOM bug. | ||||
|         - Cleaned up warning messages for several compilers. | ||||
|         - Added the -Wall, -Wstrict-prototypes options for GCC. | ||||
|  | ||||
| Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000 | ||||
|         - Changes to get expat to build under Microsoft compiler | ||||
|         - Removed all aborts and instead return an UNEXPECTED_STATE error. | ||||
|         - Fixed a bug where a stray '%' in an entity value would cause an | ||||
|           abort. | ||||
|         - Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for | ||||
|           finding this oversight. | ||||
|         - Changed default patterns in lib/Makefile.in to fit non-GNU makes | ||||
|           Thanks to robin@unrated.net for reporting and providing an | ||||
|           account to test on. | ||||
|         - The reference had the wrong label for XML_SetStartNamespaceDecl. | ||||
|           Reported by an anonymous user. | ||||
|  | ||||
| Release 1.95.0 Fri Sep 29 2000 | ||||
|         - XML_ParserCreate_MM | ||||
|                 Allows you to set a memory management suite to replace the | ||||
|                 standard malloc,realloc, and free. | ||||
|         - XML_SetReturnNSTriplet | ||||
|                 If you turn this feature on when namespace processing is in | ||||
|                 effect, then qualified, prefixed element and attribute names | ||||
|                 are returned as "uri|name|prefix" where '|' is whatever | ||||
|                 separator character is used in namespace processing. | ||||
|         - Merged in features from perl-expat | ||||
|                 o XML_SetElementDeclHandler | ||||
|                 o XML_SetAttlistDeclHandler | ||||
|                 o XML_SetXmlDeclHandler | ||||
|                 o XML_SetEntityDeclHandler | ||||
|                 o StartDoctypeDeclHandler takes 3 additional parameters: | ||||
|                         sysid, pubid, has_internal_subset | ||||
|                 o Many paired handler setters (like XML_SetElementHandler) | ||||
|                   now have corresponding individual handler setters | ||||
|                 o XML_GetInputContext for getting the input context of | ||||
|                   the current parse position. | ||||
|         - Added reference material | ||||
|         - Packaged into a distribution that builds a sharable library | ||||
							
								
								
									
										69
									
								
								library/libexpat/expat/ConfigureChecks.cmake
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								library/libexpat/expat/ConfigureChecks.cmake
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,69 @@ | ||||
| include(CheckCCompilerFlag) | ||||
| include(CheckCSourceCompiles) | ||||
| include(CheckIncludeFile) | ||||
| include(CheckIncludeFiles) | ||||
| include(CheckSymbolExists) | ||||
| include(TestBigEndian) | ||||
|  | ||||
| check_include_file("dlfcn.h" HAVE_DLFCN_H) | ||||
| check_include_file("fcntl.h" HAVE_FCNTL_H) | ||||
| check_include_file("inttypes.h" HAVE_INTTYPES_H) | ||||
| check_include_file("memory.h" HAVE_MEMORY_H) | ||||
| check_include_file("stdint.h" HAVE_STDINT_H) | ||||
| check_include_file("stdlib.h" HAVE_STDLIB_H) | ||||
| check_include_file("strings.h" HAVE_STRINGS_H) | ||||
| check_include_file("string.h" HAVE_STRING_H) | ||||
| check_include_file("sys/stat.h" HAVE_SYS_STAT_H) | ||||
| check_include_file("sys/types.h" HAVE_SYS_TYPES_H) | ||||
| check_include_file("unistd.h" HAVE_UNISTD_H) | ||||
|  | ||||
| check_symbol_exists("getpagesize" "unistd.h" HAVE_GETPAGESIZE) | ||||
| check_symbol_exists("mmap" "sys/mman.h" HAVE_MMAP) | ||||
| check_symbol_exists("getrandom" "sys/random.h" HAVE_GETRANDOM) | ||||
|  | ||||
| if(USE_libbsd) | ||||
|     set(CMAKE_REQUIRED_LIBRARIES "${LIB_BSD}") | ||||
|     set(_bsd "bsd/") | ||||
| else() | ||||
|     set(_bsd "") | ||||
| endif() | ||||
| check_symbol_exists("arc4random_buf" "${_bsd}stdlib.h" HAVE_ARC4RANDOM_BUF) | ||||
| if(NOT HAVE_ARC4RANDOM_BUF) | ||||
|     check_symbol_exists("arc4random" "${_bsd}stdlib.h" HAVE_ARC4RANDOM) | ||||
| endif() | ||||
| set(CMAKE_REQUIRED_LIBRARIES) | ||||
|  | ||||
| #/* Define to 1 if you have the ANSI C header files. */ | ||||
| check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS) | ||||
|  | ||||
| test_big_endian(WORDS_BIGENDIAN) | ||||
| #/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ | ||||
| if(WORDS_BIGENDIAN) | ||||
|     set(BYTEORDER 4321) | ||||
| else(WORDS_BIGENDIAN) | ||||
|     set(BYTEORDER 1234) | ||||
| endif(WORDS_BIGENDIAN) | ||||
|  | ||||
| if(HAVE_SYS_TYPES_H) | ||||
|     check_symbol_exists("off_t" "sys/types.h" OFF_T) | ||||
|     check_symbol_exists("size_t" "sys/types.h" SIZE_T) | ||||
| else(HAVE_SYS_TYPES_H) | ||||
|     set(OFF_T "long") | ||||
|     set(SIZE_T "unsigned") | ||||
| endif(HAVE_SYS_TYPES_H) | ||||
|  | ||||
| check_c_source_compiles(" | ||||
|         #include <stdlib.h>  /* for NULL */ | ||||
|         #include <unistd.h>  /* for syscall */ | ||||
|         #include <sys/syscall.h>  /* for SYS_getrandom */ | ||||
|         int main() { | ||||
|             syscall(SYS_getrandom, NULL, 0, 0); | ||||
|             return 0; | ||||
|         }" | ||||
|     HAVE_SYSCALL_GETRANDOM) | ||||
|  | ||||
| configure_file(expat_config.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h") | ||||
| add_definitions(-DHAVE_EXPAT_CONFIG_H) | ||||
|  | ||||
| check_c_compiler_flag("-fno-strict-aliasing" FLAG_NO_STRICT_ALIASING) | ||||
| check_c_compiler_flag("-fvisibility=hidden" FLAG_VISIBILITY) | ||||
							
								
								
									
										160
									
								
								library/libexpat/expat/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										160
									
								
								library/libexpat/expat/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,160 @@ | ||||
| # | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| AUTOMAKE_OPTIONS = \ | ||||
|     dist-bzip2 \ | ||||
|     dist-lzip \ | ||||
|     dist-xz \ | ||||
|     foreign \ | ||||
|     subdir-objects | ||||
|  | ||||
| ACLOCAL_AMFLAGS = -I m4 | ||||
| LIBTOOLFLAGS = --verbose | ||||
|  | ||||
| SUBDIRS = lib # lib goes first to build first | ||||
| if WITH_EXAMPLES | ||||
| SUBDIRS += examples | ||||
| endif | ||||
| if WITH_TESTS | ||||
| SUBDIRS += tests   | ||||
| endif | ||||
| if WITH_XMLWF | ||||
| SUBDIRS += xmlwf doc | ||||
| endif | ||||
|  | ||||
| pkgconfig_DATA = expat.pc | ||||
| pkgconfigdir = $(libdir)/pkgconfig | ||||
|  | ||||
|  | ||||
| _EXTRA_DIST_CMAKE = \ | ||||
|     CMakeLists.txt \ | ||||
|     CMake.README \ | ||||
|     ConfigureChecks.cmake \ | ||||
|     expat_config.h.cmake | ||||
|  | ||||
| _EXTRA_DIST_WINDOWS = \ | ||||
|     examples/elements.vcxproj \ | ||||
|     examples/elements.vcxproj.filters \ | ||||
|     examples/outline.vcxproj \ | ||||
|     examples/outline.vcxproj.filters \ | ||||
|     \ | ||||
|     lib/expat_static.vcxproj \ | ||||
|     lib/expat_static.vcxproj.filters \ | ||||
|     lib/expat.vcxproj \ | ||||
|     lib/expat.vcxproj.filters \ | ||||
|     lib/expatw_static.vcxproj \ | ||||
|     lib/expatw_static.vcxproj.filters \ | ||||
|     lib/expatw.vcxproj \ | ||||
|     lib/expatw.vcxproj.filters \ | ||||
|     \ | ||||
|     tests/benchmark/benchmark.sln \ | ||||
|     tests/benchmark/benchmark.vcxproj \ | ||||
|     \ | ||||
|     tests/runtests.sln \ | ||||
|     tests/runtests.vcxproj \ | ||||
|     tests/runtests.vcxproj.filters \ | ||||
|     \ | ||||
|     win32/expat.iss \ | ||||
|     win32/MANIFEST.txt \ | ||||
|     win32/README.txt \ | ||||
|     \ | ||||
|     xmlwf/xmlwf.vcxproj \ | ||||
|     xmlwf/xmlwf.vcxproj.filters \ | ||||
|     \ | ||||
|     expat.sln | ||||
|  | ||||
| EXTRA_DIST = \ | ||||
|     $(_EXTRA_DIST_CMAKE) \ | ||||
|     $(_EXTRA_DIST_WINDOWS) \ | ||||
|     \ | ||||
|     conftools/expat.m4 \ | ||||
|     conftools/get-version.sh \ | ||||
|     conftools/PrintPath \ | ||||
|     \ | ||||
|     Changes \ | ||||
|     README.md \ | ||||
|     test-driver-wrapper.sh | ||||
|  | ||||
|  | ||||
| .PHONY: buildlib | ||||
| buildlib: | ||||
| 	@echo 'ERROR: Running "make buildlib LIBRARY=libexpatw.la"' >&2 | ||||
| 	@echo 'ERROR: is no longer supported.  INSTEAD please:' >&2 | ||||
| 	@echo 'ERROR:' >&2 | ||||
| 	@echo 'ERROR:  * Mass-patch Makefile.am, e.g.' >&2 | ||||
| 	@echo 'ERROR:    # find -name Makefile.am -exec sed \' >&2 | ||||
| 	@echo 'ERROR:          -e "s,libexpat\.la,libexpatw.la," \' >&2 | ||||
| 	@echo 'ERROR:          -e "s,libexpat_la,libexpatw_la," \' >&2 | ||||
| 	@echo 'ERROR:          -i {} +' >&2 | ||||
| 	@echo 'ERROR:' >&2 | ||||
| 	@echo 'ERROR:  * Run automake to re-generate Makefile.in files' >&2 | ||||
| 	@echo 'ERROR:' >&2 | ||||
| 	@echo 'ERROR:  * Use "./configure --without-xmlwf" and/or' >&2 | ||||
| 	@echo 'ERROR:    "make -C lib all install" to bypass compilation' >&2 | ||||
| 	@echo 'ERROR:    of xmlwf (e.g. with -DXML_UNICODE)' >&2 | ||||
| 	@echo 'ERROR:' >&2 | ||||
| 	@false | ||||
|  | ||||
|  | ||||
| .PHONY: run-benchmark | ||||
| run-benchmark: | ||||
| 	$(MAKE) -C tests/benchmark | ||||
| 	./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/recset.xml 65535 3 | ||||
|  | ||||
| tests/xmlts.zip: | ||||
| 	if test "$(XMLTS_ZIP)" = ""; then \ | ||||
| 		wget --output-document=tests/xmlts.zip \ | ||||
| 			https://www.w3.org/XML/Test/xmlts20080827.zip; \ | ||||
| 	else \ | ||||
| 		cp $(XMLTS_ZIP) tests/xmlts.zip; \ | ||||
| 	fi | ||||
|  | ||||
| tests/xmlconf: tests/xmlts.zip | ||||
| 	cd tests && unzip -q xmlts.zip | ||||
|  | ||||
| .PHONY: run-xmltest | ||||
| run-xmltest: tests/xmlconf | ||||
| if WITH_XMLWF | ||||
| 	$(MAKE) -C xmlwf | ||||
| 	tests/xmltest.sh "$(PWD)/run.sh $(PWD)/xmlwf/xmlwf@EXEEXT@" 2>&1 | tee tests/xmltest.log | ||||
| 	dos2unix tests/xmltest.log | ||||
| 	diff -u tests/xmltest.log.expected tests/xmltest.log | ||||
| else | ||||
| 	@echo 'ERROR: xmlwf is needed for "make run-xmltest".' >&2 | ||||
| 	@echo 'ERROR: Please re-configure without --without-xmlwf.' >&2 | ||||
| 	@false | ||||
| endif | ||||
|  | ||||
| .PHONY: qa | ||||
| qa: | ||||
| 	./qa.sh address | ||||
| 	./qa.sh memory | ||||
| 	./qa.sh undefined | ||||
| 	./qa.sh coverage | ||||
							
								
								
									
										127
									
								
								library/libexpat/expat/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										127
									
								
								library/libexpat/expat/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,127 @@ | ||||
| [](https://travis-ci.org/libexpat/libexpat) | ||||
| [](https://ci.appveyor.com/project/libexpat/libexpat) | ||||
| [](https://repology.org/metapackage/expat/versions) | ||||
|  | ||||
|  | ||||
| # Expat, Release 2.2.7 | ||||
|  | ||||
| This is Expat, a C library for parsing XML, started by | ||||
| [James Clark](https://en.wikipedia.org/wiki/James_Clark_(programmer)) in 1997. | ||||
| Expat is a stream-oriented XML parser.  This means that you register | ||||
| handlers with the parser before starting the parse.  These handlers | ||||
| are called when the parser discovers the associated structures in the | ||||
| document being parsed.  A start tag is an example of the kind of | ||||
| structures for which you may register handlers. | ||||
|  | ||||
| Windows users should use the | ||||
| [`expat_win32` package](https://sourceforge.net/projects/expat/files/expat_win32/), | ||||
| which includes both precompiled libraries and executables, and source code for | ||||
| developers. | ||||
|  | ||||
| Expat is [free software](https://www.gnu.org/philosophy/free-sw.en.html). | ||||
| You may copy, distribute, and modify it under the terms of the License | ||||
| contained in the file | ||||
| [`COPYING`](https://github.com/libexpat/libexpat/blob/master/expat/COPYING) | ||||
| distributed with this package. | ||||
| This license is the same as the MIT/X Consortium license. | ||||
|  | ||||
| If you are building Expat from a check-out from the | ||||
| [Git repository](https://github.com/libexpat/libexpat/), | ||||
| you need to run a script that generates the configure script using the | ||||
| GNU autoconf and libtool tools.  To do this, you need to have | ||||
| autoconf 2.58 or newer. Run the script like this: | ||||
|  | ||||
| ```console | ||||
| ./buildconf.sh | ||||
| ``` | ||||
|  | ||||
| Once this has been done, follow the same instructions as for building | ||||
| from a source distribution. | ||||
|  | ||||
| To build Expat from a source distribution, you first run the | ||||
| configuration shell script in the top level distribution directory: | ||||
|  | ||||
| ```console | ||||
| ./configure | ||||
| ``` | ||||
|  | ||||
| There are many options which you may provide to configure (which you | ||||
| can discover by running configure with the `--help` option).  But the | ||||
| one of most interest is the one that sets the installation directory. | ||||
| By default, the configure script will set things up to install | ||||
| libexpat into `/usr/local/lib`, `expat.h` into `/usr/local/include`, and | ||||
| `xmlwf` into `/usr/local/bin`.  If, for example, you'd prefer to install | ||||
| into `/home/me/mystuff/lib`, `/home/me/mystuff/include`, and | ||||
| `/home/me/mystuff/bin`, you can tell `configure` about that with: | ||||
|  | ||||
| ```console | ||||
| ./configure --prefix=/home/me/mystuff | ||||
| ``` | ||||
|  | ||||
| Another interesting option is to enable 64-bit integer support for | ||||
| line and column numbers and the over-all byte index: | ||||
|  | ||||
| ```console | ||||
| ./configure CPPFLAGS=-DXML_LARGE_SIZE | ||||
| ``` | ||||
|  | ||||
| However, such a modification would be a breaking change to the ABI | ||||
| and is therefore not recommended for general use — e.g. as part of | ||||
| a Linux distribution — but rather for builds with special requirements. | ||||
|  | ||||
| After running the configure script, the `make` command will build | ||||
| things and `make install` will install things into their proper | ||||
| location.  Have a look at the `Makefile` to learn about additional | ||||
| `make` options.  Note that you need to have write permission into | ||||
| the directories into which things will be installed. | ||||
|  | ||||
| If you are interested in building Expat to provide document | ||||
| information in UTF-16 encoding rather than the default UTF-8, follow | ||||
| these instructions (after having run `make distclean`). | ||||
| Please note that we configure with `--without-xmlwf` as xmlwf does not | ||||
| support this mode of compilation (yet): | ||||
|  | ||||
| 1. Mass-patch `Makefile.am` files to use `libexpatw.la` for a library name: | ||||
|    <br/> | ||||
|    `find -name Makefile.am -exec sed | ||||
|        -e 's,libexpat\.la,libexpatw.la,' | ||||
|        -e 's,libexpat_la,libexpatw_la,' | ||||
|        -i {} +` | ||||
|  | ||||
| 1. Run `automake` to re-write `Makefile.in` files:<br/> | ||||
|    `automake` | ||||
|  | ||||
| 1. For UTF-16 output as unsigned short (and version/error strings as char), | ||||
|    run:<br/> | ||||
|    `./configure CPPFLAGS=-DXML_UNICODE --without-xmlwf`<br/> | ||||
|    For UTF-16 output as `wchar_t` (incl. version/error strings), run:<br/> | ||||
|    `./configure CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS=-DXML_UNICODE_WCHAR_T | ||||
|        --without-xmlwf` | ||||
|    <br/>Note: The latter requires libc compiled with `-fshort-wchar`, as well. | ||||
|  | ||||
| 1. Run `make` (which excludes xmlwf). | ||||
|  | ||||
| 1. Run `make install` (again, excludes xmlwf). | ||||
|  | ||||
| Using `DESTDIR` is supported.  It works as follows: | ||||
|  | ||||
| ```console | ||||
| make install DESTDIR=/path/to/image | ||||
| ``` | ||||
|  | ||||
| overrides the in-makefile set `DESTDIR`, because variable-setting priority is | ||||
|  | ||||
| 1. commandline | ||||
| 1. in-makefile | ||||
| 1. environment | ||||
|  | ||||
| Note: This only applies to the Expat library itself, building UTF-16 versions | ||||
| of xmlwf and the tests is currently not supported. | ||||
|  | ||||
| When using Expat with a project using autoconf for configuration, you | ||||
| can use the probing macro in `conftools/expat.m4` to determine how to | ||||
| include Expat.  See the comments at the top of that file for more | ||||
| information. | ||||
|  | ||||
| A reference manual is available in the file `doc/reference.html` in this | ||||
| distribution. | ||||
							
								
								
									
										2
									
								
								library/libexpat/expat/buildconf.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								library/libexpat/expat/buildconf.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| #! /bin/sh | ||||
| exec autoreconf --warnings=all --install --verbose "$@" | ||||
							
								
								
									
										3
									
								
								library/libexpat/expat/clean_coverage.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								library/libexpat/expat/clean_coverage.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| rm -r build__* | ||||
| rm -r coverage__* | ||||
| rm -r source__* | ||||
							
								
								
									
										11
									
								
								library/libexpat/expat/conftools/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								library/libexpat/expat/conftools/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| compile | ||||
| config.guess | ||||
| config.sub | ||||
| depcomp | ||||
| install-sh | ||||
| libtool.m4 | ||||
| ltconfig | ||||
| ltmain.sh | ||||
| missing | ||||
| test-driver | ||||
| ar-lib | ||||
							
								
								
									
										116
									
								
								library/libexpat/expat/conftools/PrintPath
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										116
									
								
								library/libexpat/expat/conftools/PrintPath
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,116 @@ | ||||
| #!/bin/sh | ||||
| # Look for program[s] somewhere in $PATH. | ||||
| # | ||||
| # Options: | ||||
| #  -s | ||||
| #    Do not print out full pathname. (silent) | ||||
| #  -pPATHNAME | ||||
| #    Look in PATHNAME instead of $PATH | ||||
| # | ||||
| # Usage: | ||||
| #  PrintPath [-s] [-pPATHNAME] program [program ...] | ||||
| # | ||||
| # Initially written by Jim Jagielski for the Apache configuration mechanism | ||||
| #  (with kudos to Kernighan/Pike) | ||||
| # | ||||
| # This script falls under the Apache License. | ||||
| # See http://www.apache.org/licenses/LICENSE | ||||
|  | ||||
| ## | ||||
| # Some "constants" | ||||
| ## | ||||
| pathname=$PATH | ||||
| echo="yes" | ||||
|  | ||||
| ## | ||||
| # Find out what OS we are running for later on | ||||
| ## | ||||
| os=`(uname) 2>/dev/null` | ||||
|  | ||||
| ## | ||||
| # Parse command line | ||||
| ## | ||||
| for args in $* | ||||
| do | ||||
|     case $args in | ||||
| 	-s  ) echo="no" ;; | ||||
| 	-p* ) pathname="`echo $args | sed 's/^..//'`" ;; | ||||
| 	*   ) programs="$programs $args" ;; | ||||
|     esac | ||||
| done | ||||
|  | ||||
| ## | ||||
| # Now we make the adjustments required for OS/2 and everyone | ||||
| # else :) | ||||
| # | ||||
| # First of all, all OS/2 programs have the '.exe' extension. | ||||
| # Next, we adjust PATH (or what was given to us as PATH) to | ||||
| # be whitespace separated directories. | ||||
| # Finally, we try to determine the best flag to use for | ||||
| # test/[] to look for an executable file. OS/2 just has '-r' | ||||
| # but with other OSs, we do some funny stuff to check to see | ||||
| # if test/[] knows about -x, which is the preferred flag. | ||||
| ## | ||||
|  | ||||
| if [ "x$os" = "xOS/2" ] | ||||
| then | ||||
|     ext=".exe" | ||||
|     pathname=`echo -E $pathname | | ||||
|      sed 's/^;/.;/ | ||||
| 	  s/;;/;.;/g | ||||
| 	  s/;$/;./ | ||||
| 	  s/;/ /g | ||||
| 	  s/\\\\/\\//g' ` | ||||
|     test_exec_flag="-r" | ||||
| else | ||||
|     ext=""	# No default extensions | ||||
|     pathname=`echo $pathname | | ||||
|      sed 's/^:/.:/ | ||||
| 	  s/::/:.:/g | ||||
| 	  s/:$/:./ | ||||
| 	  s/:/ /g' ` | ||||
|     # Here is how we test to see if test/[] can handle -x | ||||
|     testfile="pp.t.$$" | ||||
|  | ||||
|     cat > $testfile <<ENDTEST | ||||
| #!/bin/sh | ||||
| if [ -x / ] || [ -x /bin ] || [ -x /bin/ls ]; then | ||||
|     exit 0 | ||||
| fi | ||||
| exit 1 | ||||
| ENDTEST | ||||
|  | ||||
|     if `/bin/sh $testfile 2>/dev/null`; then | ||||
| 	test_exec_flag="-x" | ||||
|     else | ||||
| 	test_exec_flag="-r" | ||||
|     fi | ||||
|     rm -f $testfile | ||||
| fi | ||||
|  | ||||
| for program in $programs | ||||
| do | ||||
|     for path in $pathname | ||||
|     do | ||||
| 	if [ $test_exec_flag $path/${program}${ext} ] && \ | ||||
| 	   [ ! -d $path/${program}${ext} ]; then | ||||
| 	    if [ "x$echo" = "xyes" ]; then | ||||
| 		echo $path/${program}${ext} | ||||
| 	    fi | ||||
| 	    exit 0 | ||||
| 	fi | ||||
|  | ||||
| # Next try without extension (if one was used above) | ||||
| 	if [ "x$ext" != "x" ]; then | ||||
|             if [ $test_exec_flag $path/${program} ] && \ | ||||
|                [ ! -d $path/${program} ]; then | ||||
|                 if [ "x$echo" = "xyes" ]; then | ||||
|                     echo $path/${program} | ||||
|                 fi | ||||
|                 exit 0 | ||||
|             fi | ||||
|         fi | ||||
|     done | ||||
| done | ||||
| exit 1 | ||||
|  | ||||
							
								
								
									
										46
									
								
								library/libexpat/expat/conftools/ax-append-compile-flags.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								library/libexpat/expat/conftools/ax-append-compile-flags.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| # ============================================================================ | ||||
| #  https://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html | ||||
| # ============================================================================ | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #   AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   For every FLAG1, FLAG2 it is checked whether the compiler works with the | ||||
| #   flag.  If it does, the flag is added FLAGS-VARIABLE | ||||
| # | ||||
| #   If FLAGS-VARIABLE is not specified, the current language's flags (e.g. | ||||
| #   CFLAGS) is used.  During the check the flag is always added to the | ||||
| #   current language's flags. | ||||
| # | ||||
| #   If EXTRA-FLAGS is defined, it is added to the current language's default | ||||
| #   flags (e.g. CFLAGS) when the check is done.  The check is thus made with | ||||
| #   the flags: "CFLAGS EXTRA-FLAGS FLAG".  This can for example be used to | ||||
| #   force the compiler to issue an error when a bad flag is given. | ||||
| # | ||||
| #   INPUT gives an alternative input source to AC_COMPILE_IFELSE. | ||||
| # | ||||
| #   NOTE: This macro depends on the AX_APPEND_FLAG and | ||||
| #   AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with | ||||
| #   AX_APPEND_LINK_FLAGS. | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> | ||||
| # | ||||
| #   Copying and distribution of this file, with or without modification, are | ||||
| #   permitted in any medium without royalty provided the copyright notice | ||||
| #   and this notice are preserved.  This file is offered as-is, without any | ||||
| #   warranty. | ||||
|  | ||||
| #serial 7 | ||||
|  | ||||
| AC_DEFUN([AX_APPEND_COMPILE_FLAGS], | ||||
| [AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) | ||||
| AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) | ||||
| for flag in $1; do | ||||
|   AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) | ||||
| done | ||||
| ])dnl AX_APPEND_COMPILE_FLAGS | ||||
							
								
								
									
										50
									
								
								library/libexpat/expat/conftools/ax-append-flag.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								library/libexpat/expat/conftools/ax-append-flag.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| # =========================================================================== | ||||
| #      https://www.gnu.org/software/autoconf-archive/ax_append_flag.html | ||||
| # =========================================================================== | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #   AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE]) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   FLAG is appended to the FLAGS-VARIABLE shell variable, with a space | ||||
| #   added in between. | ||||
| # | ||||
| #   If FLAGS-VARIABLE is not specified, the current language's flags (e.g. | ||||
| #   CFLAGS) is used.  FLAGS-VARIABLE is not changed if it already contains | ||||
| #   FLAG.  If FLAGS-VARIABLE is unset in the shell, it is set to exactly | ||||
| #   FLAG. | ||||
| # | ||||
| #   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> | ||||
| #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> | ||||
| # | ||||
| #   Copying and distribution of this file, with or without modification, are | ||||
| #   permitted in any medium without royalty provided the copyright notice | ||||
| #   and this notice are preserved.  This file is offered as-is, without any | ||||
| #   warranty. | ||||
|  | ||||
| #serial 8 | ||||
|  | ||||
| AC_DEFUN([AX_APPEND_FLAG], | ||||
| [dnl | ||||
| AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF | ||||
| AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) | ||||
| AS_VAR_SET_IF(FLAGS,[ | ||||
|   AS_CASE([" AS_VAR_GET(FLAGS) "], | ||||
|     [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], | ||||
|     [ | ||||
|      AS_VAR_APPEND(FLAGS,[" $1"]) | ||||
|      AC_RUN_LOG([: FLAGS="$FLAGS"]) | ||||
|     ]) | ||||
|   ], | ||||
|   [ | ||||
|   AS_VAR_SET(FLAGS,[$1]) | ||||
|   AC_RUN_LOG([: FLAGS="$FLAGS"]) | ||||
|   ]) | ||||
| AS_VAR_POPDEF([FLAGS])dnl | ||||
| ])dnl AX_APPEND_FLAG | ||||
							
								
								
									
										44
									
								
								library/libexpat/expat/conftools/ax-append-link-flags.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								library/libexpat/expat/conftools/ax-append-link-flags.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| # =========================================================================== | ||||
| #   https://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html | ||||
| # =========================================================================== | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #   AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   For every FLAG1, FLAG2 it is checked whether the linker works with the | ||||
| #   flag.  If it does, the flag is added FLAGS-VARIABLE | ||||
| # | ||||
| #   If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is | ||||
| #   used. During the check the flag is always added to the linker's flags. | ||||
| # | ||||
| #   If EXTRA-FLAGS is defined, it is added to the linker's default flags | ||||
| #   when the check is done.  The check is thus made with the flags: "LDFLAGS | ||||
| #   EXTRA-FLAGS FLAG".  This can for example be used to force the linker to | ||||
| #   issue an error when a bad flag is given. | ||||
| # | ||||
| #   INPUT gives an alternative input source to AC_COMPILE_IFELSE. | ||||
| # | ||||
| #   NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. | ||||
| #   Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> | ||||
| # | ||||
| #   Copying and distribution of this file, with or without modification, are | ||||
| #   permitted in any medium without royalty provided the copyright notice | ||||
| #   and this notice are preserved.  This file is offered as-is, without any | ||||
| #   warranty. | ||||
|  | ||||
| #serial 7 | ||||
|  | ||||
| AC_DEFUN([AX_APPEND_LINK_FLAGS], | ||||
| [AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) | ||||
| AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) | ||||
| for flag in $1; do | ||||
|   AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3], [$4]) | ||||
| done | ||||
| ])dnl AX_APPEND_LINK_FLAGS | ||||
							
								
								
									
										74
									
								
								library/libexpat/expat/conftools/ax-check-compile-flag.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								library/libexpat/expat/conftools/ax-check-compile-flag.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,74 @@ | ||||
| # =========================================================================== | ||||
| #   http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html | ||||
| # =========================================================================== | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #   AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   Check whether the given FLAG works with the current language's compiler | ||||
| #   or gives an error.  (Warnings, however, are ignored) | ||||
| # | ||||
| #   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on | ||||
| #   success/failure. | ||||
| # | ||||
| #   If EXTRA-FLAGS is defined, it is added to the current language's default | ||||
| #   flags (e.g. CFLAGS) when the check is done.  The check is thus made with | ||||
| #   the flags: "CFLAGS EXTRA-FLAGS FLAG".  This can for example be used to | ||||
| #   force the compiler to issue an error when a bad flag is given. | ||||
| # | ||||
| #   INPUT gives an alternative input source to AC_COMPILE_IFELSE. | ||||
| # | ||||
| #   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this | ||||
| #   macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> | ||||
| #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> | ||||
| # | ||||
| #   This program is free software: you can redistribute it and/or modify it | ||||
| #   under the terms of the GNU General Public License as published by the | ||||
| #   Free Software Foundation, either version 3 of the License, or (at your | ||||
| #   option) any later version. | ||||
| # | ||||
| #   This program is distributed in the hope that it will be useful, but | ||||
| #   WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||||
| #   Public License for more details. | ||||
| # | ||||
| #   You should have received a copy of the GNU General Public License along | ||||
| #   with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
| # | ||||
| #   As a special exception, the respective Autoconf Macro's copyright owner | ||||
| #   gives unlimited permission to copy, distribute and modify the configure | ||||
| #   scripts that are the output of Autoconf when processing the Macro. You | ||||
| #   need not follow the terms of the GNU General Public License when using | ||||
| #   or distributing such scripts, even though portions of the text of the | ||||
| #   Macro appear in them. The GNU General Public License (GPL) does govern | ||||
| #   all other use of the material that constitutes the Autoconf Macro. | ||||
| # | ||||
| #   This special exception to the GPL applies to versions of the Autoconf | ||||
| #   Macro released by the Autoconf Archive. When you make and distribute a | ||||
| #   modified version of the Autoconf Macro, you may extend this special | ||||
| #   exception to the GPL to apply to your modified version as well. | ||||
|  | ||||
| #serial 4 | ||||
|  | ||||
| AC_DEFUN([AX_CHECK_COMPILE_FLAG], | ||||
| [AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF | ||||
| AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl | ||||
| AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ | ||||
|   ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS | ||||
|   _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" | ||||
|   AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], | ||||
|     [AS_VAR_SET(CACHEVAR,[yes])], | ||||
|     [AS_VAR_SET(CACHEVAR,[no])]) | ||||
|   _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) | ||||
| AS_VAR_IF(CACHEVAR,yes, | ||||
|   [m4_default([$2], :)], | ||||
|   [m4_default([$3], :)]) | ||||
| AS_VAR_POPDEF([CACHEVAR])dnl | ||||
| ])dnl AX_CHECK_COMPILE_FLAGS | ||||
							
								
								
									
										53
									
								
								library/libexpat/expat/conftools/ax-check-link-flag.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								library/libexpat/expat/conftools/ax-check-link-flag.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| # =========================================================================== | ||||
| #    https://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html | ||||
| # =========================================================================== | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #   AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   Check whether the given FLAG works with the linker or gives an error. | ||||
| #   (Warnings, however, are ignored) | ||||
| # | ||||
| #   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on | ||||
| #   success/failure. | ||||
| # | ||||
| #   If EXTRA-FLAGS is defined, it is added to the linker's default flags | ||||
| #   when the check is done.  The check is thus made with the flags: "LDFLAGS | ||||
| #   EXTRA-FLAGS FLAG".  This can for example be used to force the linker to | ||||
| #   issue an error when a bad flag is given. | ||||
| # | ||||
| #   INPUT gives an alternative input source to AC_LINK_IFELSE. | ||||
| # | ||||
| #   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this | ||||
| #   macro in sync with AX_CHECK_{PREPROC,COMPILE}_FLAG. | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> | ||||
| #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> | ||||
| # | ||||
| #   Copying and distribution of this file, with or without modification, are | ||||
| #   permitted in any medium without royalty provided the copyright notice | ||||
| #   and this notice are preserved.  This file is offered as-is, without any | ||||
| #   warranty. | ||||
|  | ||||
| #serial 6 | ||||
|  | ||||
| AC_DEFUN([AX_CHECK_LINK_FLAG], | ||||
| [AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF | ||||
| AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_ldflags_$4_$1])dnl | ||||
| AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [ | ||||
|   ax_check_save_flags=$LDFLAGS | ||||
|   LDFLAGS="$LDFLAGS $4 $1" | ||||
|   AC_LINK_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], | ||||
|     [AS_VAR_SET(CACHEVAR,[yes])], | ||||
|     [AS_VAR_SET(CACHEVAR,[no])]) | ||||
|   LDFLAGS=$ax_check_save_flags]) | ||||
| AS_VAR_IF(CACHEVAR,yes, | ||||
|   [m4_default([$2], :)], | ||||
|   [m4_default([$3], :)]) | ||||
| AS_VAR_POPDEF([CACHEVAR])dnl | ||||
| ])dnl AX_CHECK_LINK_FLAGS | ||||
							
								
								
									
										37
									
								
								library/libexpat/expat/conftools/ax-require-defined.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								library/libexpat/expat/conftools/ax-require-defined.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| # =========================================================================== | ||||
| #    https://www.gnu.org/software/autoconf-archive/ax_require_defined.html | ||||
| # =========================================================================== | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #   AX_REQUIRE_DEFINED(MACRO) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   AX_REQUIRE_DEFINED is a simple helper for making sure other macros have | ||||
| #   been defined and thus are available for use.  This avoids random issues | ||||
| #   where a macro isn't expanded.  Instead the configure script emits a | ||||
| #   non-fatal: | ||||
| # | ||||
| #     ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found | ||||
| # | ||||
| #   It's like AC_REQUIRE except it doesn't expand the required macro. | ||||
| # | ||||
| #   Here's an example: | ||||
| # | ||||
| #     AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org> | ||||
| # | ||||
| #   Copying and distribution of this file, with or without modification, are | ||||
| #   permitted in any medium without royalty provided the copyright notice | ||||
| #   and this notice are preserved. This file is offered as-is, without any | ||||
| #   warranty. | ||||
|  | ||||
| #serial 2 | ||||
|  | ||||
| AC_DEFUN([AX_REQUIRE_DEFINED], [dnl | ||||
|   m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) | ||||
| ])dnl AX_REQUIRE_DEFINED | ||||
							
								
								
									
										43
									
								
								library/libexpat/expat/conftools/expat.m4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								library/libexpat/expat/conftools/expat.m4
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| dnl Check if --with-expat[=PREFIX] is specified and | ||||
| dnl Expat >= 1.95.0 is installed in the system. | ||||
| dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to | ||||
| dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX | ||||
| dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined. | ||||
| dnl If --with-expat has not been specified, set with_expat to 'no'. | ||||
| dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly. | ||||
| dnl This is necessary to adapt a whole lot of packages that have expat | ||||
| dnl bundled as a static library. | ||||
| AC_DEFUN([AM_WITH_EXPAT], | ||||
| [ AC_ARG_WITH(expat, | ||||
| 	      [  --with-expat=PREFIX     Use system Expat library], | ||||
| 	      , with_expat=no) | ||||
|  | ||||
|   AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no) | ||||
|  | ||||
|   EXPAT_CFLAGS= | ||||
|   EXPAT_LIBS= | ||||
|   if test $with_expat != no; then | ||||
| 	if test $with_expat != yes; then | ||||
| 		EXPAT_CFLAGS="-I$with_expat/include" | ||||
| 		EXPAT_LIBS="-L$with_expat/lib" | ||||
| 	fi | ||||
| 	AC_CHECK_LIB(expat, XML_ParserCreate, | ||||
| 		     [ EXPAT_LIBS="$EXPAT_LIBS -lexpat" | ||||
| 		       expat_found=yes ], | ||||
| 		     [ expat_found=no ], | ||||
| 		     "$EXPAT_LIBS") | ||||
| 	if test $expat_found = no; then | ||||
| 		AC_MSG_ERROR([Could not find the Expat library]) | ||||
| 	fi | ||||
| 	expat_save_CFLAGS="$CFLAGS" | ||||
| 	CFLAGS="$CFLAGS $EXPAT_CFLAGS" | ||||
| 	AC_CHECK_HEADERS(expat.h, , expat_found=no) | ||||
| 	if test $expat_found = no; then | ||||
| 		AC_MSG_ERROR([Could not find expat.h]) | ||||
| 	fi | ||||
| 	CFLAGS="$expat_save_CFLAGS" | ||||
|   fi | ||||
|  | ||||
|   AC_SUBST(EXPAT_CFLAGS) | ||||
|   AC_SUBST(EXPAT_LIBS) | ||||
| ]) | ||||
| @@ -0,0 +1,39 @@ | ||||
| # expatcfg-compiler-supports-visibility.m4 -- | ||||
| # | ||||
| # SYNOPSIS | ||||
| # | ||||
| #    EXPATCFG_COMPILER_SUPPORTS_VISIBILITY([ACTION-IF-YES], | ||||
| #                                          [ACTION-IF-NO]) | ||||
| # | ||||
| # DESCRIPTION | ||||
| # | ||||
| #   Check if  the selected compiler supports  the "visibility" attribute | ||||
| #   and  set   the  variable  "expatcfg_cv_compiler_supports_visibility" | ||||
| #   accordingly to "yes" or "no". | ||||
| # | ||||
| #   In addition, execute ACTION-IF-YES or ACTION-IF-NO. | ||||
| # | ||||
| # LICENSE | ||||
| # | ||||
| #   Copyright (c) 2018 The Expat Authors. | ||||
| # | ||||
| #   Copying and distribution of this file, with or without modification, | ||||
| #   are permitted in  any medium without royalty  provided the copyright | ||||
| #   notice and this  notice are preserved.  This file  is offered as-is, | ||||
| #   without any warranty. | ||||
|  | ||||
| AC_DEFUN([EXPATCFG_COMPILER_SUPPORTS_VISIBILITY], | ||||
|   [AC_CACHE_CHECK([whether compiler supports visibility], | ||||
|      [expatcfg_cv_compiler_supports_visibility], | ||||
|      [AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[no]) | ||||
|       AS_VAR_COPY([OLDFLAGS],[CFLAGS]) | ||||
|       AS_VAR_APPEND([CFLAGS],[" -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"]) | ||||
|       AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ | ||||
|           void __attribute__((visibility("default"))) foo(void); | ||||
|           void foo(void) {} | ||||
|         ]])], | ||||
|         [AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[yes])]) | ||||
|       AS_VAR_COPY([CFLAGS],[OLDFLAGS])]) | ||||
|    AS_IF([test "$expatcfg_cv_compiler_supports_visibility" = yes],[$1],[$2])]) | ||||
|  | ||||
| # end of file | ||||
							
								
								
									
										35
									
								
								library/libexpat/expat/conftools/get-version.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										35
									
								
								library/libexpat/expat/conftools/get-version.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| #!/bin/sh | ||||
| # | ||||
| # USAGE: get-version.sh path/to/expat.h | ||||
| # | ||||
| # This script will print Expat's version number on stdout. For example: | ||||
| # | ||||
| #   $ ./conftools/get-version.sh ./lib/expat.h | ||||
| #   1.95.3 | ||||
| #   $ | ||||
| # | ||||
|  | ||||
| if test $# = 0; then | ||||
|   echo "ERROR: pathname for expat.h was not provided." | ||||
|   echo "" | ||||
|   echo "USAGE: $0 path/to/expat.h" | ||||
|   exit 1 | ||||
| fi | ||||
| if test $# != 1; then | ||||
|   echo "ERROR: too many arguments were provided." | ||||
|   echo "" | ||||
|   echo "USAGE: $0 path/to/expat.h" | ||||
|   exit 1 | ||||
| fi | ||||
|  | ||||
| hdr="$1" | ||||
| if test ! -r "$hdr"; then | ||||
|   echo "ERROR: '$hdr' does not exist, or is not readable." | ||||
|   exit 1 | ||||
| fi | ||||
|  | ||||
| MAJOR_VERSION=$(sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' "$hdr") | ||||
| MINOR_VERSION=$(sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' "$hdr") | ||||
| MICRO_VERSION=$(sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' "$hdr") | ||||
|  | ||||
| printf '%s.%s.%s' "$MAJOR_VERSION" "$MINOR_VERSION" "$MICRO_VERSION" | ||||
							
								
								
									
										237
									
								
								library/libexpat/expat/coverage.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										237
									
								
								library/libexpat/expat/coverage.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,237 @@ | ||||
| #! /usr/bin/env bash | ||||
| # Copyright (C) Sebastian Pipping <sebastian@pipping.org> | ||||
| # Licensed under the MIT license | ||||
|  | ||||
| export PS4='# ' | ||||
|  | ||||
|  | ||||
| _get_source_dir() { | ||||
|     echo "source__${version}" | ||||
| } | ||||
|  | ||||
|  | ||||
| _get_build_dir() { | ||||
|     local libbsd_part= | ||||
|     if ${with_libbsd}; then | ||||
|         libbsd_part=__libbsd | ||||
|     fi | ||||
|  | ||||
|     local mingw_part= | ||||
|     if ${with_mingw}; then | ||||
|         mingw_part=__windows | ||||
|     fi | ||||
|  | ||||
|     local char_part= | ||||
|     if ${with_unsigned_char}; then | ||||
|         char_part=__unsigned_char | ||||
|     fi | ||||
|  | ||||
|     echo "build__${version}__unicode_${unicode_enabled}__xml_context_${xml_context}${libbsd_part}${mingw_part}${char_part}" | ||||
| } | ||||
|  | ||||
|  | ||||
| _get_coverage_dir() { | ||||
|     echo "coverage__${version}" | ||||
| } | ||||
|  | ||||
|  | ||||
| _configure() { | ||||
|     local configure_args=() | ||||
|  | ||||
|     ${unicode_enabled} \ | ||||
|             && configure_args+=( CPPFLAGS='-DXML_UNICODE -DXML_UNICODE_WCHAR_T' ) | ||||
|  | ||||
|     if [[ ${xml_context} -eq 0 ]]; then | ||||
|         configure_args+=( --disable-xml-context ) | ||||
|     else | ||||
|         configure_args+=( --enable-xml-context=${xml_context} ) | ||||
|     fi | ||||
|  | ||||
|     ${with_libbsd} && configure_args+=( --with-libbsd ) | ||||
|     ${with_mingw} && configure_args+=( --host=i686-w64-mingw32 ) | ||||
|  | ||||
|     ( | ||||
|         set -x | ||||
|         ./buildconf.sh &> configure.log | ||||
|         ./configure "${configure_args[@]}" "$@" &>> configure.log | ||||
|     ) | ||||
| } | ||||
|  | ||||
|  | ||||
| _copy_to() { | ||||
|     local target_dir="$1" | ||||
|     [[ -d "${target_dir}" ]] && return 0 | ||||
|  | ||||
|     mkdir "${target_dir}" | ||||
|     git archive --format=tar "${version}" | ( cd "${target_dir}" && tar x ) | ||||
| } | ||||
|  | ||||
|  | ||||
| _copy_missing_mingw_libaries() { | ||||
|     # These extra files are copied because | ||||
|     # * coverage GCC flags make them needed | ||||
|     # * With WINEDLLPATH Wine looks for .dll.so in these folders, not .dll | ||||
|     local target="$1" | ||||
|     local mingw_gcc_dll_dir="$(dirname "$(ls -1 /usr/lib*/gcc/i686-w64-mingw32/*/libgcc_s_sjlj-1.dll | head -n1)")" | ||||
|     for dll in libgcc_s_sjlj-1.dll libstdc++-6.dll; do | ||||
|         ( | ||||
|             set -x | ||||
|             ln -s "${mingw_gcc_dll_dir}"/${dll} "${target}"/${dll} | ||||
|         ) | ||||
|     done | ||||
|  | ||||
|     local mingw_pthread_dll_dir="$(dirname "$(ls -1 /usr/i686-w64-mingw32/lib*/libwinpthread-1.dll | head -n1)")" | ||||
|     for dll in libwinpthread-1.dll; do | ||||
|         source="${mingw_pthread_dll_dir}"/${dll} | ||||
|         [[ -e "${source}" ]] || continue | ||||
|         ( | ||||
|             set -x | ||||
|             ln -s "${source}" "${target}"/${dll} | ||||
|         ) | ||||
|     done | ||||
| } | ||||
|  | ||||
|  | ||||
| _run() { | ||||
|     local source_dir="$1" | ||||
|     local build_dir="$2" | ||||
|     local capture_dir=lib | ||||
|  | ||||
|     local BASE_FLAGS='-pipe -Wall -Wextra -pedantic -Wno-overlength-strings' | ||||
|     BASE_FLAGS+=' --coverage --no-inline' | ||||
|  | ||||
|     ${with_unsigned_char} && BASE_FLAGS="${BASE_FLAGS} -funsigned-char" | ||||
|  | ||||
|     local CFLAGS="-std=c99 ${BASE_FLAGS}" | ||||
|     local CXXFLAGS="-std=c++98 ${BASE_FLAGS}" | ||||
|  | ||||
|     ( | ||||
|         set -e | ||||
|         cd "${build_dir}" | ||||
|  | ||||
|         _configure \ | ||||
|                 CFLAGS="${BASE_FLAGS}" \ | ||||
|                 CXXFLAGS="${BASE_FLAGS}" | ||||
|  | ||||
|         ( | ||||
|             set -x | ||||
|             make -C lib &> build.log | ||||
|  | ||||
|             lcov -c -d "${capture_dir}" -i -o "${coverage_info}-zero" &> run.log | ||||
|         ) | ||||
|  | ||||
|         if ${with_mingw}; then | ||||
|             for d in {tests,xmlwf}/.libs ; do | ||||
|                 mkdir -p "${d}" | ||||
|                 _copy_missing_mingw_libaries "${d}" | ||||
|             done | ||||
|         fi | ||||
|  | ||||
|         set -x | ||||
|         make all check run-xmltest | ||||
|  | ||||
|         lcov -c -d "${capture_dir}" -o "${coverage_info}-test" &>> run.log | ||||
|         lcov \ | ||||
|                 -a "${coverage_info}-zero" \ | ||||
|                 -a "${coverage_info}-test" \ | ||||
|                 -o "${coverage_info}-all" \ | ||||
|                 &>> run.log | ||||
|  | ||||
|         # Make sure that files overlap in report despite different build folders | ||||
|         sed "/SF:/ s,${build_dir}/,${source_dir}/," "${coverage_info}-all" > "${coverage_info}" | ||||
|     ) |& sed 's,^,  ,' | ||||
|     res=${PIPESTATUS[0]} | ||||
|  | ||||
|     if [[ ${res} -eq 0 ]]; then | ||||
|         echo PASSED | ||||
|     else | ||||
|         echo FAILED >&2 | ||||
|         return 1 | ||||
|     fi | ||||
| } | ||||
|  | ||||
|  | ||||
| _merge_coverage_info() { | ||||
|     local coverage_dir="$1" | ||||
|     shift | ||||
|     local build_dirs=( "$@" ) | ||||
|  | ||||
|     mkdir -p "${coverage_dir}" | ||||
|     ( | ||||
|         local lcov_merge_args=() | ||||
|         for build_dir in "${build_dirs[@]}"; do | ||||
|             lcov_merge_args+=( -a "${build_dir}/${coverage_info}" ) | ||||
|         done | ||||
|         lcov_merge_args+=( -o "${coverage_dir}/${coverage_info}" ) | ||||
|  | ||||
|         set -x | ||||
|         lcov "${lcov_merge_args[@]}" | ||||
|     ) &> "${coverage_dir}/merge.log" | ||||
| } | ||||
|  | ||||
|  | ||||
| _render_html_report() { | ||||
|     local coverage_dir="$1" | ||||
|     genhtml -o "${coverage_dir}" "${coverage_dir}/${coverage_info}" &> "${coverage_dir}/render.log" | ||||
| } | ||||
|  | ||||
|  | ||||
| _show_summary() { | ||||
|     local coverage_dir="$1" | ||||
|     lcov -q -l "${coverage_dir}/${coverage_info}" | grep -v '^\[' | ||||
| } | ||||
|  | ||||
|  | ||||
| _main() { | ||||
|     version="$(git describe --tags)" | ||||
|     coverage_info=coverage.info | ||||
|  | ||||
|     local build_dirs=() | ||||
|     local source_dir="$(_get_source_dir)" | ||||
|     local coverage_dir="$(_get_coverage_dir)" | ||||
|  | ||||
|     _copy_to "${source_dir}" | ||||
|  | ||||
|     _build_case() { | ||||
|         local build_dir="$(_get_build_dir)" | ||||
|  | ||||
|         echo "[${build_dir}]" | ||||
|         _copy_to "${build_dir}" | ||||
|         _run "${source_dir}" "${build_dir}" | ||||
|  | ||||
|         build_dirs+=( "${build_dir}" ) | ||||
|     } | ||||
|  | ||||
|     # All combinations: | ||||
|     with_unsigned_char=false | ||||
|     with_libbsd=false | ||||
|     for with_mingw in true false ; do | ||||
|         for unicode_enabled in true false ; do | ||||
|             if ${unicode_enabled} && ! ${with_mingw} ; then | ||||
|                 continue | ||||
|             fi | ||||
|  | ||||
|             for xml_context in 0 1024 ; do | ||||
|                 _build_case | ||||
|             done | ||||
|         done | ||||
|     done | ||||
|  | ||||
|     # Single cases: | ||||
|     with_libbsd=true _build_case | ||||
|     with_unsigned_char=true _build_case | ||||
|  | ||||
|     echo | ||||
|     echo 'Merging coverage files...' | ||||
|     _merge_coverage_info "${coverage_dir}" "${build_dirs[@]}" | ||||
|  | ||||
|     echo 'Rendering HTML report...' | ||||
|     _render_html_report "${coverage_dir}" | ||||
|     echo "--> ${coverage_dir}/index.html" | ||||
|  | ||||
|     echo | ||||
|     _show_summary "${coverage_dir}" | ||||
| } | ||||
|  | ||||
|  | ||||
| _main | ||||
							
								
								
									
										29
									
								
								library/libexpat/expat/distribute.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										29
									
								
								library/libexpat/expat/distribute.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| #! /usr/bin/env bash | ||||
| # Copyright (C) 2018 Sebastian Pipping <sebastian@pipping.org> | ||||
| # Licensed under the MIT license | ||||
| # | ||||
| # Creates release tarball and detached GPG signature file for upload | ||||
|  | ||||
| set -e | ||||
|  | ||||
| PS4='# ' | ||||
| set -x | ||||
|  | ||||
| version="$(./conftools/get-version.sh lib/expat.h)" | ||||
|  | ||||
| ./buildconf.sh | ||||
| ./configure | ||||
| make distcheck | ||||
|  | ||||
| extensions=( | ||||
|     gz | ||||
|     bz2 | ||||
|     lz | ||||
|     xz | ||||
| ) | ||||
|  | ||||
| for ext in ${extensions[@]} ; do | ||||
|     archive=expat-${version}.tar.${ext} | ||||
|     gpg --armor --output ${archive}.asc --detach-sign ${archive} | ||||
|     gpg --verify ${archive}.asc ${archive} | ||||
| done | ||||
							
								
								
									
										2
									
								
								library/libexpat/expat/doc/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								library/libexpat/expat/doc/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| /XMLWF.1 | ||||
| /xmlwf.1 | ||||
							
								
								
									
										59
									
								
								library/libexpat/expat/doc/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								library/libexpat/expat/doc/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,59 @@ | ||||
| # | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| .PHONY: dist-hook  # not inside conditional to avoid automake warning | ||||
|  | ||||
| if WITH_DOCBOOK | ||||
| dist_man_MANS = xmlwf.1 | ||||
|  | ||||
| xmlwf.1: xmlwf.xml | ||||
| 	-rm -f $@ | ||||
| 	$(DOCBOOK_TO_MAN) $< | ||||
| 	test -f $@ || mv XMLWF.1 $@ | ||||
| else | ||||
| dist-hook: | ||||
| 	@echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2 | ||||
| 	@false | ||||
| endif | ||||
|  | ||||
| # https://www.gnu.org/software/automake/manual/automake.html#What-Gets-Cleaned | ||||
| .PHONY: clean-local | ||||
| clean-local: clean-local-check | ||||
|  | ||||
| .PHONY: clean-local-check | ||||
| clean-local-check: | ||||
| 	$(RM) xmlwf.1 | ||||
|  | ||||
| EXTRA_DIST = \ | ||||
|     expat.png \ | ||||
|     reference.html \ | ||||
|     style.css \ | ||||
|     valid-xhtml10.png \ | ||||
|     xmlwf.xml | ||||
							
								
								
									
										
											BIN
										
									
								
								library/libexpat/expat/doc/expat.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								library/libexpat/expat/doc/expat.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.0 KiB | 
							
								
								
									
										2394
									
								
								library/libexpat/expat/doc/reference.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2394
									
								
								library/libexpat/expat/doc/reference.html
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										101
									
								
								library/libexpat/expat/doc/style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										101
									
								
								library/libexpat/expat/doc/style.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,101 @@ | ||||
| body { | ||||
|   background-color: white; | ||||
|   border: 0px; | ||||
|   margin: 0px; | ||||
|   padding: 0px; | ||||
| } | ||||
|  | ||||
| .corner { | ||||
|   width: 200px; | ||||
|   height: 80px; | ||||
|   text-align: center; | ||||
| } | ||||
|  | ||||
| .banner { | ||||
|   background-color: rgb(110,139,61); | ||||
|   color: rgb(255,236,176); | ||||
|   padding-left: 2em; | ||||
| } | ||||
|  | ||||
| .banner h1 { | ||||
|   font-size: 200%; | ||||
| } | ||||
|  | ||||
| .content { | ||||
|   padding: 0em 2em 1em 2em; | ||||
| } | ||||
|  | ||||
| .releaseno { | ||||
|   background-color: rgb(110,139,61); | ||||
|   color: rgb(255,236,176); | ||||
|   padding-bottom: 0.3em; | ||||
|   padding-top: 0.5em; | ||||
|   text-align: center; | ||||
|   font-weight: bold; | ||||
| } | ||||
|  | ||||
| .noborder { | ||||
|   border-width: 0px; | ||||
| } | ||||
|  | ||||
| .eg { | ||||
|   padding-left: 1em; | ||||
|   padding-top: .5em; | ||||
|   padding-bottom: .5em; | ||||
|   border: solid thin; | ||||
|   margin: 1em 0; | ||||
|   background-color: tan; | ||||
|   margin-left: 2em; | ||||
|   margin-right: 10%; | ||||
| } | ||||
|  | ||||
| .pseudocode { | ||||
|   padding-left: 1em; | ||||
|   padding-top: .5em; | ||||
|   padding-bottom: .5em; | ||||
|   border: solid thin; | ||||
|   margin: 1em 0; | ||||
|   background-color: rgb(250,220,180); | ||||
|   margin-left: 2em; | ||||
|   margin-right: 10%; | ||||
| } | ||||
|  | ||||
| .handler { | ||||
|   width: 100%; | ||||
|   border-top-width: thin;   | ||||
|   margin-bottom: 1em; | ||||
| } | ||||
|  | ||||
| .handler p { | ||||
|   margin-left: 2em; | ||||
| } | ||||
|  | ||||
| .setter { | ||||
|   font-weight: bold; | ||||
| } | ||||
|  | ||||
| .signature { | ||||
|   color: navy; | ||||
| } | ||||
|  | ||||
| .fcndec { | ||||
|   width: 100%; | ||||
|   border-top-width: thin; | ||||
|   font-weight: bold; | ||||
| } | ||||
|  | ||||
| .fcndef { | ||||
|   margin-left: 2em; | ||||
|   margin-bottom: 2em; | ||||
| } | ||||
|  | ||||
| dd { | ||||
|   margin-bottom: 2em; | ||||
| } | ||||
|  | ||||
| .cpp-symbols dt { | ||||
|   font-family: monospace; | ||||
| } | ||||
| .cpp-symbols dd { | ||||
|   margin-bottom: 1em; | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								library/libexpat/expat/doc/valid-xhtml10.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								library/libexpat/expat/doc/valid-xhtml10.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										452
									
								
								library/libexpat/expat/doc/xmlwf.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										452
									
								
								library/libexpat/expat/doc/xmlwf.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,452 @@ | ||||
| <!DOCTYPE refentry [ | ||||
|   <!-- Fill in your name for FIRSTNAME and SURNAME. --> | ||||
|   <!ENTITY dhfirstname "<firstname>Scott</firstname>"> | ||||
|   <!ENTITY dhsurname   "<surname>Bronson</surname>"> | ||||
|   <!-- Please adjust the date whenever revising the manpage. --> | ||||
|   <!ENTITY dhdate      "<date>March 11, 2016</date>"> | ||||
|   <!-- SECTION should be 1-8, maybe w/ subsection other parameters are | ||||
|        allowed: see man(7), man(1). --> | ||||
|   <!ENTITY dhsection   "<manvolnum>1</manvolnum>"> | ||||
|   <!ENTITY dhemail     "<email>bronson@rinspin.com</email>"> | ||||
|   <!ENTITY dhusername  "Scott Bronson"> | ||||
|   <!ENTITY dhucpackage "<refentrytitle>XMLWF</refentrytitle>"> | ||||
|   <!ENTITY dhpackage   "xmlwf"> | ||||
|  | ||||
|   <!ENTITY debian      "<productname>Debian GNU/Linux</productname>"> | ||||
|   <!ENTITY gnu         "<acronym>GNU</acronym>"> | ||||
| ]> | ||||
|  | ||||
| <refentry> | ||||
|   <refentryinfo> | ||||
|     <address> | ||||
|       &dhemail; | ||||
|     </address> | ||||
|     <author> | ||||
|       &dhfirstname; | ||||
|       &dhsurname; | ||||
|     </author> | ||||
|     <copyright> | ||||
|       <year>2001</year> | ||||
|       <holder>&dhusername;</holder> | ||||
|     </copyright> | ||||
|     &dhdate; | ||||
|   </refentryinfo> | ||||
|   <refmeta> | ||||
|     &dhucpackage; | ||||
|  | ||||
|     &dhsection; | ||||
|   </refmeta> | ||||
|   <refnamediv> | ||||
|     <refname>&dhpackage;</refname> | ||||
|  | ||||
|     <refpurpose>Determines if an XML document is well-formed</refpurpose> | ||||
|   </refnamediv> | ||||
|   <refsynopsisdiv> | ||||
|     <cmdsynopsis> | ||||
|       <command>&dhpackage;</command> | ||||
| 	  <arg><option>-s</option></arg> | ||||
| 	  <arg><option>-n</option></arg> | ||||
| 	  <arg><option>-p</option></arg> | ||||
| 	  <arg><option>-x</option></arg> | ||||
|  | ||||
| 	  <arg><option>-e <replaceable>encoding</replaceable></option></arg> | ||||
| 	  <arg><option>-w</option></arg> | ||||
|  | ||||
| 	  <arg><option>-d <replaceable>output-dir</replaceable></option></arg> | ||||
| 	  <arg><option>-c</option></arg> | ||||
| 	  <arg><option>-m</option></arg> | ||||
|  | ||||
| 	  <arg><option>-r</option></arg> | ||||
| 	  <arg><option>-t</option></arg> | ||||
|           <arg><option>-N</option></arg> | ||||
|  | ||||
| 	  <arg><option>-v</option></arg> | ||||
|  | ||||
| 	  <arg>file ...</arg> | ||||
|     </cmdsynopsis> | ||||
|   </refsynopsisdiv> | ||||
|   | ||||
|   <refsect1> | ||||
|     <title>DESCRIPTION</title> | ||||
|  | ||||
|     <para> | ||||
| 	<command>&dhpackage;</command> uses the Expat library to | ||||
| 	determine if an XML document is well-formed.  It is | ||||
| 	non-validating. | ||||
| 	</para> | ||||
|  | ||||
| 	<para> | ||||
| 	If you do not specify any files on the command-line, and you | ||||
| 	have a recent version of <command>&dhpackage;</command>, the | ||||
| 	input file will be read from standard input. | ||||
| 	</para> | ||||
|  | ||||
|   </refsect1> | ||||
|  | ||||
|   <refsect1> | ||||
|     <title>WELL-FORMED DOCUMENTS</title> | ||||
|  | ||||
| 	<para> | ||||
| 	  A well-formed document must adhere to the | ||||
| 	  following rules: | ||||
| 	</para> | ||||
|  | ||||
| 	<itemizedlist> | ||||
|       <listitem><para> | ||||
| 	    The file begins with an XML declaration.  For instance, | ||||
| 		<literal><?xml version="1.0" standalone="yes"?></literal>. | ||||
| 		<emphasis>NOTE:</emphasis> | ||||
| 		<command>&dhpackage;</command> does not currently | ||||
| 		check for a valid XML declaration. | ||||
|       </para></listitem> | ||||
|       <listitem><para> | ||||
| 		Every start tag is either empty (<tag/>) | ||||
| 		or has a corresponding end tag. | ||||
|       </para></listitem> | ||||
|       <listitem><para> | ||||
| 	    There is exactly one root element.  This element must contain | ||||
| 		all other elements in the document.  Only comments, white | ||||
| 		space, and processing instructions may come after the close | ||||
| 		of the root element. | ||||
|       </para></listitem> | ||||
|       <listitem><para> | ||||
| 		All elements nest properly. | ||||
|       </para></listitem> | ||||
|       <listitem><para> | ||||
| 		All attribute values are enclosed in quotes (either single | ||||
| 		or double). | ||||
|       </para></listitem> | ||||
|     </itemizedlist> | ||||
|  | ||||
| 	<para> | ||||
| 	  If the document has a DTD, and it strictly complies with that | ||||
| 	  DTD, then the document is also considered <emphasis>valid</emphasis>. | ||||
| 	  <command>&dhpackage;</command> is a non-validating parser -- | ||||
| 	  it does not check the DTD.  However, it does support | ||||
| 	  external entities (see the <option>-x</option> option). | ||||
| 	</para> | ||||
|   </refsect1> | ||||
|  | ||||
|   <refsect1> | ||||
|     <title>OPTIONS</title> | ||||
|  | ||||
| <para> | ||||
| When an option includes an argument, you may specify the argument either | ||||
| separately ("<option>-d</option> output") or concatenated with the | ||||
| option ("<option>-d</option>output").  <command>&dhpackage;</command> | ||||
| supports both. | ||||
| </para> | ||||
|  | ||||
|     <variablelist> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-c</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   If the input file is well-formed and <command>&dhpackage;</command> | ||||
|   doesn't encounter any errors, the input file is simply copied to | ||||
|   the output directory unchanged. | ||||
|   This implies no namespaces (turns off <option>-n</option>) and | ||||
|   requires <option>-d</option> to specify an output directory. | ||||
|   		</para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-d output-dir</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Specifies a directory to contain transformed | ||||
|   representations of the input files. | ||||
|   By default, <option>-d</option> outputs a canonical representation | ||||
|   (described below). | ||||
|   You can select different output formats using <option>-c</option>, | ||||
|   <option>-m</option> and <option>-N</option>. | ||||
| 	  </para> | ||||
| 	  <para> | ||||
|   The output filenames will | ||||
|   be exactly the same as the input filenames or "STDIN" if the input is | ||||
|   coming from standard input.  Therefore, you must be careful that the | ||||
|   output file does not go into the same directory as the input | ||||
|   file.  Otherwise, <command>&dhpackage;</command> will delete the | ||||
|   input file before it generates the output file (just like running | ||||
|   <literal>cat < file > file</literal> in most shells). | ||||
| 	  </para> | ||||
| 	  <para>  | ||||
|   Two structurally equivalent XML documents have a byte-for-byte | ||||
|   identical canonical XML representation. | ||||
|   Note that ignorable white space is considered significant and | ||||
|   is treated equivalently to data. | ||||
|   More on canonical XML can be found at | ||||
|   http://www.jclark.com/xml/canonxml.html . | ||||
| 	  </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-e encoding</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|    Specifies the character encoding for the document, overriding | ||||
|    any document encoding declaration.  <command>&dhpackage;</command> | ||||
|    supports four built-in encodings: | ||||
|    	<literal>US-ASCII</literal>, | ||||
| 	<literal>UTF-8</literal>, | ||||
| 	<literal>UTF-16</literal>, and | ||||
| 	<literal>ISO-8859-1</literal>. | ||||
|    Also see the <option>-w</option> option. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-m</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Outputs some strange sort of XML file that completely | ||||
|   describes the input file, including character positions. | ||||
|   Requires <option>-d</option> to specify an output file. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-n</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Turns on namespace processing.  (describe namespaces) | ||||
|   <option>-c</option> disables namespaces. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-N</option></term> | ||||
|         <listitem> | ||||
|           <para> | ||||
|   Adds a doctype and notation declarations to canonical XML output. | ||||
|   This matches the example output used by the formal XML test cases. | ||||
|   Requires <option>-d</option> to specify an output file. | ||||
|           </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-p</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|     Tells xmlwf to process external DTDs and parameter | ||||
|     entities. | ||||
| 	 </para> | ||||
| 	 <para> | ||||
|    Normally <command>&dhpackage;</command> never parses parameter | ||||
|    entities.  <option>-p</option> tells it to always parse them. | ||||
|    <option>-p</option> implies <option>-x</option>. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-r</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|    Normally <command>&dhpackage;</command> memory-maps the XML file | ||||
|    before parsing; this can result in faster parsing on many | ||||
|    platforms. | ||||
|    <option>-r</option> turns off memory-mapping and uses normal file | ||||
|    IO calls instead. | ||||
|    Of course, memory-mapping is automatically turned off | ||||
|    when reading from standard input. | ||||
| 	   </para> | ||||
| 		<para> | ||||
|    Use of memory-mapping can cause some platforms to report | ||||
|    substantially higher memory usage for | ||||
|    <command>&dhpackage;</command>, but this appears to be a matter of | ||||
|    the operating system reporting memory in a strange way; there is | ||||
|    not a leak in <command>&dhpackage;</command>. | ||||
|            </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-s</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Prints an error if the document is not standalone.  | ||||
|   A document is standalone if it has no external subset and no | ||||
|   references to parameter entities. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-t</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Turns on timings.  This tells Expat to parse the entire file, | ||||
|   but not perform any processing. | ||||
|   This gives a fairly accurate idea of the raw speed of Expat itself | ||||
|   without client overhead. | ||||
|   <option>-t</option> turns off most of the output options | ||||
|   (<option>-d</option>, <option>-m</option>, <option>-c</option>, ...). | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-v</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Prints the version of the Expat library being used, including some | ||||
|   information on the compile-time configuration of the library, and | ||||
|   then exits. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-w</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Enables support for Windows code pages. | ||||
|   Normally, <command>&dhpackage;</command> will throw an error if it | ||||
|   runs across an encoding that it is not equipped to handle itself.  With | ||||
|   <option>-w</option>, &dhpackage; will try to use a Windows code | ||||
|   page.  See also <option>-e</option>. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>-x</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|   Turns on parsing external entities. | ||||
|   </para> | ||||
| <para> | ||||
|   Non-validating parsers are not required to resolve external | ||||
|   entities, or even expand entities at all. | ||||
|   Expat always expands internal entities (?), | ||||
|   but external entity parsing must be enabled explicitly. | ||||
|   </para> | ||||
|   <para> | ||||
|   External entities are simply entities that obtain their | ||||
|   data from outside the XML file currently being parsed. | ||||
|   </para> | ||||
|   <para> | ||||
|   This is an example of an internal entity: | ||||
| <literallayout> | ||||
| <!ENTITY vers '1.0.2'> | ||||
| </literallayout> | ||||
|   </para> | ||||
|   <para> | ||||
|   And here are some examples of external entities: | ||||
|  | ||||
| <literallayout> | ||||
| <!ENTITY header SYSTEM "header-&vers;.xml">  (parsed) | ||||
| <!ENTITY logo SYSTEM "logo.png" PNG>         (unparsed) | ||||
| </literallayout> | ||||
|  | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|  | ||||
|       <varlistentry> | ||||
|         <term><option>--</option></term> | ||||
|         <listitem> | ||||
| 		<para> | ||||
|     (Two hyphens.) | ||||
|     Terminates the list of options.  This is only needed if a filename | ||||
|     starts with a hyphen.  For example: | ||||
| 	   </para> | ||||
| <literallayout> | ||||
| &dhpackage; -- -myfile.xml | ||||
| </literallayout> | ||||
| 		<para> | ||||
|     will run <command>&dhpackage;</command> on the file | ||||
|     <filename>-myfile.xml</filename>. | ||||
| 	   </para> | ||||
|         </listitem> | ||||
|       </varlistentry> | ||||
|     </variablelist> | ||||
|  | ||||
| 	<para> | ||||
|     Older versions of <command>&dhpackage;</command> do not support | ||||
|     reading from standard input. | ||||
| 	</para> | ||||
|   </refsect1> | ||||
|  | ||||
|   <refsect1> | ||||
|   <title>OUTPUT</title> | ||||
|     <para> | ||||
| 	If an input file is not well-formed, | ||||
| 	<command>&dhpackage;</command> prints a single line describing | ||||
| 	the problem to standard output.  If a file is well formed, | ||||
| 	<command>&dhpackage;</command> outputs nothing. | ||||
| 	Note that the result code is <emphasis>not</emphasis> set. | ||||
| 	</para> | ||||
|   </refsect1> | ||||
|    | ||||
|   <refsect1> | ||||
|     <title>BUGS</title> | ||||
| 	<para> | ||||
| 	<command>&dhpackage;</command> returns a 0 - noerr result, | ||||
| 	even if the file is not well-formed.  There is no good way for | ||||
| 	a program to use <command>&dhpackage;</command> to quickly | ||||
| 	check a file -- it must parse <command>&dhpackage;</command>'s | ||||
| 	standard output. | ||||
| 	</para> | ||||
| 	<para> | ||||
| 	The errors should go to standard error, not standard output. | ||||
| 	</para> | ||||
| 	<para> | ||||
| 	There should be a way to get <option>-d</option> to send its | ||||
| 	output to standard output rather than forcing the user to send | ||||
| 	it to a file. | ||||
| 	</para> | ||||
| 	<para> | ||||
| 	I have no idea why anyone would want to use the | ||||
| 	<option>-d</option>, <option>-c</option>, and | ||||
| 	<option>-m</option> options.  If someone could explain it to | ||||
| 	me, I'd like to add this information to this manpage. | ||||
| 	</para> | ||||
|   </refsect1> | ||||
|  | ||||
|   <refsect1> | ||||
|     <title>ALTERNATIVES</title> | ||||
| 	<para> | ||||
| 	  Here are some XML validators on the web: | ||||
|  | ||||
| <literallayout> | ||||
| http://www.hcrc.ed.ac.uk/~richard/xml-check.html | ||||
| http://www.stg.brown.edu/service/xmlvalid/ | ||||
| http://www.scripting.com/frontier5/xml/code/xmlValidator.html | ||||
| http://www.xml.com/pub/a/tools/ruwf/check.html | ||||
| </literallayout> | ||||
|  | ||||
| 		 </para> | ||||
|   </refsect1> | ||||
|  | ||||
|   <refsect1> | ||||
|     <title>SEE ALSO</title> | ||||
| 	<para> | ||||
|  | ||||
| <literallayout> | ||||
| The Expat home page:        http://www.libexpat.org/ | ||||
| The W3 XML specification:   http://www.w3.org/TR/REC-xml | ||||
| </literallayout> | ||||
|  | ||||
| 	</para> | ||||
|   </refsect1> | ||||
|  | ||||
|   <refsect1> | ||||
|     <title>AUTHOR</title> | ||||
|     <para> | ||||
| 	  This manual page was written by &dhusername; &dhemail; for | ||||
|       the &debian; system (but may be used by others).  Permission is | ||||
|       granted to copy, distribute and/or modify this document under | ||||
|       the terms of the <acronym>GNU</acronym> Free Documentation | ||||
|       License, Version 1.1. | ||||
| 	</para> | ||||
|   </refsect1> | ||||
| </refentry> | ||||
							
								
								
									
										8
									
								
								library/libexpat/expat/examples/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								library/libexpat/expat/examples/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| Makefile | ||||
| elements | ||||
| elements.plg | ||||
| outline | ||||
| outline.plg | ||||
| Debug | ||||
| Release | ||||
| .libs | ||||
							
								
								
									
										39
									
								
								library/libexpat/expat/examples/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								library/libexpat/expat/examples/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| # | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| AM_CPPFLAGS = -I$(srcdir)/../lib | ||||
|  | ||||
| noinst_PROGRAMS = elements outline | ||||
|  | ||||
| elements_SOURCES = elements.c | ||||
| elements_LDADD = ../lib/libexpat.la | ||||
|  | ||||
| outline_SOURCES = outline.c | ||||
| outline_LDADD = ../lib/libexpat.la | ||||
							
								
								
									
										104
									
								
								library/libexpat/expat/examples/elements.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								library/libexpat/expat/examples/elements.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,104 @@ | ||||
| /* This is simple demonstration of how to use expat. This program | ||||
|    reads an XML document from standard input and writes a line with | ||||
|    the name of each element to standard output indenting child | ||||
|    elements by one tab stop more than their parent element. | ||||
|    It must be used with Expat compiled for UTF-8 output. | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #include <stdio.h> | ||||
| #include <expat.h> | ||||
|  | ||||
| #ifdef XML_LARGE_SIZE | ||||
| # if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 | ||||
| #  define XML_FMT_INT_MOD "I64" | ||||
| # else | ||||
| #  define XML_FMT_INT_MOD "ll" | ||||
| # endif | ||||
| #else | ||||
| # define XML_FMT_INT_MOD "l" | ||||
| #endif | ||||
|  | ||||
| #ifdef XML_UNICODE_WCHAR_T | ||||
| # include <wchar.h> | ||||
| # define XML_FMT_STR "ls" | ||||
| #else | ||||
| # define XML_FMT_STR "s" | ||||
| #endif | ||||
|  | ||||
| static void XMLCALL | ||||
| startElement(void *userData, const XML_Char *name, const XML_Char **atts) | ||||
| { | ||||
|   int i; | ||||
|   int *depthPtr = (int *)userData; | ||||
|   (void)atts; | ||||
|  | ||||
|   for (i = 0; i < *depthPtr; i++) | ||||
|     putchar('\t'); | ||||
|   printf("%" XML_FMT_STR "\n", name); | ||||
|   *depthPtr += 1; | ||||
| } | ||||
|  | ||||
| static void XMLCALL | ||||
| endElement(void *userData, const XML_Char *name) | ||||
| { | ||||
|   int *depthPtr = (int *)userData; | ||||
|   (void)name; | ||||
|  | ||||
|   *depthPtr -= 1; | ||||
| } | ||||
|  | ||||
| int | ||||
| main(int argc, char *argv[]) | ||||
| { | ||||
|   char buf[BUFSIZ]; | ||||
|   XML_Parser parser = XML_ParserCreate(NULL); | ||||
|   int done; | ||||
|   int depth = 0; | ||||
|   (void)argc; | ||||
|   (void)argv; | ||||
|  | ||||
|   XML_SetUserData(parser, &depth); | ||||
|   XML_SetElementHandler(parser, startElement, endElement); | ||||
|   do { | ||||
|     size_t len = fread(buf, 1, sizeof(buf), stdin); | ||||
|     done = len < sizeof(buf); | ||||
|     if (XML_Parse(parser, buf, (int)len, done) == XML_STATUS_ERROR) { | ||||
|       fprintf(stderr, | ||||
|               "%" XML_FMT_STR " at line %" XML_FMT_INT_MOD "u\n", | ||||
|               XML_ErrorString(XML_GetErrorCode(parser)), | ||||
|               XML_GetCurrentLineNumber(parser)); | ||||
|       return 1; | ||||
|     } | ||||
|   } while (!done); | ||||
|   XML_ParserFree(parser); | ||||
|   return 0; | ||||
| } | ||||
							
								
								
									
										140
									
								
								library/libexpat/expat/examples/elements.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								library/libexpat/expat/examples/elements.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,140 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{35262250-C85F-463A-9F6D-670088BFA17E}</ProjectGuid> | ||||
|     <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Release\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Release-elements\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Debug\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Debug-elements\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <IgnoreStandardIncludePath>false</IgnoreStandardIncludePath> | ||||
|       <AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|       <PreprocessorDefinitions>NDEBUG;_CONSOLE;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Release-elements\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Release-elements\elements.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Release-elements\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Release-elements\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <TypeLibraryName>.\..\win32\bin\Release\elements.tlb</TypeLibraryName> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Release\elements.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Release\elements.exe</OutputFile> | ||||
|       <AdditionalLibraryDirectories>..\win32\bin\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||||
|       <AdditionalDependencies>libexpatMT.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|       <PreprocessorDefinitions>_DEBUG;_CONSOLE;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Debug-elements\</AssemblerListingLocation> | ||||
|       <BrowseInformation>true</BrowseInformation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug-elements\elements.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Debug-elements\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Debug-elements\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <TypeLibraryName>.\..\win32\bin\Debug\elements.tlb</TypeLibraryName> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Debug\elements.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Debug\elements.exe</OutputFile> | ||||
|       <AdditionalLibraryDirectories>..\win32\bin\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||||
|       <AdditionalDependencies>libexpatMT.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="elements.c" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ProjectReference Include="..\lib\expat_static.vcxproj"> | ||||
|       <Project>{58a821bc-e4af-4df4-9a54-2baa22b92615}</Project> | ||||
|       <ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||||
|     </ProjectReference> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
							
								
								
									
										22
									
								
								library/libexpat/expat/examples/elements.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								library/libexpat/expat/examples/elements.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup> | ||||
|     <Filter Include="Source Files"> | ||||
|       <UniqueIdentifier>{95d10a62-f554-4b10-a08b-cc74ba9fe102}</UniqueIdentifier> | ||||
|       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Header Files"> | ||||
|       <UniqueIdentifier>{21ef9308-545b-4d8d-8bde-012f925efa3a}</UniqueIdentifier> | ||||
|       <Extensions>h;hpp;hxx;hm;inl</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Resource Files"> | ||||
|       <UniqueIdentifier>{ddac4f51-12d6-4e8f-817c-12c85eb1ffd2}</UniqueIdentifier> | ||||
|       <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> | ||||
|     </Filter> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="elements.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										126
									
								
								library/libexpat/expat/examples/outline.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										126
									
								
								library/libexpat/expat/examples/outline.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,126 @@ | ||||
| /* Read an XML document from standard input and print an element | ||||
|    outline on standard output. | ||||
|    Must be used with Expat compiled for UTF-8 output. | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #include <stdio.h> | ||||
| #include <expat.h> | ||||
|  | ||||
| #ifdef XML_LARGE_SIZE | ||||
| # if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 | ||||
| #  define XML_FMT_INT_MOD "I64" | ||||
| # else | ||||
| #  define XML_FMT_INT_MOD "ll" | ||||
| # endif | ||||
| #else | ||||
| # define XML_FMT_INT_MOD "l" | ||||
| #endif | ||||
|  | ||||
| #ifdef XML_UNICODE_WCHAR_T | ||||
| # define XML_FMT_STR "ls" | ||||
| #else | ||||
| # define XML_FMT_STR "s" | ||||
| #endif | ||||
|  | ||||
| #define BUFFSIZE        8192 | ||||
|  | ||||
| char Buff[BUFFSIZE]; | ||||
|  | ||||
| int Depth; | ||||
|  | ||||
| static void XMLCALL | ||||
| start(void *data, const XML_Char *el, const XML_Char **attr) | ||||
| { | ||||
|   int i; | ||||
|   (void)data; | ||||
|  | ||||
|   for (i = 0; i < Depth; i++) | ||||
|     printf("  "); | ||||
|  | ||||
|   printf("%" XML_FMT_STR, el); | ||||
|  | ||||
|   for (i = 0; attr[i]; i += 2) { | ||||
|     printf(" %" XML_FMT_STR "='%" XML_FMT_STR "'", attr[i], attr[i + 1]); | ||||
|   } | ||||
|  | ||||
|   printf("\n"); | ||||
|   Depth++; | ||||
| } | ||||
|  | ||||
| static void XMLCALL | ||||
| end(void *data, const XML_Char *el) | ||||
| { | ||||
|   (void)data; | ||||
|   (void)el; | ||||
|  | ||||
|   Depth--; | ||||
| } | ||||
|  | ||||
| int | ||||
| main(int argc, char *argv[]) | ||||
| { | ||||
|   XML_Parser p = XML_ParserCreate(NULL); | ||||
|   (void)argc; | ||||
|   (void)argv; | ||||
|  | ||||
|   if (! p) { | ||||
|     fprintf(stderr, "Couldn't allocate memory for parser\n"); | ||||
|     exit(-1); | ||||
|   } | ||||
|  | ||||
|   XML_SetElementHandler(p, start, end); | ||||
|  | ||||
|   for (;;) { | ||||
|     int done; | ||||
|     int len; | ||||
|  | ||||
|     len = (int)fread(Buff, 1, BUFFSIZE, stdin); | ||||
|     if (ferror(stdin)) { | ||||
|       fprintf(stderr, "Read error\n"); | ||||
|       exit(-1); | ||||
|     } | ||||
|     done = feof(stdin); | ||||
|  | ||||
|     if (XML_Parse(p, Buff, len, done) == XML_STATUS_ERROR) { | ||||
|       fprintf(stderr, | ||||
|               "Parse error at line %" XML_FMT_INT_MOD "u:\n%" XML_FMT_STR "\n", | ||||
|               XML_GetCurrentLineNumber(p), | ||||
|               XML_ErrorString(XML_GetErrorCode(p))); | ||||
|       exit(-1); | ||||
|     } | ||||
|  | ||||
|     if (done) | ||||
|       break; | ||||
|   } | ||||
|   XML_ParserFree(p); | ||||
|   return 0; | ||||
| } | ||||
							
								
								
									
										151
									
								
								library/libexpat/expat/examples/outline.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										151
									
								
								library/libexpat/expat/examples/outline.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,151 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Template|Win32"> | ||||
|       <Configuration>Template</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}</ProjectGuid> | ||||
|     <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Debug\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Debug-outline\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Release\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Release-outline\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <MinimalRebuild>true</MinimalRebuild> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|       <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Debug-outline\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug-outline\outline.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Debug-outline\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Debug-outline\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <TypeLibraryName>.\..\win32\bin\Debug\outline.tlb</TypeLibraryName> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Debug\outline.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Debug\outline.exe</OutputFile> | ||||
|       <AdditionalLibraryDirectories>..\win32\bin\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||||
|       <AdditionalDependencies>libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <IgnoreStandardIncludePath>false</IgnoreStandardIncludePath> | ||||
|       <AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|       <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Release-outline\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Release-outline\outline.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Release-outline\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Release-outline\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <TypeLibraryName>.\..\win32\bin\Release\outline.tlb</TypeLibraryName> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Release\outline.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Release\outline.exe</OutputFile> | ||||
|       <AdditionalLibraryDirectories>..\win32\bin\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||||
|       <AdditionalDependencies>libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="outline.c" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ProjectReference Include="..\lib\expat.vcxproj"> | ||||
|       <Project>{45a5074d-66e8-44a4-a03f-018027b528d6}</Project> | ||||
|       <ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||||
|     </ProjectReference> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
							
								
								
									
										22
									
								
								library/libexpat/expat/examples/outline.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								library/libexpat/expat/examples/outline.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup> | ||||
|     <Filter Include="Source Files"> | ||||
|       <UniqueIdentifier>{48092a1f-486d-4bd8-a9ea-d087423ab371}</UniqueIdentifier> | ||||
|       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Header Files"> | ||||
|       <UniqueIdentifier>{d9494f7e-987c-467b-a3e0-ea577aea229d}</UniqueIdentifier> | ||||
|       <Extensions>h;hpp;hxx;hm;inl</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Resource Files"> | ||||
|       <UniqueIdentifier>{7e3cfca9-158f-4e78-be6c-02d599fd9254}</UniqueIdentifier> | ||||
|       <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> | ||||
|     </Filter> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="outline.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										11
									
								
								library/libexpat/expat/expat.pc.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								library/libexpat/expat/expat.pc.in
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| prefix=@prefix@ | ||||
| exec_prefix=@exec_prefix@ | ||||
| libdir=@libdir@ | ||||
| includedir=@includedir@ | ||||
|  | ||||
| Name: expat | ||||
| Version: @PACKAGE_VERSION@ | ||||
| Description: expat XML parser | ||||
| URL: http://www.libexpat.org | ||||
| Libs: -L${libdir} -lexpat | ||||
| Cflags: -I${includedir} | ||||
							
								
								
									
										73
									
								
								library/libexpat/expat/expat.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										73
									
								
								library/libexpat/expat/expat.sln
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,73 @@ | ||||
|  | ||||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||||
| # Visual Studio 2013 | ||||
| VisualStudioVersion = 12.0.40629.0 | ||||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "elements", "examples\elements.vcxproj", "{35262250-C85F-463A-9F6D-670088BFA17E}" | ||||
| EndProject | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "expat", "lib\expat.vcxproj", "{45A5074D-66E8-44A4-A03F-018027B528D6}" | ||||
| EndProject | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "expat_static", "lib\expat_static.vcxproj", "{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}" | ||||
| EndProject | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "expatw", "lib\expatw.vcxproj", "{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}" | ||||
| EndProject | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "expatw_static", "lib\expatw_static.vcxproj", "{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}" | ||||
| EndProject | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "outline", "examples\outline.vcxproj", "{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}" | ||||
| EndProject | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xmlwf", "xmlwf\xmlwf.vcxproj", "{E3C5991F-5238-4168-A179-275D1AC98D7E}" | ||||
| EndProject | ||||
| Global | ||||
| 	GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
| 		Debug|Win32 = Debug|Win32 | ||||
| 		Release|Win32 = Release|Win32 | ||||
| 		Template|Win32 = Template|Win32 | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||||
| 		{35262250-C85F-463A-9F6D-670088BFA17E}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{35262250-C85F-463A-9F6D-670088BFA17E}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{35262250-C85F-463A-9F6D-670088BFA17E}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{35262250-C85F-463A-9F6D-670088BFA17E}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{35262250-C85F-463A-9F6D-670088BFA17E}.Template|Win32.ActiveCfg = Release|Win32 | ||||
| 		{35262250-C85F-463A-9F6D-670088BFA17E}.Template|Win32.Build.0 = Release|Win32 | ||||
| 		{45A5074D-66E8-44A4-A03F-018027B528D6}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{45A5074D-66E8-44A4-A03F-018027B528D6}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{45A5074D-66E8-44A4-A03F-018027B528D6}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{45A5074D-66E8-44A4-A03F-018027B528D6}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{45A5074D-66E8-44A4-A03F-018027B528D6}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{45A5074D-66E8-44A4-A03F-018027B528D6}.Template|Win32.Build.0 = Template|Win32 | ||||
| 		{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}.Template|Win32.Build.0 = Template|Win32 | ||||
| 		{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}.Template|Win32.Build.0 = Template|Win32 | ||||
| 		{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}.Template|Win32.Build.0 = Template|Win32 | ||||
| 		{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{DE74E6FD-E107-4326-B1B0-A0CFEEB64F25}.Template|Win32.Build.0 = Template|Win32 | ||||
| 		{E3C5991F-5238-4168-A179-275D1AC98D7E}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{E3C5991F-5238-4168-A179-275D1AC98D7E}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{E3C5991F-5238-4168-A179-275D1AC98D7E}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{E3C5991F-5238-4168-A179-275D1AC98D7E}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{E3C5991F-5238-4168-A179-275D1AC98D7E}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{E3C5991F-5238-4168-A179-275D1AC98D7E}.Template|Win32.Build.0 = Template|Win32 | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(SolutionProperties) = preSolution | ||||
| 		HideSolutionNode = FALSE | ||||
| 	EndGlobalSection | ||||
| EndGlobal | ||||
							
								
								
									
										139
									
								
								library/libexpat/expat/expat.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										139
									
								
								library/libexpat/expat/expat.spec
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,139 @@ | ||||
| %define version 2.2.7 | ||||
| %define release 1 | ||||
|  | ||||
| Summary: Expat is an XML 1.0 parser written in C. | ||||
| Name: expat | ||||
| Version: %{version} | ||||
| Release: %{release} | ||||
| License: MIT/X | ||||
| Group: Utilities/parsers | ||||
| URL: http://www.libexpat.org/ | ||||
| Source: https://downloads.sourceforge.net/project/expat/expat/%{version}/expat-%{version}.tar.bz2 | ||||
| BuildRoot: /var/tmp/%{name}-buildroot | ||||
|  | ||||
| %description | ||||
| Expat is an XML 1.0 parser written in C by James Clark.  It aims to be | ||||
| fully conforming. It is not a validating XML parser. | ||||
|  | ||||
| %prep | ||||
| %setup | ||||
|  | ||||
| %build | ||||
| ./configure | ||||
| make lib xmlwf | ||||
|  | ||||
| %install | ||||
| rm -rf $RPM_BUILD_ROOT | ||||
| mkdir -p $RPM_BUILD_ROOT/usr/bin | ||||
| mkdir -p $RPM_BUILD_ROOT/usr/lib | ||||
| mkdir -p $RPM_BUILD_ROOT/usr/include | ||||
| make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr | ||||
| install -D xmlwf/xmlwf $RPM_BUILD_ROOT/usr/bin/xmlwf | ||||
|  | ||||
| %files | ||||
| %doc COPYING README.md doc/reference.html doc/style.css doc/*.png | ||||
| /usr/bin/xmlwf | ||||
| /usr/lib | ||||
| /usr/include/expat.h | ||||
| /usr/include/expat_config.h | ||||
| /usr/include/expat_external.h | ||||
| /usr/share/doc/expat/AUTHORS | ||||
| /usr/share/doc/expat/changelog | ||||
| /usr/share/man/man1/xmlwf.1.gz | ||||
|  | ||||
| %changelog | ||||
| * Wed Jun 19 2019 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.7-1] | ||||
| - Update for the 2.2.7 release. | ||||
|  | ||||
| * Sun Aug 12 2018 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.6-1] | ||||
| - Update for the 2.2.6 release. | ||||
|  | ||||
| * Tue Oct 31 2017 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.5-1] | ||||
| - Update for the 2.2.5 release. | ||||
|  | ||||
| * Sat Aug 19 2017 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.4-1] | ||||
| - Update for the 2.2.4 release. | ||||
|  | ||||
| * Wed Aug 2 2017 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.3-1] | ||||
| - Update for the 2.2.3 release. | ||||
|  | ||||
| * Wed Jul 12 2017 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.2-1] | ||||
| - Update for the 2.2.2 release. | ||||
|  | ||||
| * Sat Jun 17 2017 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.1-1] | ||||
| - Update for the 2.2.1 release. | ||||
|  | ||||
| * Tue Jun 21 2016 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.2.0-1] | ||||
| - Update for the 2.2.0 release. | ||||
|  | ||||
| * Wed Mar 2 2016 Sebastian Pipping <sebastian@pipping.org> | ||||
| [Release 2.1.1-1] | ||||
| - Update for the 2.1.1 release. | ||||
|  | ||||
| * Sat Mar 3 2012 Karl Waclawek <karl@waclawek.net> | ||||
| [Release 2.1.0-1] | ||||
| - Update for the 2.1.0 release. | ||||
|  | ||||
| * Sun Nov 26 2006 Karl Waclawek <karl@waclawek.net> | ||||
| [Release 2.0.1-1] | ||||
| - Update for the 2.0.1 release. | ||||
|  | ||||
| * Fri Jul 16 2004 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.8-1] | ||||
| - Update for the 1.95.8 release. | ||||
| - Add the expat_external.h header to the installed files. | ||||
|  | ||||
| * Tue Oct 21 2003 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| - Update list of documentation files; we missed a .png file in the | ||||
|   previous release. | ||||
|  | ||||
| * Mon Oct 20 2003 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.7-1] | ||||
| - Updated for the 1.95.7 release. | ||||
|  | ||||
| * Sat Jan 25 2003 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.6-1] | ||||
| - Updated for the 1.95.6 release. | ||||
|  | ||||
| * Wed Sep  4 2002 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.5-1] | ||||
| - Updated for the 1.95.5 release. | ||||
| - Updated URL for Expat home page to point to www.libexpat.org. | ||||
| - Added "Valid XHTML 1.0" icon to the installed documentation. | ||||
|  | ||||
| * Sat Jun 29 2002 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.4-1] | ||||
| - Updated for the 1.95.4 release. | ||||
|  | ||||
| * Fri May 17 2002 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.3-1] | ||||
| - Updated for the 1.95.3 release. | ||||
| - Added xmlwf man page to the list of files. | ||||
|  | ||||
| * Wed Jul 25 2001 Fred L. Drake, Jr. <fdrake@acm.org> | ||||
| [Release 1.95.2-1] | ||||
| - Updated for the 1.95.2 release. | ||||
|  | ||||
| * Sun Feb 18 2001 Sean Reifschneider <jafo-rpms@tummy.com> | ||||
| [Release 1.95.1-1tummy] | ||||
| - Updated to 1.95.1 release. | ||||
| - Removed the "/usr/include/expat" directory for headers, as it now uses | ||||
|   "expat.h" instead of "xmlparser.h". | ||||
|  | ||||
| * Thu Jan 25 2001 Sean Reifschneider <jafo-rpms@tummy.com> | ||||
| [Release 1.1-3tummy] | ||||
| - Moved xmlparse.h into "/usr/include/expat" directory to prevent conflict | ||||
|   with w3c-libwww-devel package. | ||||
|  | ||||
| * Wed Sep  6 2000 Sean Reifschneider <jafo-rpms@tummy.com> | ||||
| - Modified to install into /usr. | ||||
| - Modified to use RPM_BUILD_ROOT instead of writing directly to install | ||||
|   location. | ||||
							
								
								
									
										111
									
								
								library/libexpat/expat/expat_config.h.cmake
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										111
									
								
								library/libexpat/expat/expat_config.h.cmake
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,111 @@ | ||||
| /* expat_config.h.cmake.  Based upon generated expat_config.h.in.  */ | ||||
|  | ||||
| /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ | ||||
| #cmakedefine BYTEORDER @BYTEORDER@ | ||||
|  | ||||
| /* Define to 1 if you have the `arc4random' function. */ | ||||
| #cmakedefine HAVE_ARC4RANDOM | ||||
|  | ||||
| /* Define to 1 if you have the `arc4random_buf' function. */ | ||||
| #cmakedefine HAVE_ARC4RANDOM_BUF | ||||
|  | ||||
| /* Define to 1 if you have the <dlfcn.h> header file. */ | ||||
| #cmakedefine HAVE_DLFCN_H | ||||
|  | ||||
| /* Define to 1 if you have the <fcntl.h> header file. */ | ||||
| #cmakedefine HAVE_FCNTL_H | ||||
|  | ||||
| /* Define to 1 if you have the `getpagesize' function. */ | ||||
| #cmakedefine HAVE_GETPAGESIZE | ||||
|  | ||||
| /* Define to 1 if you have the `getrandom' function. */ | ||||
| #cmakedefine HAVE_GETRANDOM | ||||
|  | ||||
| /* Define to 1 if you have the <inttypes.h> header file. */ | ||||
| #cmakedefine HAVE_INTTYPES_H | ||||
|  | ||||
| /* Define to 1 if you have the `bsd' library (-lbsd). */ | ||||
| #cmakedefine HAVE_LIBBSD | ||||
|  | ||||
| /* Define to 1 if you have the <memory.h> header file. */ | ||||
| #cmakedefine HAVE_MEMORY_H | ||||
|  | ||||
| /* Define to 1 if you have a working `mmap' system call. */ | ||||
| #cmakedefine HAVE_MMAP | ||||
|  | ||||
| /* Define to 1 if you have the <stdint.h> header file. */ | ||||
| #cmakedefine HAVE_STDINT_H | ||||
|  | ||||
| /* Define to 1 if you have the <stdlib.h> header file. */ | ||||
| #cmakedefine HAVE_STDLIB_H | ||||
|  | ||||
| /* Define to 1 if you have the <strings.h> header file. */ | ||||
| #cmakedefine HAVE_STRINGS_H | ||||
|  | ||||
| /* Define to 1 if you have the <string.h> header file. */ | ||||
| #cmakedefine HAVE_STRING_H | ||||
|  | ||||
| /* Define to 1 if you have `syscall' and `SYS_getrandom'. */ | ||||
| #cmakedefine HAVE_SYSCALL_GETRANDOM | ||||
|  | ||||
| /* Define to 1 if you have the <sys/stat.h> header file. */ | ||||
| #cmakedefine HAVE_SYS_STAT_H | ||||
|  | ||||
| /* Define to 1 if you have the <sys/types.h> header file. */ | ||||
| #cmakedefine HAVE_SYS_TYPES_H | ||||
|  | ||||
| /* Define to 1 if you have the <unistd.h> header file. */ | ||||
| #cmakedefine HAVE_UNISTD_H | ||||
|  | ||||
| /* Define to the address where bug reports for this package should be sent. */ | ||||
| #cmakedefine PACKAGE_BUGREPORT | ||||
|  | ||||
| /* Define to the full name of this package. */ | ||||
| #cmakedefine PACKAGE_NAME | ||||
|  | ||||
| /* Define to the full name and version of this package. */ | ||||
| #cmakedefine PACKAGE_STRING | ||||
|  | ||||
| /* Define to the one symbol short name of this package. */ | ||||
| #cmakedefine PACKAGE_TARNAME | ||||
|  | ||||
| /* Define to the version of this package. */ | ||||
| #cmakedefine PACKAGE_VERSION | ||||
|  | ||||
| /* Define to 1 if you have the ANSI C header files. */ | ||||
| #cmakedefine STDC_HEADERS | ||||
|  | ||||
| /* whether byteorder is bigendian */ | ||||
| #cmakedefine WORDS_BIGENDIAN | ||||
|  | ||||
| /* Define to specify how much context to retain around the current parse | ||||
|    point. */ | ||||
| #cmakedefine XML_CONTEXT_BYTES @XML_CONTEXT_BYTES@ | ||||
|  | ||||
| /* Define to make parameter entity parsing functionality available. */ | ||||
| #cmakedefine XML_DTD | ||||
|  | ||||
| /* Define to make XML Namespaces functionality available. */ | ||||
| #cmakedefine XML_NS | ||||
|  | ||||
| #if ! defined(_WIN32) | ||||
| /* Define to extract entropy from /dev/urandom. */ | ||||
| #cmakedefine XML_DEV_URANDOM | ||||
| #endif | ||||
|  | ||||
| /* Define to use UTF-16 chars (two bytes). */ | ||||
| #cmakedefine XML_UNICODE | ||||
|  | ||||
| /* Define to use wchar_t as UTF-16 char type instead of unsigned short. */ | ||||
| #cmakedefine XML_UNICODE_WCHAR_T | ||||
|  | ||||
| /* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */ | ||||
| #ifdef _MSC_VER | ||||
| # define __func__ __FUNCTION__ | ||||
| #endif | ||||
|  | ||||
| /* Define to `long' if <sys/types.h> does not define. */ | ||||
| #cmakedefine off_t @OFF_T@ | ||||
|  | ||||
| /* Define to `unsigned' if <sys/types.h> does not define. */ | ||||
| #cmakedefine size_t @SIZE_T@ | ||||
							
								
								
									
										3
									
								
								library/libexpat/expat/gennmtab/.gitignore
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								library/libexpat/expat/gennmtab/.gitignore
									
									
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Debug | ||||
| Release | ||||
| gennmtab.plg | ||||
							
								
								
									
										457
									
								
								library/libexpat/expat/gennmtab/gennmtab.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										457
									
								
								library/libexpat/expat/gennmtab/gennmtab.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,457 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #include <string.h> | ||||
| #include <stdio.h> | ||||
| #include <stddef.h> | ||||
|  | ||||
| struct range { | ||||
|   int start; | ||||
|   int end; | ||||
| }; | ||||
|  | ||||
| struct range nmstrt[] = { | ||||
|   { '_' }, | ||||
|   { ':' }, | ||||
|   /* BaseChar */ | ||||
|   { 0x0041, 0x005a }, | ||||
|   { 0x0061, 0x007a }, | ||||
|   { 0x00c0, 0x00d6 }, | ||||
|   { 0x00d8, 0x00f6 }, | ||||
|   { 0x00f8, 0x00ff }, | ||||
|   { 0x0100, 0x0131 }, | ||||
|   { 0x0134, 0x013e }, | ||||
|   { 0x0141, 0x0148 }, | ||||
|   { 0x014a, 0x017e }, | ||||
|   { 0x0180, 0x01c3 }, | ||||
|   { 0x01cd, 0x01f0 }, | ||||
|   { 0x01f4, 0x01f5 }, | ||||
|   { 0x01fa, 0x0217 }, | ||||
|   { 0x0250, 0x02a8 }, | ||||
|   { 0x02bb, 0x02c1 }, | ||||
|   { 0x0386 }, | ||||
|   { 0x0388, 0x038a }, | ||||
|   { 0x038c }, | ||||
|   { 0x038e, 0x03a1 }, | ||||
|   { 0x03a3, 0x03ce }, | ||||
|   { 0x03d0, 0x03d6 }, | ||||
|   { 0x03da }, | ||||
|   { 0x03dc }, | ||||
|   { 0x03de }, | ||||
|   { 0x03e0 }, | ||||
|   { 0x03e2, 0x03f3 }, | ||||
|   { 0x0401, 0x040c }, | ||||
|   { 0x040e, 0x044f }, | ||||
|   { 0x0451, 0x045c }, | ||||
|   { 0x045e, 0x0481 }, | ||||
|   { 0x0490, 0x04c4 }, | ||||
|   { 0x04c7, 0x04c8 }, | ||||
|   { 0x04cb, 0x04cc }, | ||||
|   { 0x04d0, 0x04eb }, | ||||
|   { 0x04ee, 0x04f5 }, | ||||
|   { 0x04f8, 0x04f9 }, | ||||
|   { 0x0531, 0x0556 }, | ||||
|   { 0x0559 }, | ||||
|   { 0x0561, 0x0586 }, | ||||
|   { 0x05d0, 0x05ea }, | ||||
|   { 0x05f0, 0x05f2 }, | ||||
|   { 0x0621, 0x063a }, | ||||
|   { 0x0641, 0x064a }, | ||||
|   { 0x0671, 0x06b7 }, | ||||
|   { 0x06ba, 0x06be }, | ||||
|   { 0x06c0, 0x06ce }, | ||||
|   { 0x06d0, 0x06d3 }, | ||||
|   { 0x06d5 }, | ||||
|   { 0x06e5, 0x06e6 }, | ||||
|   { 0x0905, 0x0939 }, | ||||
|   { 0x093d }, | ||||
|   { 0x0958, 0x0961 }, | ||||
|   { 0x0985, 0x098c }, | ||||
|   { 0x098f, 0x0990 }, | ||||
|   { 0x0993, 0x09a8 }, | ||||
|   { 0x09aa, 0x09b0 }, | ||||
|   { 0x09b2 }, | ||||
|   { 0x09b6, 0x09b9 }, | ||||
|   { 0x09dc, 0x09dd }, | ||||
|   { 0x09df, 0x09e1 }, | ||||
|   { 0x09f0, 0x09f1 }, | ||||
|   { 0x0a05, 0x0a0a }, | ||||
|   { 0x0a0f, 0x0a10 }, | ||||
|   { 0x0a13, 0x0a28 }, | ||||
|   { 0x0a2a, 0x0a30 }, | ||||
|   { 0x0a32, 0x0a33 }, | ||||
|   { 0x0a35, 0x0a36 }, | ||||
|   { 0x0a38, 0x0a39 }, | ||||
|   { 0x0a59, 0x0a5c }, | ||||
|   { 0x0a5e }, | ||||
|   { 0x0a72, 0x0a74 }, | ||||
|   { 0x0a85, 0x0a8b }, | ||||
|   { 0x0a8d }, | ||||
|   { 0x0a8f, 0x0a91 }, | ||||
|   { 0x0a93, 0x0aa8 }, | ||||
|   { 0x0aaa, 0x0ab0 }, | ||||
|   { 0x0ab2, 0x0ab3 }, | ||||
|   { 0x0ab5, 0x0ab9 }, | ||||
|   { 0x0abd }, | ||||
|   { 0x0ae0 }, | ||||
|   { 0x0b05, 0x0b0c }, | ||||
|   { 0x0b0f, 0x0b10 }, | ||||
|   { 0x0b13, 0x0b28 }, | ||||
|   { 0x0b2a, 0x0b30 }, | ||||
|   { 0x0b32, 0x0b33 }, | ||||
|   { 0x0b36, 0x0b39 }, | ||||
|   { 0x0b3d }, | ||||
|   { 0x0b5c, 0x0b5d }, | ||||
|   { 0x0b5f, 0x0b61 }, | ||||
|   { 0x0b85, 0x0b8a }, | ||||
|   { 0x0b8e, 0x0b90 }, | ||||
|   { 0x0b92, 0x0b95 }, | ||||
|   { 0x0b99, 0x0b9a }, | ||||
|   { 0x0b9c }, | ||||
|   { 0x0b9e, 0x0b9f }, | ||||
|   { 0x0ba3, 0x0ba4 }, | ||||
|   { 0x0ba8, 0x0baa }, | ||||
|   { 0x0bae, 0x0bb5 }, | ||||
|   { 0x0bb7, 0x0bb9 }, | ||||
|   { 0x0c05, 0x0c0c }, | ||||
|   { 0x0c0e, 0x0c10 }, | ||||
|   { 0x0c12, 0x0c28 }, | ||||
|   { 0x0c2a, 0x0c33 }, | ||||
|   { 0x0c35, 0x0c39 }, | ||||
|   { 0x0c60, 0x0c61 }, | ||||
|   { 0x0c85, 0x0c8c }, | ||||
|   { 0x0c8e, 0x0c90 }, | ||||
|   { 0x0c92, 0x0ca8 }, | ||||
|   { 0x0caa, 0x0cb3 }, | ||||
|   { 0x0cb5, 0x0cb9 }, | ||||
|   { 0x0cde }, | ||||
|   { 0x0ce0, 0x0ce1 }, | ||||
|   { 0x0d05, 0x0d0c }, | ||||
|   { 0x0d0e, 0x0d10 }, | ||||
|   { 0x0d12, 0x0d28 }, | ||||
|   { 0x0d2a, 0x0d39 }, | ||||
|   { 0x0d60, 0x0d61 }, | ||||
|   { 0x0e01, 0x0e2e }, | ||||
|   { 0x0e30 }, | ||||
|   { 0x0e32, 0x0e33 }, | ||||
|   { 0x0e40, 0x0e45 }, | ||||
|   { 0x0e81, 0x0e82 }, | ||||
|   { 0x0e84 }, | ||||
|   { 0x0e87, 0x0e88 }, | ||||
|   { 0x0e8a }, | ||||
|   { 0x0e8d }, | ||||
|   { 0x0e94, 0x0e97 }, | ||||
|   { 0x0e99, 0x0e9f }, | ||||
|   { 0x0ea1, 0x0ea3 }, | ||||
|   { 0x0ea5 }, | ||||
|   { 0x0ea7 }, | ||||
|   { 0x0eaa, 0x0eab }, | ||||
|   { 0x0ead, 0x0eae }, | ||||
|   { 0x0eb0 }, | ||||
|   { 0x0eb2, 0x0eb3 }, | ||||
|   { 0x0ebd }, | ||||
|   { 0x0ec0, 0x0ec4 }, | ||||
|   { 0x0f40, 0x0f47 }, | ||||
|   { 0x0f49, 0x0f69 }, | ||||
|   { 0x10a0, 0x10c5 }, | ||||
|   { 0x10d0, 0x10f6 }, | ||||
|   { 0x1100 }, | ||||
|   { 0x1102, 0x1103 }, | ||||
|   { 0x1105, 0x1107 }, | ||||
|   { 0x1109 }, | ||||
|   { 0x110b, 0x110c }, | ||||
|   { 0x110e, 0x1112 }, | ||||
|   { 0x113c }, | ||||
|   { 0x113e }, | ||||
|   { 0x1140 }, | ||||
|   { 0x114c }, | ||||
|   { 0x114e }, | ||||
|   { 0x1150 }, | ||||
|   { 0x1154, 0x1155 }, | ||||
|   { 0x1159 }, | ||||
|   { 0x115f, 0x1161 }, | ||||
|   { 0x1163 }, | ||||
|   { 0x1165 }, | ||||
|   { 0x1167 }, | ||||
|   { 0x1169 }, | ||||
|   { 0x116d, 0x116e }, | ||||
|   { 0x1172, 0x1173 }, | ||||
|   { 0x1175 }, | ||||
|   { 0x119e }, | ||||
|   { 0x11a8 }, | ||||
|   { 0x11ab }, | ||||
|   { 0x11ae, 0x11af }, | ||||
|   { 0x11b7, 0x11b8 }, | ||||
|   { 0x11ba }, | ||||
|   { 0x11bc, 0x11c2 }, | ||||
|   { 0x11eb }, | ||||
|   { 0x11f0 }, | ||||
|   { 0x11f9 }, | ||||
|   { 0x1e00, 0x1e9b }, | ||||
|   { 0x1ea0, 0x1ef9 }, | ||||
|   { 0x1f00, 0x1f15 }, | ||||
|   { 0x1f18, 0x1f1d }, | ||||
|   { 0x1f20, 0x1f45 }, | ||||
|   { 0x1f48, 0x1f4d }, | ||||
|   { 0x1f50, 0x1f57 }, | ||||
|   { 0x1f59 }, | ||||
|   { 0x1f5b }, | ||||
|   { 0x1f5d }, | ||||
|   { 0x1f5f, 0x1f7d }, | ||||
|   { 0x1f80, 0x1fb4 }, | ||||
|   { 0x1fb6, 0x1fbc }, | ||||
|   { 0x1fbe }, | ||||
|   { 0x1fc2, 0x1fc4 }, | ||||
|   { 0x1fc6, 0x1fcc }, | ||||
|   { 0x1fd0, 0x1fd3 }, | ||||
|   { 0x1fd6, 0x1fdb }, | ||||
|   { 0x1fe0, 0x1fec }, | ||||
|   { 0x1ff2, 0x1ff4 }, | ||||
|   { 0x1ff6, 0x1ffc }, | ||||
|   { 0x2126 }, | ||||
|   { 0x212a, 0x212b }, | ||||
|   { 0x212e }, | ||||
|   { 0x2180, 0x2182 }, | ||||
|   { 0x3041, 0x3094 }, | ||||
|   { 0x30a1, 0x30fa }, | ||||
|   { 0x3105, 0x312c }, | ||||
|   { 0xac00, 0xd7a3 }, | ||||
|   /* Ideographic */ | ||||
|   { 0x4e00, 0x9fa5 }, | ||||
|   { 0x3007 }, | ||||
|   { 0x3021, 0x3029 }, | ||||
| }; | ||||
|  | ||||
| /* name chars that are not name start chars */ | ||||
| struct range name[] = { | ||||
|   { '.' }, | ||||
|   { '-' }, | ||||
|   /* CombiningChar */ | ||||
|   { 0x0300, 0x0345 }, | ||||
|   { 0x0360, 0x0361 }, | ||||
|   { 0x0483, 0x0486 }, | ||||
|   { 0x0591, 0x05a1 }, | ||||
|   { 0x05a3, 0x05b9 }, | ||||
|   { 0x05bb, 0x05bd }, | ||||
|   { 0x05bf }, | ||||
|   { 0x05c1, 0x05c2 }, | ||||
|   { 0x05c4 }, | ||||
|   { 0x064b, 0x0652 }, | ||||
|   { 0x0670 }, | ||||
|   { 0x06d6, 0x06dc }, | ||||
|   { 0x06dd, 0x06df }, | ||||
|   { 0x06e0, 0x06e4 }, | ||||
|   { 0x06e7, 0x06e8 }, | ||||
|   { 0x06ea, 0x06ed }, | ||||
|   { 0x0901, 0x0903 }, | ||||
|   { 0x093c }, | ||||
|   { 0x093e, 0x094c }, | ||||
|   { 0x094d }, | ||||
|   { 0x0951, 0x0954 }, | ||||
|   { 0x0962, 0x0963 }, | ||||
|   { 0x0981, 0x0983 }, | ||||
|   { 0x09bc }, | ||||
|   { 0x09be }, | ||||
|   { 0x09bf }, | ||||
|   { 0x09c0, 0x09c4 }, | ||||
|   { 0x09c7, 0x09c8 }, | ||||
|   { 0x09cb, 0x09cd }, | ||||
|   { 0x09d7 }, | ||||
|   { 0x09e2, 0x09e3 }, | ||||
|   { 0x0a02 }, | ||||
|   { 0x0a3c }, | ||||
|   { 0x0a3e }, | ||||
|   { 0x0a3f }, | ||||
|   { 0x0a40, 0x0a42 }, | ||||
|   { 0x0a47, 0x0a48 }, | ||||
|   { 0x0a4b, 0x0a4d }, | ||||
|   { 0x0a70, 0x0a71 }, | ||||
|   { 0x0a81, 0x0a83 }, | ||||
|   { 0x0abc }, | ||||
|   { 0x0abe, 0x0ac5 }, | ||||
|   { 0x0ac7, 0x0ac9 }, | ||||
|   { 0x0acb, 0x0acd }, | ||||
|   { 0x0b01, 0x0b03 }, | ||||
|   { 0x0b3c }, | ||||
|   { 0x0b3e, 0x0b43 }, | ||||
|   { 0x0b47, 0x0b48 }, | ||||
|   { 0x0b4b, 0x0b4d }, | ||||
|   { 0x0b56, 0x0b57 }, | ||||
|   { 0x0b82, 0x0b83 }, | ||||
|   { 0x0bbe, 0x0bc2 }, | ||||
|   { 0x0bc6, 0x0bc8 }, | ||||
|   { 0x0bca, 0x0bcd }, | ||||
|   { 0x0bd7 }, | ||||
|   { 0x0c01, 0x0c03 }, | ||||
|   { 0x0c3e, 0x0c44 }, | ||||
|   { 0x0c46, 0x0c48 }, | ||||
|   { 0x0c4a, 0x0c4d }, | ||||
|   { 0x0c55, 0x0c56 }, | ||||
|   { 0x0c82, 0x0c83 }, | ||||
|   { 0x0cbe, 0x0cc4 }, | ||||
|   { 0x0cc6, 0x0cc8 }, | ||||
|   { 0x0cca, 0x0ccd }, | ||||
|   { 0x0cd5, 0x0cd6 }, | ||||
|   { 0x0d02, 0x0d03 }, | ||||
|   { 0x0d3e, 0x0d43 }, | ||||
|   { 0x0d46, 0x0d48 }, | ||||
|   { 0x0d4a, 0x0d4d }, | ||||
|   { 0x0d57 }, | ||||
|   { 0x0e31 }, | ||||
|   { 0x0e34, 0x0e3a }, | ||||
|   { 0x0e47, 0x0e4e }, | ||||
|   { 0x0eb1 }, | ||||
|   { 0x0eb4, 0x0eb9 }, | ||||
|   { 0x0ebb, 0x0ebc }, | ||||
|   { 0x0ec8, 0x0ecd }, | ||||
|   { 0x0f18, 0x0f19 }, | ||||
|   { 0x0f35 }, | ||||
|   { 0x0f37 }, | ||||
|   { 0x0f39 }, | ||||
|   { 0x0f3e }, | ||||
|   { 0x0f3f }, | ||||
|   { 0x0f71, 0x0f84 }, | ||||
|   { 0x0f86, 0x0f8b }, | ||||
|   { 0x0f90, 0x0f95 }, | ||||
|   { 0x0f97 }, | ||||
|   { 0x0f99, 0x0fad }, | ||||
|   { 0x0fb1, 0x0fb7 }, | ||||
|   { 0x0fb9 }, | ||||
|   { 0x20d0, 0x20dc }, | ||||
|   { 0x20e1 }, | ||||
|   { 0x302a, 0x302f }, | ||||
|   { 0x3099 }, | ||||
|   { 0x309a }, | ||||
|   /* Digit */ | ||||
|   { 0x0030, 0x0039 }, | ||||
|   { 0x0660, 0x0669 }, | ||||
|   { 0x06f0, 0x06f9 }, | ||||
|   { 0x0966, 0x096f }, | ||||
|   { 0x09e6, 0x09ef }, | ||||
|   { 0x0a66, 0x0a6f }, | ||||
|   { 0x0ae6, 0x0aef }, | ||||
|   { 0x0b66, 0x0b6f }, | ||||
|   { 0x0be7, 0x0bef }, | ||||
|   { 0x0c66, 0x0c6f }, | ||||
|   { 0x0ce6, 0x0cef }, | ||||
|   { 0x0d66, 0x0d6f }, | ||||
|   { 0x0e50, 0x0e59 }, | ||||
|   { 0x0ed0, 0x0ed9 }, | ||||
|   { 0x0f20, 0x0f29 }, | ||||
|   /* Extender */ | ||||
|   { 0xb7 }, | ||||
|   { 0x02d0 }, | ||||
|   { 0x02d1 }, | ||||
|   { 0x0387 }, | ||||
|   { 0x0640 }, | ||||
|   { 0x0e46 }, | ||||
|   { 0x0ec6 }, | ||||
|   { 0x3005 }, | ||||
|   { 0x3031, 0x3035 }, | ||||
|   { 0x309d, 0x309e }, | ||||
|   { 0x30fc, 0x30fe }, | ||||
| }; | ||||
|  | ||||
| static void | ||||
| setTab(char *tab, struct range *ranges, size_t nRanges) | ||||
| { | ||||
|   size_t i; | ||||
|   int j; | ||||
|   for (i = 0; i < nRanges; i++) { | ||||
|     if (ranges[i].end) { | ||||
|       for (j = ranges[i].start; j <= ranges[i].end; j++) | ||||
|         tab[j] = 1; | ||||
|     } | ||||
|     else | ||||
|       tab[ranges[i].start] = 1; | ||||
|   } | ||||
| } | ||||
|  | ||||
| static void | ||||
| printTabs(char *tab) | ||||
| {  | ||||
|   int nBitmaps = 2; | ||||
|   int i, j, k; | ||||
|   unsigned char pageIndex[512]; | ||||
|  | ||||
|   printf( | ||||
| "static const unsigned namingBitmap[] = {\n\ | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000,\n\ | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000,\n\ | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,\n\ | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,\n"); | ||||
|   for (i = 0; i < 512; i++) { | ||||
|     int kind = tab[i*256]; | ||||
|     for (j = 1; j < 256; j++) | ||||
|       if (tab[i*256 +j] != kind) { | ||||
|         kind = -1; | ||||
|         break; | ||||
|       } | ||||
|     if (i >= 256 &&  memcmp(tab + (i - 256)*256, tab + i*256, 256) == 0) | ||||
|       pageIndex[i] = pageIndex[i - 256]; | ||||
|     else if (kind == -1) {  | ||||
|       pageIndex[i] = nBitmaps++; | ||||
|       for (j = 0; j < 8; j++) { | ||||
|         unsigned val = 0; | ||||
|         for (k = 0; k < 32; k++) { | ||||
|           if (tab[i*256 + j*32 +k]) | ||||
|             val |= (1 << k); | ||||
|         } | ||||
|         printf("0x%08X,", val); | ||||
|         putchar((((j + 1) & 3) == 0) ? '\n' : ' '); | ||||
|       } | ||||
|     } | ||||
|     else | ||||
|       pageIndex[i] = kind; | ||||
|   } | ||||
|   printf("};\n"); | ||||
|   printf("static const unsigned char nmstrtPages[] = {\n"); | ||||
|   for (i = 0; i < 512; i++) { | ||||
|     if (i == 256) | ||||
|       printf("};\nstatic const unsigned char namePages[] = {\n"); | ||||
|     printf("0x%02X,", pageIndex[i]); | ||||
|     putchar((((i + 1) & 7) == 0) ? '\n' : ' '); | ||||
|   } | ||||
|   printf("};\n"); | ||||
| } | ||||
|  | ||||
| int | ||||
| main() | ||||
| {  | ||||
|   char tab[2*65536]; | ||||
|   memset(tab, 0, 65536); | ||||
|   setTab(tab, nmstrt, sizeof(nmstrt)/sizeof(nmstrt[0])); | ||||
|   memcpy(tab + 65536, tab, 65536); | ||||
|   setTab(tab + 65536, name, sizeof(name)/sizeof(name[0])); | ||||
|   printTabs(tab); | ||||
|   return 0; | ||||
| } | ||||
							
								
								
									
										17
									
								
								library/libexpat/expat/lib/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								library/libexpat/expat/lib/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| Makefile | ||||
| .libs | ||||
| *.lo | ||||
| Debug | ||||
| Debug-w | ||||
| Release | ||||
| Release-w | ||||
| expat.ncb | ||||
| expat.opt | ||||
| expat.plg | ||||
| Debug_static | ||||
| Debug-w_static | ||||
| Release_static | ||||
| Release-w_static | ||||
| expat_static.plg | ||||
| expatw.plg | ||||
| expatw_static.plg | ||||
							
								
								
									
										76
									
								
								library/libexpat/expat/lib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								library/libexpat/expat/lib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,76 @@ | ||||
| # | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| include_HEADERS = \ | ||||
|     ../expat_config.h \ | ||||
|     expat.h \ | ||||
|     expat_external.h | ||||
|  | ||||
| lib_LTLIBRARIES = libexpat.la | ||||
|  | ||||
| libexpat_la_LDFLAGS = \ | ||||
|     -no-undefined \ | ||||
|     -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@ | ||||
|  | ||||
| libexpat_la_SOURCES = \ | ||||
|     loadlibrary.c \ | ||||
|     xmlparse.c \ | ||||
|     xmltok.c \ | ||||
|     xmlrole.c | ||||
|  | ||||
| doc_DATA = \ | ||||
|     ../AUTHORS \ | ||||
|     ../Changes | ||||
|  | ||||
| install-data-hook: | ||||
| 	cd "$(DESTDIR)$(docdir)" && $(am__mv) Changes changelog | ||||
|  | ||||
| uninstall-local: | ||||
| 	$(RM) "$(DESTDIR)$(docdir)/changelog" | ||||
|  | ||||
| EXTRA_DIST = \ | ||||
|     ascii.h \ | ||||
|     asciitab.h \ | ||||
|     expat_external.h \ | ||||
|     expat.h \ | ||||
|     iasciitab.h \ | ||||
|     internal.h \ | ||||
|     latin1tab.h \ | ||||
|     libexpat.def \ | ||||
|     libexpatw.def \ | ||||
|     nametab.h \ | ||||
|     siphash.h \ | ||||
|     utf8tab.h \ | ||||
|     winconfig.h \ | ||||
|     xmlrole.h \ | ||||
|     xmltok.h \ | ||||
|     xmltok_impl.c \ | ||||
|     xmltok_impl.h \ | ||||
|     xmltok_ns.c | ||||
							
								
								
									
										120
									
								
								library/libexpat/expat/lib/ascii.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								library/libexpat/expat/lib/ascii.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,120 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #define ASCII_A 0x41 | ||||
| #define ASCII_B 0x42 | ||||
| #define ASCII_C 0x43 | ||||
| #define ASCII_D 0x44 | ||||
| #define ASCII_E 0x45 | ||||
| #define ASCII_F 0x46 | ||||
| #define ASCII_G 0x47 | ||||
| #define ASCII_H 0x48 | ||||
| #define ASCII_I 0x49 | ||||
| #define ASCII_J 0x4A | ||||
| #define ASCII_K 0x4B | ||||
| #define ASCII_L 0x4C | ||||
| #define ASCII_M 0x4D | ||||
| #define ASCII_N 0x4E | ||||
| #define ASCII_O 0x4F | ||||
| #define ASCII_P 0x50 | ||||
| #define ASCII_Q 0x51 | ||||
| #define ASCII_R 0x52 | ||||
| #define ASCII_S 0x53 | ||||
| #define ASCII_T 0x54 | ||||
| #define ASCII_U 0x55 | ||||
| #define ASCII_V 0x56 | ||||
| #define ASCII_W 0x57 | ||||
| #define ASCII_X 0x58 | ||||
| #define ASCII_Y 0x59 | ||||
| #define ASCII_Z 0x5A | ||||
|  | ||||
| #define ASCII_a 0x61 | ||||
| #define ASCII_b 0x62 | ||||
| #define ASCII_c 0x63 | ||||
| #define ASCII_d 0x64 | ||||
| #define ASCII_e 0x65 | ||||
| #define ASCII_f 0x66 | ||||
| #define ASCII_g 0x67 | ||||
| #define ASCII_h 0x68 | ||||
| #define ASCII_i 0x69 | ||||
| #define ASCII_j 0x6A | ||||
| #define ASCII_k 0x6B | ||||
| #define ASCII_l 0x6C | ||||
| #define ASCII_m 0x6D | ||||
| #define ASCII_n 0x6E | ||||
| #define ASCII_o 0x6F | ||||
| #define ASCII_p 0x70 | ||||
| #define ASCII_q 0x71 | ||||
| #define ASCII_r 0x72 | ||||
| #define ASCII_s 0x73 | ||||
| #define ASCII_t 0x74 | ||||
| #define ASCII_u 0x75 | ||||
| #define ASCII_v 0x76 | ||||
| #define ASCII_w 0x77 | ||||
| #define ASCII_x 0x78 | ||||
| #define ASCII_y 0x79 | ||||
| #define ASCII_z 0x7A | ||||
|  | ||||
| #define ASCII_0 0x30 | ||||
| #define ASCII_1 0x31 | ||||
| #define ASCII_2 0x32 | ||||
| #define ASCII_3 0x33 | ||||
| #define ASCII_4 0x34 | ||||
| #define ASCII_5 0x35 | ||||
| #define ASCII_6 0x36 | ||||
| #define ASCII_7 0x37 | ||||
| #define ASCII_8 0x38 | ||||
| #define ASCII_9 0x39 | ||||
|  | ||||
| #define ASCII_TAB 0x09 | ||||
| #define ASCII_SPACE 0x20 | ||||
| #define ASCII_EXCL 0x21 | ||||
| #define ASCII_QUOT 0x22 | ||||
| #define ASCII_AMP 0x26 | ||||
| #define ASCII_APOS 0x27 | ||||
| #define ASCII_MINUS 0x2D | ||||
| #define ASCII_PERIOD 0x2E | ||||
| #define ASCII_COLON 0x3A | ||||
| #define ASCII_SEMI 0x3B | ||||
| #define ASCII_LT 0x3C | ||||
| #define ASCII_EQUALS 0x3D | ||||
| #define ASCII_GT 0x3E | ||||
| #define ASCII_LSQB 0x5B | ||||
| #define ASCII_RSQB 0x5D | ||||
| #define ASCII_UNDERSCORE 0x5F | ||||
| #define ASCII_LPAREN 0x28 | ||||
| #define ASCII_RPAREN 0x29 | ||||
| #define ASCII_FF 0x0C | ||||
| #define ASCII_SLASH 0x2F | ||||
| #define ASCII_HASH 0x23 | ||||
| #define ASCII_PIPE 0x7C | ||||
| #define ASCII_COMMA 0x2C | ||||
							
								
								
									
										64
									
								
								library/libexpat/expat/lib/asciitab.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								library/libexpat/expat/lib/asciitab.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,64 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| /* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML, | ||||
| /* 0x0C */ BT_NONXML, BT_CR, BT_NONXML, BT_NONXML, | ||||
| /* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM, | ||||
| /* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS, | ||||
| /* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS, | ||||
| /* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL, | ||||
| /* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, | ||||
| /* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, | ||||
| /* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI, | ||||
| /* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST, | ||||
| /* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, | ||||
| /* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, | ||||
| /* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB, | ||||
| /* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT, | ||||
| /* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, | ||||
| /* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, | ||||
| /* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, | ||||
| /* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
							
								
								
									
										1085
									
								
								library/libexpat/expat/lib/expat.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1085
									
								
								library/libexpat/expat/lib/expat.h
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										179
									
								
								library/libexpat/expat/lib/expat.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										179
									
								
								library/libexpat/expat/lib/expat.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,179 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Template|Win32"> | ||||
|       <Configuration>Template</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{45A5074D-66E8-44A4-A03F-018027B528D6}</ProjectGuid> | ||||
|     <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>DynamicLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>DynamicLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Debug\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Debug\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Release\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Release\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Debug\</AssemblerListingLocation> | ||||
|       <BrowseInformation>true</BrowseInformation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug\expat.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Debug\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Debug\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <TypeLibraryName>.\..\win32\bin\Debug\expat.tlb</TypeLibraryName> | ||||
|       <MkTypLibCompatible>true</MkTypLibCompatible> | ||||
|       <TargetEnvironment>Win32</TargetEnvironment> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Debug\expat.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <LinkDLL>true</LinkDLL> | ||||
|       <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Debug\libexpat.dll</OutputFile> | ||||
|       <ImportLibrary>.\..\win32\bin\Debug\libexpat.lib</ImportLibrary> | ||||
|       <ModuleDefinitionFile>.\libexpat.def</ModuleDefinitionFile> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Release\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Release\expat.pch</PrecompiledHeaderOutputFile> | ||||
|       <PrecompiledHeader /> | ||||
|       <ObjectFileName>.\..\win32\tmp\Release\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Release\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <TypeLibraryName>.\..\win32\bin\Release\expat.tlb</TypeLibraryName> | ||||
|       <MkTypLibCompatible>true</MkTypLibCompatible> | ||||
|       <TargetEnvironment>Win32</TargetEnvironment> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Release\expat.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <LinkDLL>true</LinkDLL> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Release\libexpat.dll</OutputFile> | ||||
|       <ImportLibrary>.\..\win32\bin\Release\libexpat.lib</ImportLibrary> | ||||
|       <ModuleDefinitionFile>.\libexpat.def</ModuleDefinitionFile> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <CustomBuild Include="libexpat.def" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c" /> | ||||
|     <ClCompile Include="xmlparse.c"> | ||||
|       <ExceptionHandling Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|       </ExceptionHandling> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlrole.c" /> | ||||
|     <ClCompile Include="xmltok.c" /> | ||||
|     <ClCompile Include="xmltok_impl.c" /> | ||||
|     <ClCompile Include="xmltok_ns.c" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h" /> | ||||
|     <ClInclude Include="asciitab.h" /> | ||||
|     <ClInclude Include="expat.h" /> | ||||
|     <ClInclude Include="expat_external.h" /> | ||||
|     <ClInclude Include="iasciitab.h" /> | ||||
|     <ClInclude Include="internal.h" /> | ||||
|     <ClInclude Include="latin1tab.h" /> | ||||
|     <ClInclude Include="nametab.h" /> | ||||
|     <ClInclude Include="siphash.h" /> | ||||
|     <ClInclude Include="utf8tab.h" /> | ||||
|     <ClInclude Include="xmlrole.h" /> | ||||
|     <ClInclude Include="xmltok.h" /> | ||||
|     <ClInclude Include="xmltok_impl.h" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
							
								
								
									
										83
									
								
								library/libexpat/expat/lib/expat.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								library/libexpat/expat/lib/expat.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,83 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup> | ||||
|     <Filter Include="Source Files"> | ||||
|       <UniqueIdentifier>{f01bb743-0ef8-4601-bc44-378fc0abe768}</UniqueIdentifier> | ||||
|       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Header Files"> | ||||
|       <UniqueIdentifier>{c22177dc-5748-4bb1-816e-df311093bf72}</UniqueIdentifier> | ||||
|       <Extensions>h;hpp;hxx;hm;inl</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Resource Files"> | ||||
|       <UniqueIdentifier>{41146e15-3129-4e5e-bb0f-6b78bb4701b9}</UniqueIdentifier> | ||||
|       <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> | ||||
|     </Filter> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlparse.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlrole.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_impl.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_ns.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="asciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat_external.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="iasciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="internal.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="latin1tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="nametab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="siphash.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="utf8tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmlrole.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok_impl.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <CustomBuild Include="libexpat.def"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </CustomBuild> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										166
									
								
								library/libexpat/expat/lib/expat_external.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										166
									
								
								library/libexpat/expat/lib/expat_external.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,166 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #ifndef Expat_External_INCLUDED | ||||
| #define Expat_External_INCLUDED 1 | ||||
|  | ||||
| /* External API definitions */ | ||||
|  | ||||
| #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__) | ||||
| # define XML_USE_MSC_EXTENSIONS 1 | ||||
| #endif | ||||
|  | ||||
| /* Expat tries very hard to make the API boundary very specifically | ||||
|    defined.  There are two macros defined to control this boundary; | ||||
|    each of these can be defined before including this header to | ||||
|    achieve some different behavior, but doing so it not recommended or | ||||
|    tested frequently. | ||||
|  | ||||
|    XMLCALL    - The calling convention to use for all calls across the | ||||
|                 "library boundary."  This will default to cdecl, and | ||||
|                 try really hard to tell the compiler that's what we | ||||
|                 want. | ||||
|  | ||||
|    XMLIMPORT  - Whatever magic is needed to note that a function is | ||||
|                 to 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 is | ||||
|    expected to be directly useful in client code is XMLCALL. | ||||
|  | ||||
|    Note that on at least some Unix versions, the Expat library must be | ||||
|    compiled with the cdecl calling convention as the default since | ||||
|    system headers may assume the cdecl convention. | ||||
| */ | ||||
| #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 than | ||||
|    one calling convention, we need to extend this definition to | ||||
|    declare the convention used on that platform, if it's possible to | ||||
|    do so. | ||||
|  | ||||
|    If this is the case for your platform, please file a bug report | ||||
|    with information on how to identify your platform via the C | ||||
|    pre-processor and how to specify the same calling convention as the | ||||
|    platform'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 */ | ||||
|  | ||||
| #  ifdef XML_USE_MSC_EXTENSIONS | ||||
| #   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 __cplusplus | ||||
| extern "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_T | ||||
| typedef wchar_t XML_Char; | ||||
| typedef wchar_t XML_LChar; | ||||
| # else | ||||
| typedef 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. */ | ||||
| # if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 | ||||
| typedef __int64 XML_Index;  | ||||
| typedef unsigned __int64 XML_Size; | ||||
| # else | ||||
| typedef long long XML_Index; | ||||
| typedef unsigned long long XML_Size; | ||||
| # endif | ||||
| #else | ||||
| typedef long XML_Index; | ||||
| typedef unsigned long XML_Size; | ||||
| #endif /* XML_LARGE_SIZE */ | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif | ||||
|  | ||||
| #endif /* not Expat_External_INCLUDED */ | ||||
							
								
								
									
										149
									
								
								library/libexpat/expat/lib/expat_static.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										149
									
								
								library/libexpat/expat/lib/expat_static.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,149 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Template|Win32"> | ||||
|       <Configuration>Template</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{58A821BC-E4AF-4DF4-9A54-2BAA22B92615}</ProjectGuid> | ||||
|     <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>StaticLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>StaticLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Release\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Release_static\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Debug\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Debug_static\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <PreprocessorDefinitions>_WINDOWS;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Release_static\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Release_static\expat_static.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Release_static\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Release_static\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Release\expat_static.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Lib> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>..\win32\bin\Release\libexpatMT.lib</OutputFile> | ||||
|     </Lib> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <PreprocessorDefinitions>_DEBUG;_WINDOWS;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Debug_static\</AssemblerListingLocation> | ||||
|       <BrowseInformation>true</BrowseInformation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug_static\expat_static.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Debug_static\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Debug_static\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Debug\expat_static.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Lib> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>..\win32\bin\Debug\libexpatMT.lib</OutputFile> | ||||
|     </Lib> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c" /> | ||||
|     <ClCompile Include="xmlparse.c" /> | ||||
|     <ClCompile Include="xmlrole.c" /> | ||||
|     <ClCompile Include="xmltok.c" /> | ||||
|     <ClCompile Include="xmltok_impl.c" /> | ||||
|     <ClCompile Include="xmltok_ns.c" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h" /> | ||||
|     <ClInclude Include="asciitab.h" /> | ||||
|     <ClInclude Include="expat.h" /> | ||||
|     <ClInclude Include="expat_external.h" /> | ||||
|     <ClInclude Include="iasciitab.h" /> | ||||
|     <ClInclude Include="internal.h" /> | ||||
|     <ClInclude Include="latin1tab.h" /> | ||||
|     <ClInclude Include="nametab.h" /> | ||||
|     <ClInclude Include="siphash.h" /> | ||||
|     <ClInclude Include="utf8tab.h" /> | ||||
|     <ClInclude Include="xmlrole.h" /> | ||||
|     <ClInclude Include="xmltok.h" /> | ||||
|     <ClInclude Include="xmltok_impl.h" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
							
								
								
									
										74
									
								
								library/libexpat/expat/lib/expat_static.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								library/libexpat/expat/lib/expat_static.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,74 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup> | ||||
|     <Filter Include="Source Files"> | ||||
|       <UniqueIdentifier>{ef375f25-3490-4376-8deb-a8a8bebc0194}</UniqueIdentifier> | ||||
|       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Header Files"> | ||||
|       <UniqueIdentifier>{f1cd6f85-7111-4c1b-abad-37c79851ca34}</UniqueIdentifier> | ||||
|       <Extensions>h;hpp;hxx;hm;inl</Extensions> | ||||
|     </Filter> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlparse.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlrole.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_impl.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_ns.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="asciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat_external.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="iasciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="internal.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="latin1tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="nametab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="siphash.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="utf8tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmlrole.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok_impl.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										179
									
								
								library/libexpat/expat/lib/expatw.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										179
									
								
								library/libexpat/expat/lib/expatw.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,179 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Template|Win32"> | ||||
|       <Configuration>Template</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{C04F1C11-7079-48AD-A90B-6F59B7A55BEF}</ProjectGuid> | ||||
|     <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>DynamicLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>DynamicLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Release\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Release-w\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Debug\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Debug-w\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;XML_UNICODE_WCHAR_T;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Release-w\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Release-w\expatw.pch</PrecompiledHeaderOutputFile> | ||||
|       <PrecompiledHeader /> | ||||
|       <ObjectFileName>.\..\win32\tmp\Release-w\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Release-w\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <TypeLibraryName>.\..\win32\bin\Release\expatw.tlb</TypeLibraryName> | ||||
|       <MkTypLibCompatible>true</MkTypLibCompatible> | ||||
|       <TargetEnvironment>Win32</TargetEnvironment> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Release\expatw.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <LinkDLL>true</LinkDLL> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Release\libexpatw.dll</OutputFile> | ||||
|       <ImportLibrary>.\..\win32\bin\Release\libexpatw.lib</ImportLibrary> | ||||
|       <ModuleDefinitionFile>.\libexpatw.def</ModuleDefinitionFile> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;XML_UNICODE_WCHAR_T;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Debug-w\</AssemblerListingLocation> | ||||
|       <BrowseInformation>true</BrowseInformation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug-w\expatw.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Debug-w\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Debug-w\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <TypeLibraryName>.\..\win32\bin\Debug\expatw.tlb</TypeLibraryName> | ||||
|       <MkTypLibCompatible>true</MkTypLibCompatible> | ||||
|       <TargetEnvironment>Win32</TargetEnvironment> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Debug\expatw.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <LinkDLL>true</LinkDLL> | ||||
|       <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>..\win32\bin\Debug\libexpatw.dll</OutputFile> | ||||
|       <ImportLibrary>.\..\win32\bin\Debug\libexpatw.lib</ImportLibrary> | ||||
|       <ModuleDefinitionFile>.\libexpatw.def</ModuleDefinitionFile> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <CustomBuild Include="libexpatw.def" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c" /> | ||||
|     <ClCompile Include="xmlparse.c"> | ||||
|       <ExceptionHandling Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|       </ExceptionHandling> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlrole.c" /> | ||||
|     <ClCompile Include="xmltok.c" /> | ||||
|     <ClCompile Include="xmltok_impl.c" /> | ||||
|     <ClCompile Include="xmltok_ns.c" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h" /> | ||||
|     <ClInclude Include="asciitab.h" /> | ||||
|     <ClInclude Include="expat.h" /> | ||||
|     <ClInclude Include="expat_external.h" /> | ||||
|     <ClInclude Include="iasciitab.h" /> | ||||
|     <ClInclude Include="internal.h" /> | ||||
|     <ClInclude Include="latin1tab.h" /> | ||||
|     <ClInclude Include="nametab.h" /> | ||||
|     <ClInclude Include="siphash.h" /> | ||||
|     <ClInclude Include="utf8tab.h" /> | ||||
|     <ClInclude Include="xmlrole.h" /> | ||||
|     <ClInclude Include="xmltok.h" /> | ||||
|     <ClInclude Include="xmltok_impl.h" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
							
								
								
									
										83
									
								
								library/libexpat/expat/lib/expatw.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								library/libexpat/expat/lib/expatw.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,83 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup> | ||||
|     <Filter Include="Source Files"> | ||||
|       <UniqueIdentifier>{fea8fd20-7d6d-4664-a821-1ab5a29dadbd}</UniqueIdentifier> | ||||
|       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Header Files"> | ||||
|       <UniqueIdentifier>{0ceb9aa0-672d-4a6b-bff9-345c51aab04c}</UniqueIdentifier> | ||||
|       <Extensions>h;hpp;hxx;hm;inl</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Resource Files"> | ||||
|       <UniqueIdentifier>{d62ff6fc-7f74-443d-a048-31ef02a6f99f}</UniqueIdentifier> | ||||
|       <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> | ||||
|     </Filter> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlparse.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlrole.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_impl.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_ns.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="asciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat_external.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="iasciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="internal.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="latin1tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="nametab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="siphash.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="utf8tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmlrole.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok_impl.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <CustomBuild Include="libexpatw.def"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </CustomBuild> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										149
									
								
								library/libexpat/expat/lib/expatw_static.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										149
									
								
								library/libexpat/expat/lib/expatw_static.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,149 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Template|Win32"> | ||||
|       <Configuration>Template</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{9220B0F2-C895-4CB2-91D1-1C16C4ECB759}</ProjectGuid> | ||||
|     <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>StaticLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>StaticLibrary</ConfigurationType> | ||||
|     <PlatformToolset>v141</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Debug\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Debug-w_static\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\..\win32\bin\Release\</OutDir> | ||||
|     <IntDir>.\..\win32\tmp\Release-w_static\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <PreprocessorDefinitions>_DEBUG;_WINDOWS;_LIB;XML_UNICODE_WCHAR_T;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Debug-w_static\</AssemblerListingLocation> | ||||
|       <BrowseInformation>true</BrowseInformation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug-w_static\expatw_static.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Debug-w_static\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Debug-w_static\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Debug\expatw_static.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Lib> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>..\win32\bin\Debug\libexpatwMT.lib</OutputFile> | ||||
|     </Lib> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <PreprocessorDefinitions>_WINDOWS;NDEBUG;_LIB;XML_UNICODE_WCHAR_T;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\..\win32\tmp\Release-w_static\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\..\win32\tmp\Release-w_static\expatw_static.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\..\win32\tmp\Release-w_static\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\..\win32\tmp\Release-w_static\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x0409</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\..\win32\bin\Release\expatw_static.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Lib> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>..\win32\bin\Release\libexpatwMT.lib</OutputFile> | ||||
|     </Lib> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c" /> | ||||
|     <ClCompile Include="xmlparse.c" /> | ||||
|     <ClCompile Include="xmlrole.c" /> | ||||
|     <ClCompile Include="xmltok.c" /> | ||||
|     <ClCompile Include="xmltok_impl.c" /> | ||||
|     <ClCompile Include="xmltok_ns.c" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h" /> | ||||
|     <ClInclude Include="asciitab.h" /> | ||||
|     <ClInclude Include="expat.h" /> | ||||
|     <ClInclude Include="expat_external.h" /> | ||||
|     <ClInclude Include="iasciitab.h" /> | ||||
|     <ClInclude Include="internal.h" /> | ||||
|     <ClInclude Include="latin1tab.h" /> | ||||
|     <ClInclude Include="nametab.h" /> | ||||
|     <ClInclude Include="siphash.h" /> | ||||
|     <ClInclude Include="utf8tab.h" /> | ||||
|     <ClInclude Include="xmlrole.h" /> | ||||
|     <ClInclude Include="xmltok.h" /> | ||||
|     <ClInclude Include="xmltok_impl.h" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
							
								
								
									
										74
									
								
								library/libexpat/expat/lib/expatw_static.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								library/libexpat/expat/lib/expatw_static.vcxproj.filters
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,74 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup> | ||||
|     <Filter Include="Source Files"> | ||||
|       <UniqueIdentifier>{c0226397-04be-42b5-ba75-257ac91ef7fa}</UniqueIdentifier> | ||||
|       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> | ||||
|     </Filter> | ||||
|     <Filter Include="Header Files"> | ||||
|       <UniqueIdentifier>{3d74dc56-3aec-4ee9-b700-7203f44e015d}</UniqueIdentifier> | ||||
|       <Extensions>h;hpp;hxx;hm;inl</Extensions> | ||||
|     </Filter> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="loadlibrary.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlparse.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmlrole.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_impl.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|     <ClCompile Include="xmltok_ns.c"> | ||||
|       <Filter>Source Files</Filter> | ||||
|     </ClCompile> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <ClInclude Include="ascii.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="asciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="expat_external.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="iasciitab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="internal.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="latin1tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="nametab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="siphash.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="utf8tab.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmlrole.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|     <ClInclude Include="xmltok_impl.h"> | ||||
|       <Filter>Header Files</Filter> | ||||
|     </ClInclude> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
							
								
								
									
										65
									
								
								library/libexpat/expat/lib/iasciitab.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								library/libexpat/expat/lib/iasciitab.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| /* Like asciitab.h, except that 0xD has code BT_S rather than BT_CR */ | ||||
| /* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML, | ||||
| /* 0x0C */ BT_NONXML, BT_S, BT_NONXML, BT_NONXML, | ||||
| /* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM, | ||||
| /* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS, | ||||
| /* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS, | ||||
| /* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL, | ||||
| /* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, | ||||
| /* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, | ||||
| /* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI, | ||||
| /* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST, | ||||
| /* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, | ||||
| /* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, | ||||
| /* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB, | ||||
| /* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT, | ||||
| /* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, | ||||
| /* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, | ||||
| /* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, | ||||
| /* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
							
								
								
									
										129
									
								
								library/libexpat/expat/lib/internal.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										129
									
								
								library/libexpat/expat/lib/internal.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,129 @@ | ||||
| /* internal.h | ||||
|  | ||||
|    Internal definitions used by Expat.  This is not needed to compile | ||||
|    client code. | ||||
|  | ||||
|    The following calling convention macros are defined for frequently | ||||
|    called functions: | ||||
|  | ||||
|    FASTCALL    - Used for those internal functions that have a simple | ||||
|                  body and a low number of arguments and local variables. | ||||
|  | ||||
|    PTRCALL     - Used for functions called though function pointers. | ||||
|  | ||||
|    PTRFASTCALL - Like PTRCALL, but for low number of arguments. | ||||
|  | ||||
|    inline      - Used for selected internal functions for which inlining | ||||
|                  may improve performance on some platforms. | ||||
|  | ||||
|    Note: Use of these macros is based on judgement, not hard rules, | ||||
|          and therefore subject to change. | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #if defined(__GNUC__) && defined(__i386__) && !defined(__MINGW32__) | ||||
| /* We'll use this version by default only where we know it helps. | ||||
|  | ||||
|    regparm() generates warnings on Solaris boxes.   See SF bug #692878. | ||||
|  | ||||
|    Instability reported with egcs on a RedHat Linux 7.3. | ||||
|    Let's comment out: | ||||
|    #define FASTCALL __attribute__((stdcall, regparm(3))) | ||||
|    and let's try this: | ||||
| */ | ||||
| #define FASTCALL __attribute__((regparm(3))) | ||||
| #define PTRFASTCALL __attribute__((regparm(3))) | ||||
| #endif | ||||
|  | ||||
| /* Using __fastcall seems to have an unexpected negative effect under | ||||
|    MS VC++, especially for function pointers, so we won't use it for | ||||
|    now on that platform. It may be reconsidered for a future release | ||||
|    if it can be made more effective. | ||||
|    Likely reason: __fastcall on Windows is like stdcall, therefore | ||||
|    the compiler cannot perform stack optimizations for call clusters. | ||||
| */ | ||||
|  | ||||
| /* Make sure all of these are defined if they aren't already. */ | ||||
|  | ||||
| #ifndef FASTCALL | ||||
| #define FASTCALL | ||||
| #endif | ||||
|  | ||||
| #ifndef PTRCALL | ||||
| #define PTRCALL | ||||
| #endif | ||||
|  | ||||
| #ifndef PTRFASTCALL | ||||
| #define PTRFASTCALL | ||||
| #endif | ||||
|  | ||||
| #ifndef XML_MIN_SIZE | ||||
| #if !defined(__cplusplus) && !defined(inline) | ||||
| #ifdef __GNUC__ | ||||
| #define inline __inline | ||||
| #endif /* __GNUC__ */ | ||||
| #endif | ||||
| #endif /* XML_MIN_SIZE */ | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| #define inline inline | ||||
| #else | ||||
| #ifndef inline | ||||
| #define inline | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| #ifndef UNUSED_P | ||||
| # ifdef __GNUC__ | ||||
| #  define UNUSED_P(p) UNUSED_ ## p __attribute__((__unused__)) | ||||
| # else | ||||
| #  define UNUSED_P(p) UNUSED_ ## p | ||||
| # endif | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #ifdef XML_ENABLE_VISIBILITY | ||||
| #if XML_ENABLE_VISIBILITY | ||||
| __attribute__ ((visibility ("default"))) | ||||
| #endif | ||||
| #endif | ||||
| void | ||||
| _INTERNAL_trim_to_complete_utf8_characters(const char * from, const char ** fromLimRef); | ||||
|  | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif | ||||
							
								
								
									
										64
									
								
								library/libexpat/expat/lib/latin1tab.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								library/libexpat/expat/lib/latin1tab.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,64 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| /* 0x80 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x84 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x88 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x8C */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x90 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x94 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x98 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0x9C */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0xA0 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0xA4 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0xA8 */ BT_OTHER, BT_OTHER, BT_NMSTRT, BT_OTHER, | ||||
| /* 0xAC */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0xB0 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0xB4 */ BT_OTHER, BT_NMSTRT, BT_OTHER, BT_NAME, | ||||
| /* 0xB8 */ BT_OTHER, BT_OTHER, BT_NMSTRT, BT_OTHER, | ||||
| /* 0xBC */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, | ||||
| /* 0xC0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xC4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xC8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xCC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xD0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xD4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, | ||||
| /* 0xD8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xDC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xE0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xE4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xE8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xEC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xF0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xF4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, | ||||
| /* 0xF8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
| /* 0xFC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, | ||||
							
								
								
									
										78
									
								
								library/libexpat/expat/lib/libexpat.def
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								library/libexpat/expat/lib/libexpat.def
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,78 @@ | ||||
| ; DEF file for MS VC++ | ||||
|  | ||||
| LIBRARY | ||||
| EXPORTS | ||||
|   XML_DefaultCurrent @1 | ||||
|   XML_ErrorString @2 | ||||
|   XML_ExpatVersion @3 | ||||
|   XML_ExpatVersionInfo @4 | ||||
|   XML_ExternalEntityParserCreate @5 | ||||
|   XML_GetBase @6 | ||||
|   XML_GetBuffer @7 | ||||
|   XML_GetCurrentByteCount @8 | ||||
|   XML_GetCurrentByteIndex @9 | ||||
|   XML_GetCurrentColumnNumber @10 | ||||
|   XML_GetCurrentLineNumber @11 | ||||
|   XML_GetErrorCode @12 | ||||
|   XML_GetIdAttributeIndex @13 | ||||
|   XML_GetInputContext @14 | ||||
|   XML_GetSpecifiedAttributeCount @15 | ||||
|   XML_Parse @16 | ||||
|   XML_ParseBuffer @17 | ||||
|   XML_ParserCreate @18 | ||||
|   XML_ParserCreateNS @19 | ||||
|   XML_ParserCreate_MM @20 | ||||
|   XML_ParserFree @21 | ||||
|   XML_SetAttlistDeclHandler @22 | ||||
|   XML_SetBase @23 | ||||
|   XML_SetCdataSectionHandler @24 | ||||
|   XML_SetCharacterDataHandler @25 | ||||
|   XML_SetCommentHandler @26 | ||||
|   XML_SetDefaultHandler @27 | ||||
|   XML_SetDefaultHandlerExpand @28 | ||||
|   XML_SetDoctypeDeclHandler @29 | ||||
|   XML_SetElementDeclHandler @30 | ||||
|   XML_SetElementHandler @31 | ||||
|   XML_SetEncoding @32 | ||||
|   XML_SetEndCdataSectionHandler @33 | ||||
|   XML_SetEndDoctypeDeclHandler @34 | ||||
|   XML_SetEndElementHandler @35 | ||||
|   XML_SetEndNamespaceDeclHandler @36 | ||||
|   XML_SetEntityDeclHandler @37 | ||||
|   XML_SetExternalEntityRefHandler @38 | ||||
|   XML_SetExternalEntityRefHandlerArg @39 | ||||
|   XML_SetNamespaceDeclHandler @40 | ||||
|   XML_SetNotStandaloneHandler @41 | ||||
|   XML_SetNotationDeclHandler @42 | ||||
|   XML_SetParamEntityParsing @43 | ||||
|   XML_SetProcessingInstructionHandler @44 | ||||
|   XML_SetReturnNSTriplet @45 | ||||
|   XML_SetStartCdataSectionHandler @46 | ||||
|   XML_SetStartDoctypeDeclHandler @47 | ||||
|   XML_SetStartElementHandler @48 | ||||
|   XML_SetStartNamespaceDeclHandler @49 | ||||
|   XML_SetUnknownEncodingHandler @50 | ||||
|   XML_SetUnparsedEntityDeclHandler @51 | ||||
|   XML_SetUserData @52 | ||||
|   XML_SetXmlDeclHandler @53 | ||||
|   XML_UseParserAsHandlerArg @54 | ||||
| ; added with version 1.95.3 | ||||
|   XML_ParserReset @55 | ||||
|   XML_SetSkippedEntityHandler @56 | ||||
| ; added with version 1.95.5 | ||||
|   XML_GetFeatureList @57 | ||||
|   XML_UseForeignDTD @58 | ||||
| ; added with version 1.95.6 | ||||
|   XML_FreeContentModel @59 | ||||
|   XML_MemMalloc @60 | ||||
|   XML_MemRealloc @61 | ||||
|   XML_MemFree @62 | ||||
| ; added with version 1.95.8 | ||||
|   XML_StopParser @63 | ||||
|   XML_ResumeParser @64 | ||||
|   XML_GetParsingStatus @65 | ||||
| ; added with version 2.1.1 | ||||
| ; XML_GetAttributeInfo @66 | ||||
|   XML_SetHashSalt @67 | ||||
| ; added with version 2.2.5 | ||||
|   _INTERNAL_trim_to_complete_utf8_characters @68 | ||||
							
								
								
									
										78
									
								
								library/libexpat/expat/lib/libexpatw.def
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								library/libexpat/expat/lib/libexpatw.def
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,78 @@ | ||||
| ; DEF file for MS VC++ | ||||
|  | ||||
| LIBRARY | ||||
| EXPORTS | ||||
|   XML_DefaultCurrent @1 | ||||
|   XML_ErrorString @2 | ||||
|   XML_ExpatVersion @3 | ||||
|   XML_ExpatVersionInfo @4 | ||||
|   XML_ExternalEntityParserCreate @5 | ||||
|   XML_GetBase @6 | ||||
|   XML_GetBuffer @7 | ||||
|   XML_GetCurrentByteCount @8 | ||||
|   XML_GetCurrentByteIndex @9 | ||||
|   XML_GetCurrentColumnNumber @10 | ||||
|   XML_GetCurrentLineNumber @11 | ||||
|   XML_GetErrorCode @12 | ||||
|   XML_GetIdAttributeIndex @13 | ||||
|   XML_GetInputContext @14 | ||||
|   XML_GetSpecifiedAttributeCount @15 | ||||
|   XML_Parse @16 | ||||
|   XML_ParseBuffer @17 | ||||
|   XML_ParserCreate @18 | ||||
|   XML_ParserCreateNS @19 | ||||
|   XML_ParserCreate_MM @20 | ||||
|   XML_ParserFree @21 | ||||
|   XML_SetAttlistDeclHandler @22 | ||||
|   XML_SetBase @23 | ||||
|   XML_SetCdataSectionHandler @24 | ||||
|   XML_SetCharacterDataHandler @25 | ||||
|   XML_SetCommentHandler @26 | ||||
|   XML_SetDefaultHandler @27 | ||||
|   XML_SetDefaultHandlerExpand @28 | ||||
|   XML_SetDoctypeDeclHandler @29 | ||||
|   XML_SetElementDeclHandler @30 | ||||
|   XML_SetElementHandler @31 | ||||
|   XML_SetEncoding @32 | ||||
|   XML_SetEndCdataSectionHandler @33 | ||||
|   XML_SetEndDoctypeDeclHandler @34 | ||||
|   XML_SetEndElementHandler @35 | ||||
|   XML_SetEndNamespaceDeclHandler @36 | ||||
|   XML_SetEntityDeclHandler @37 | ||||
|   XML_SetExternalEntityRefHandler @38 | ||||
|   XML_SetExternalEntityRefHandlerArg @39 | ||||
|   XML_SetNamespaceDeclHandler @40 | ||||
|   XML_SetNotStandaloneHandler @41 | ||||
|   XML_SetNotationDeclHandler @42 | ||||
|   XML_SetParamEntityParsing @43 | ||||
|   XML_SetProcessingInstructionHandler @44 | ||||
|   XML_SetReturnNSTriplet @45 | ||||
|   XML_SetStartCdataSectionHandler @46 | ||||
|   XML_SetStartDoctypeDeclHandler @47 | ||||
|   XML_SetStartElementHandler @48 | ||||
|   XML_SetStartNamespaceDeclHandler @49 | ||||
|   XML_SetUnknownEncodingHandler @50 | ||||
|   XML_SetUnparsedEntityDeclHandler @51 | ||||
|   XML_SetUserData @52 | ||||
|   XML_SetXmlDeclHandler @53 | ||||
|   XML_UseParserAsHandlerArg @54 | ||||
| ; added with version 1.95.3 | ||||
|   XML_ParserReset @55 | ||||
|   XML_SetSkippedEntityHandler @56 | ||||
| ; added with version 1.95.5 | ||||
|   XML_GetFeatureList @57 | ||||
|   XML_UseForeignDTD @58 | ||||
| ; added with version 1.95.6 | ||||
|   XML_FreeContentModel @59 | ||||
|   XML_MemMalloc @60 | ||||
|   XML_MemRealloc @61 | ||||
|   XML_MemFree @62 | ||||
| ; added with version 1.95.8 | ||||
|   XML_StopParser @63 | ||||
|   XML_ResumeParser @64 | ||||
|   XML_GetParsingStatus @65 | ||||
| ; added with version 2.1.1 | ||||
| ; XML_GetAttributeInfo @66 | ||||
|   XML_SetHashSalt @67 | ||||
| ; added with version 2.2.5 | ||||
|   _INTERNAL_trim_to_complete_utf8_characters @68 | ||||
							
								
								
									
										143
									
								
								library/libexpat/expat/lib/loadlibrary.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										143
									
								
								library/libexpat/expat/lib/loadlibrary.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,143 @@ | ||||
| /*************************************************************************** | ||||
|  *                                  _   _ ____  _ | ||||
|  *  Project                     ___| | | |  _ \| | | ||||
|  *                             / __| | | | |_) | | | ||||
|  *                            | (__| |_| |  _ <| |___ | ||||
|  *                             \___|\___/|_| \_\_____| | ||||
|  * | ||||
|  * Copyright (C) 2016 - 2017, Steve Holme, <steve_holme@hotmail.com>. | ||||
|  * Copyright (C) 2017, Expat development team | ||||
|  * | ||||
|  * All rights reserved. | ||||
|  * Licensed under the MIT license: | ||||
|  * | ||||
|  * Permission to  use, copy,  modify, and distribute  this software  for any | ||||
|  * purpose with  or without fee is  hereby granted, provided that  the above | ||||
|  * copyright notice and this permission notice appear in all copies. | ||||
|  * | ||||
|  * 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 OF | ||||
|  * THIRD PARTY RIGHTS. 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. | ||||
|  * | ||||
|  * Except as contained in this notice,  the name of a copyright holder shall | ||||
|  * not be used in advertising or otherwise to promote the sale, use or other | ||||
|  * dealings  in this  Software without  prior written  authorization of  the | ||||
|  * copyright holder. | ||||
|  * | ||||
|  ***************************************************************************/ | ||||
|  | ||||
| #if defined(_WIN32) | ||||
|  | ||||
| #include <windows.h> | ||||
| #include <tchar.h> | ||||
|  | ||||
|  | ||||
| HMODULE _Expat_LoadLibrary(LPCTSTR filename); | ||||
|  | ||||
|  | ||||
| #if !defined(LOAD_WITH_ALTERED_SEARCH_PATH) | ||||
| #define LOAD_WITH_ALTERED_SEARCH_PATH  0x00000008 | ||||
| #endif | ||||
|  | ||||
| #if !defined(LOAD_LIBRARY_SEARCH_SYSTEM32) | ||||
| #define LOAD_LIBRARY_SEARCH_SYSTEM32   0x00000800 | ||||
| #endif | ||||
|  | ||||
| /* We use our own typedef here since some headers might lack these */ | ||||
| typedef HMODULE (APIENTRY *LOADLIBRARYEX_FN)(LPCTSTR, HANDLE, DWORD); | ||||
|  | ||||
| /* See function definitions in winbase.h */ | ||||
| #ifdef UNICODE | ||||
| #  ifdef _WIN32_WCE | ||||
| #    define LOADLIBARYEX  L"LoadLibraryExW" | ||||
| #  else | ||||
| #    define LOADLIBARYEX  "LoadLibraryExW" | ||||
| #  endif | ||||
| #else | ||||
| #  define LOADLIBARYEX    "LoadLibraryExA" | ||||
| #endif | ||||
|  | ||||
|  | ||||
| /* | ||||
|  * _Expat_LoadLibrary() | ||||
|  * | ||||
|  * This is used to dynamically load DLLs using the most secure method available | ||||
|  * for the version of Windows that we are running on. | ||||
|  * | ||||
|  * Parameters: | ||||
|  * | ||||
|  * filename  [in] - The filename or full path of the DLL to load. If only the | ||||
|  *                  filename is passed then the DLL will be loaded from the | ||||
|  *                  Windows system directory. | ||||
|  * | ||||
|  * Returns the handle of the module on success; otherwise NULL. | ||||
|  */ | ||||
| HMODULE _Expat_LoadLibrary(LPCTSTR filename) | ||||
| { | ||||
|   HMODULE hModule = NULL; | ||||
|   LOADLIBRARYEX_FN pLoadLibraryEx = NULL; | ||||
|  | ||||
|   /* Get a handle to kernel32 so we can access it's functions at runtime */ | ||||
|   HMODULE hKernel32 = GetModuleHandle(TEXT("kernel32")); | ||||
|   if(!hKernel32) | ||||
|     return NULL;  /* LCOV_EXCL_LINE */ | ||||
|  | ||||
|   /* Attempt to find LoadLibraryEx() which is only available on Windows 2000 | ||||
|      and above */ | ||||
|   pLoadLibraryEx = (LOADLIBRARYEX_FN) GetProcAddress(hKernel32, LOADLIBARYEX); | ||||
|  | ||||
|   /* Detect if there's already a path in the filename and load the library if | ||||
|      there is. Note: Both back slashes and forward slashes have been supported | ||||
|      since the earlier days of DOS at an API level although they are not | ||||
|      supported by command prompt */ | ||||
|   if(_tcspbrk(filename, TEXT("\\/"))) { | ||||
|     /** !checksrc! disable BANNEDFUNC 1 **/ | ||||
|     hModule = pLoadLibraryEx ? | ||||
|       pLoadLibraryEx(filename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) : | ||||
|       LoadLibrary(filename); | ||||
|   } | ||||
|   /* Detect if KB2533623 is installed, as LOAD_LIBARY_SEARCH_SYSTEM32 is only | ||||
|      supported on Windows Vista, Windows Server 2008, Windows 7 and Windows | ||||
|      Server 2008 R2 with this patch or natively on Windows 8 and above */ | ||||
|   else if(pLoadLibraryEx && GetProcAddress(hKernel32, "AddDllDirectory")) { | ||||
|     /* Load the DLL from the Windows system directory */ | ||||
|     hModule = pLoadLibraryEx(filename, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); | ||||
|   } | ||||
|   else { | ||||
|     /* Attempt to get the Windows system path */ | ||||
|     UINT systemdirlen = GetSystemDirectory(NULL, 0); | ||||
|     if(systemdirlen) { | ||||
|       /* Allocate space for the full DLL path (Room for the null terminator | ||||
|          is included in systemdirlen) */ | ||||
|       size_t filenamelen = _tcslen(filename); | ||||
|       TCHAR *path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); | ||||
|       if(path && GetSystemDirectory(path, systemdirlen)) { | ||||
|         /* Calculate the full DLL path */ | ||||
|         _tcscpy(path + _tcslen(path), TEXT("\\")); | ||||
|         _tcscpy(path + _tcslen(path), filename); | ||||
|  | ||||
|         /* Load the DLL from the Windows system directory */ | ||||
|         /** !checksrc! disable BANNEDFUNC 1 **/ | ||||
|         hModule = pLoadLibraryEx ? | ||||
|           pLoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) : | ||||
|           LoadLibrary(path); | ||||
|  | ||||
|       } | ||||
|       free(path); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   return hModule; | ||||
| } | ||||
|  | ||||
| #else /* defined(_WIN32) */ | ||||
|  | ||||
| /* ISO C requires a translation unit to contain at least one declaration | ||||
|    [-Wempty-translation-unit] */ | ||||
| typedef int _TRANSLATION_UNIT_LOAD_LIBRARY_C_NOT_EMTPY; | ||||
|  | ||||
| #endif /* defined(_WIN32) */ | ||||
							
								
								
									
										2
									
								
								library/libexpat/expat/lib/loadlibrary.dep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								library/libexpat/expat/lib/loadlibrary.dep
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| library/libexpat/expat/lib/loadlibrary.lo: \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/loadlibrary.c | ||||
							
								
								
									
										182
									
								
								library/libexpat/expat/lib/nametab.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										182
									
								
								library/libexpat/expat/lib/nametab.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,182 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| static const unsigned namingBitmap[] = { | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||||
| 0x00000000, 0x04000000, 0x87FFFFFE, 0x07FFFFFE, | ||||
| 0x00000000, 0x00000000, 0xFF7FFFFF, 0xFF7FFFFF, | ||||
| 0xFFFFFFFF, 0x7FF3FFFF, 0xFFFFFDFE, 0x7FFFFFFF, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFE00F, 0xFC31FFFF, | ||||
| 0x00FFFFFF, 0x00000000, 0xFFFF0000, 0xFFFFFFFF, | ||||
| 0xFFFFFFFF, 0xF80001FF, 0x00000003, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0xFFFFD740, 0xFFFFFFFB, 0x547F7FFF, 0x000FFFFD, | ||||
| 0xFFFFDFFE, 0xFFFFFFFF, 0xDFFEFFFF, 0xFFFFFFFF, | ||||
| 0xFFFF0003, 0xFFFFFFFF, 0xFFFF199F, 0x033FCFFF, | ||||
| 0x00000000, 0xFFFE0000, 0x027FFFFF, 0xFFFFFFFE, | ||||
| 0x0000007F, 0x00000000, 0xFFFF0000, 0x000707FF, | ||||
| 0x00000000, 0x07FFFFFE, 0x000007FE, 0xFFFE0000, | ||||
| 0xFFFFFFFF, 0x7CFFFFFF, 0x002F7FFF, 0x00000060, | ||||
| 0xFFFFFFE0, 0x23FFFFFF, 0xFF000000, 0x00000003, | ||||
| 0xFFF99FE0, 0x03C5FDFF, 0xB0000000, 0x00030003, | ||||
| 0xFFF987E0, 0x036DFDFF, 0x5E000000, 0x001C0000, | ||||
| 0xFFFBAFE0, 0x23EDFDFF, 0x00000000, 0x00000001, | ||||
| 0xFFF99FE0, 0x23CDFDFF, 0xB0000000, 0x00000003, | ||||
| 0xD63DC7E0, 0x03BFC718, 0x00000000, 0x00000000, | ||||
| 0xFFFDDFE0, 0x03EFFDFF, 0x00000000, 0x00000003, | ||||
| 0xFFFDDFE0, 0x03EFFDFF, 0x40000000, 0x00000003, | ||||
| 0xFFFDDFE0, 0x03FFFDFF, 0x00000000, 0x00000003, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0xFFFFFFFE, 0x000D7FFF, 0x0000003F, 0x00000000, | ||||
| 0xFEF02596, 0x200D6CAE, 0x0000001F, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0xFFFFFEFF, 0x000003FF, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0xFFFFFFFF, 0xFFFF003F, 0x007FFFFF, | ||||
| 0x0007DAED, 0x50000000, 0x82315001, 0x002C62AB, | ||||
| 0x40000000, 0xF580C900, 0x00000007, 0x02010800, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||||
| 0x0FFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x03FFFFFF, | ||||
| 0x3F3FFFFF, 0xFFFFFFFF, 0xAAFF3F3F, 0x3FFFFFFF, | ||||
| 0xFFFFFFFF, 0x5FDFFFFF, 0x0FCF1FDC, 0x1FDC1FFF, | ||||
| 0x00000000, 0x00004C40, 0x00000000, 0x00000000, | ||||
| 0x00000007, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0x00000080, 0x000003FE, 0xFFFFFFFE, 0xFFFFFFFF, | ||||
| 0x001FFFFF, 0xFFFFFFFE, 0xFFFFFFFF, 0x07FFFFFF, | ||||
| 0xFFFFFFE0, 0x00001FFF, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||||
| 0xFFFFFFFF, 0x0000003F, 0x00000000, 0x00000000, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, | ||||
| 0xFFFFFFFF, 0x0000000F, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0x07FF6000, 0x87FFFFFE, 0x07FFFFFE, | ||||
| 0x00000000, 0x00800000, 0xFF7FFFFF, 0xFF7FFFFF, | ||||
| 0x00FFFFFF, 0x00000000, 0xFFFF0000, 0xFFFFFFFF, | ||||
| 0xFFFFFFFF, 0xF80001FF, 0x00030003, 0x00000000, | ||||
| 0xFFFFFFFF, 0xFFFFFFFF, 0x0000003F, 0x00000003, | ||||
| 0xFFFFD7C0, 0xFFFFFFFB, 0x547F7FFF, 0x000FFFFD, | ||||
| 0xFFFFDFFE, 0xFFFFFFFF, 0xDFFEFFFF, 0xFFFFFFFF, | ||||
| 0xFFFF007B, 0xFFFFFFFF, 0xFFFF199F, 0x033FCFFF, | ||||
| 0x00000000, 0xFFFE0000, 0x027FFFFF, 0xFFFFFFFE, | ||||
| 0xFFFE007F, 0xBBFFFFFB, 0xFFFF0016, 0x000707FF, | ||||
| 0x00000000, 0x07FFFFFE, 0x0007FFFF, 0xFFFF03FF, | ||||
| 0xFFFFFFFF, 0x7CFFFFFF, 0xFFEF7FFF, 0x03FF3DFF, | ||||
| 0xFFFFFFEE, 0xF3FFFFFF, 0xFF1E3FFF, 0x0000FFCF, | ||||
| 0xFFF99FEE, 0xD3C5FDFF, 0xB080399F, 0x0003FFCF, | ||||
| 0xFFF987E4, 0xD36DFDFF, 0x5E003987, 0x001FFFC0, | ||||
| 0xFFFBAFEE, 0xF3EDFDFF, 0x00003BBF, 0x0000FFC1, | ||||
| 0xFFF99FEE, 0xF3CDFDFF, 0xB0C0398F, 0x0000FFC3, | ||||
| 0xD63DC7EC, 0xC3BFC718, 0x00803DC7, 0x0000FF80, | ||||
| 0xFFFDDFEE, 0xC3EFFDFF, 0x00603DDF, 0x0000FFC3, | ||||
| 0xFFFDDFEC, 0xC3EFFDFF, 0x40603DDF, 0x0000FFC3, | ||||
| 0xFFFDDFEC, 0xC3FFFDFF, 0x00803DCF, 0x0000FFC3, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0xFFFFFFFE, 0x07FF7FFF, 0x03FF7FFF, 0x00000000, | ||||
| 0xFEF02596, 0x3BFF6CAE, 0x03FF3F5F, 0x00000000, | ||||
| 0x03000000, 0xC2A003FF, 0xFFFFFEFF, 0xFFFE03FF, | ||||
| 0xFEBF0FDF, 0x02FE3FFF, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0x00000000, 0x00000000, | ||||
| 0x00000000, 0x00000000, 0x1FFF0000, 0x00000002, | ||||
| 0x000000A0, 0x003EFFFE, 0xFFFFFFFE, 0xFFFFFFFF, | ||||
| 0x661FFFFF, 0xFFFFFFFE, 0xFFFFFFFF, 0x77FFFFFF, | ||||
| }; | ||||
| static const unsigned char nmstrtPages[] = { | ||||
| 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00, | ||||
| 0x00, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, | ||||
| 0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x13, | ||||
| 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x15, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x17, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x18, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| }; | ||||
| static const unsigned char namePages[] = { | ||||
| 0x19, 0x03, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x00, | ||||
| 0x00, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, | ||||
| 0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x13, | ||||
| 0x26, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x27, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x17, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||||
| 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x18, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||||
| }; | ||||
							
								
								
									
										391
									
								
								library/libexpat/expat/lib/siphash.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										391
									
								
								library/libexpat/expat/lib/siphash.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,391 @@ | ||||
| /* ========================================================================== | ||||
|  * siphash.h - SipHash-2-4 in a single header file | ||||
|  * -------------------------------------------------------------------------- | ||||
|  * Derived by William Ahern from the reference implementation[1] published[2] | ||||
|  * by Jean-Philippe Aumasson and Daniel J. Berstein. | ||||
|  * Minimal changes by Sebastian Pipping and Victor Stinner on top, see below. | ||||
|  * Licensed under the CC0 Public Domain Dedication license. | ||||
|  * | ||||
|  * 1. https://www.131002.net/siphash/siphash24.c | ||||
|  * 2. https://www.131002.net/siphash/ | ||||
|  * -------------------------------------------------------------------------- | ||||
|  * HISTORY: | ||||
|  * | ||||
|  * 2018-07-08  (Anton Maklakov) | ||||
|  *   - Add "fall through" markers for GCC's -Wimplicit-fallthrough | ||||
|  * | ||||
|  * 2017-11-03  (Sebastian Pipping) | ||||
|  *   - Hide sip_tobin and sip_binof unless SIPHASH_TOBIN macro is defined | ||||
|  * | ||||
|  * 2017-07-25  (Vadim Zeitlin) | ||||
|  *   - Fix use of SIPHASH_MAIN macro | ||||
|  * | ||||
|  * 2017-07-05  (Sebastian Pipping) | ||||
|  *   - Use _SIP_ULL macro to not require a C++11 compiler if compiled as C++ | ||||
|  *   - Add const qualifiers at two places | ||||
|  *   - Ensure <=80 characters line length (assuming tab width 4) | ||||
|  * | ||||
|  * 2017-06-23  (Victor Stinner) | ||||
|  *   - Address Win64 compile warnings | ||||
|  * | ||||
|  * 2017-06-18  (Sebastian Pipping) | ||||
|  *   - Clarify license note in the header | ||||
|  *   - Address C89 issues: | ||||
|  *     - Stop using inline keyword (and let compiler decide) | ||||
|  *     - Replace _Bool by int | ||||
|  *     - Turn macro siphash24 into a function | ||||
|  *     - Address invalid conversion (void pointer) by explicit cast | ||||
|  *   - Address lack of stdint.h for Visual Studio 2003 to 2008 | ||||
|  *   - Always expose sip24_valid (for self-tests) | ||||
|  * | ||||
|  * 2012-11-04 - Born.  (William Ahern) | ||||
|  * -------------------------------------------------------------------------- | ||||
|  * USAGE: | ||||
|  * | ||||
|  * SipHash-2-4 takes as input two 64-bit words as the key, some number of | ||||
|  * message bytes, and outputs a 64-bit word as the message digest. This | ||||
|  * implementation employs two data structures: a struct sipkey for | ||||
|  * representing the key, and a struct siphash for representing the hash | ||||
|  * state. | ||||
|  * | ||||
|  * For converting a 16-byte unsigned char array to a key, use either the | ||||
|  * macro sip_keyof or the routine sip_tokey. The former instantiates a | ||||
|  * compound literal key, while the latter requires a key object as a | ||||
|  * parameter. | ||||
|  * | ||||
|  * 	unsigned char secret[16]; | ||||
|  * 	arc4random_buf(secret, sizeof secret); | ||||
|  * 	struct sipkey *key = sip_keyof(secret); | ||||
|  * | ||||
|  * For hashing a message, use either the convenience macro siphash24 or the | ||||
|  * routines sip24_init, sip24_update, and sip24_final. | ||||
|  * | ||||
|  * 	struct siphash state; | ||||
|  * 	void *msg; | ||||
|  * 	size_t len; | ||||
|  * 	uint64_t hash; | ||||
|  * | ||||
|  * 	sip24_init(&state, key); | ||||
|  * 	sip24_update(&state, msg, len); | ||||
|  * 	hash = sip24_final(&state); | ||||
|  * | ||||
|  * or | ||||
|  * | ||||
|  * 	hash = siphash24(msg, len, key); | ||||
|  * | ||||
|  * To convert the 64-bit hash value to a canonical 8-byte little-endian | ||||
|  * binary representation, use either the macro sip_binof or the routine | ||||
|  * sip_tobin. The former instantiates and returns a compound literal array, | ||||
|  * while the latter requires an array object as a parameter. | ||||
|  * -------------------------------------------------------------------------- | ||||
|  * NOTES: | ||||
|  * | ||||
|  * o Neither sip_keyof, sip_binof, nor siphash24 will work with compilers | ||||
|  *   lacking compound literal support. Instead, you must use the lower-level | ||||
|  *   interfaces which take as parameters the temporary state objects. | ||||
|  * | ||||
|  * o Uppercase macros may evaluate parameters more than once. Lowercase | ||||
|  *   macros should not exhibit any such side effects. | ||||
|  * ========================================================================== | ||||
|  */ | ||||
| #ifndef SIPHASH_H | ||||
| #define SIPHASH_H | ||||
|  | ||||
| #include <stddef.h> /* size_t */ | ||||
|  | ||||
| #if defined(_WIN32) && defined(_MSC_VER) && (_MSC_VER < 1600) | ||||
|   /* For vs2003/7.1 up to vs2008/9.0; _MSC_VER 1600 is vs2010/10.0 */ | ||||
|   typedef unsigned __int8   uint8_t; | ||||
|   typedef unsigned __int32 uint32_t; | ||||
|   typedef unsigned __int64 uint64_t; | ||||
| #else | ||||
|  #include <stdint.h> /* uint64_t uint32_t uint8_t */ | ||||
| #endif | ||||
|  | ||||
|  | ||||
| /* | ||||
|  * Workaround to not require a C++11 compiler for using ULL suffix | ||||
|  * if this code is included and compiled as C++; related GCC warning is: | ||||
|  * warning: use of C++11 long long integer constant [-Wlong-long] | ||||
|  */ | ||||
| #define _SIP_ULL(high, low)  (((uint64_t)high << 32) | low) | ||||
|  | ||||
|  | ||||
| #define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ( (x) >> (64 - (b)))) | ||||
|  | ||||
| #define SIP_U32TO8_LE(p, v) \ | ||||
| 	(p)[0] = (uint8_t)((v) >>  0); (p)[1] = (uint8_t)((v) >>  8); \ | ||||
| 	(p)[2] = (uint8_t)((v) >> 16); (p)[3] = (uint8_t)((v) >> 24); | ||||
|  | ||||
| #define SIP_U64TO8_LE(p, v) \ | ||||
| 	SIP_U32TO8_LE((p) + 0, (uint32_t)((v) >>  0)); \ | ||||
| 	SIP_U32TO8_LE((p) + 4, (uint32_t)((v) >> 32)); | ||||
|  | ||||
| #define SIP_U8TO64_LE(p) \ | ||||
| 	(((uint64_t)((p)[0]) <<  0) | \ | ||||
| 	 ((uint64_t)((p)[1]) <<  8) | \ | ||||
| 	 ((uint64_t)((p)[2]) << 16) | \ | ||||
| 	 ((uint64_t)((p)[3]) << 24) | \ | ||||
| 	 ((uint64_t)((p)[4]) << 32) | \ | ||||
| 	 ((uint64_t)((p)[5]) << 40) | \ | ||||
| 	 ((uint64_t)((p)[6]) << 48) | \ | ||||
| 	 ((uint64_t)((p)[7]) << 56)) | ||||
|  | ||||
|  | ||||
| #define SIPHASH_INITIALIZER { 0, 0, 0, 0, { 0 }, 0, 0 } | ||||
|  | ||||
| struct siphash { | ||||
| 	uint64_t v0, v1, v2, v3; | ||||
|  | ||||
| 	unsigned char buf[8], *p; | ||||
| 	uint64_t c; | ||||
| }; /* struct siphash */ | ||||
|  | ||||
|  | ||||
| #define SIP_KEYLEN 16 | ||||
|  | ||||
| struct sipkey { | ||||
| 	uint64_t k[2]; | ||||
| }; /* struct sipkey */ | ||||
|  | ||||
| #define sip_keyof(k) sip_tokey(&(struct sipkey){ { 0 } }, (k)) | ||||
|  | ||||
| static struct sipkey *sip_tokey(struct sipkey *key, const void *src) { | ||||
| 	key->k[0] = SIP_U8TO64_LE((const unsigned char *)src); | ||||
| 	key->k[1] = SIP_U8TO64_LE((const unsigned char *)src + 8); | ||||
| 	return key; | ||||
| } /* sip_tokey() */ | ||||
|  | ||||
|  | ||||
| #ifdef SIPHASH_TOBIN | ||||
|  | ||||
| #define sip_binof(v) sip_tobin((unsigned char[8]){ 0 }, (v)) | ||||
|  | ||||
| static void *sip_tobin(void *dst, uint64_t u64) { | ||||
| 	SIP_U64TO8_LE((unsigned char *)dst, u64); | ||||
| 	return dst; | ||||
| } /* sip_tobin() */ | ||||
|  | ||||
| #endif  /* SIPHASH_TOBIN */ | ||||
|  | ||||
|  | ||||
| static void sip_round(struct siphash *H, const int rounds) { | ||||
| 	int i; | ||||
|  | ||||
| 	for (i = 0; i < rounds; i++) { | ||||
| 		H->v0 += H->v1; | ||||
| 		H->v1 = SIP_ROTL(H->v1, 13); | ||||
| 		H->v1 ^= H->v0; | ||||
| 		H->v0 = SIP_ROTL(H->v0, 32); | ||||
|  | ||||
| 		H->v2 += H->v3; | ||||
| 		H->v3 = SIP_ROTL(H->v3, 16); | ||||
| 		H->v3 ^= H->v2; | ||||
|  | ||||
| 		H->v0 += H->v3; | ||||
| 		H->v3 = SIP_ROTL(H->v3, 21); | ||||
| 		H->v3 ^= H->v0; | ||||
|  | ||||
| 		H->v2 += H->v1; | ||||
| 		H->v1 = SIP_ROTL(H->v1, 17); | ||||
| 		H->v1 ^= H->v2; | ||||
| 		H->v2 = SIP_ROTL(H->v2, 32); | ||||
| 	} | ||||
| } /* sip_round() */ | ||||
|  | ||||
|  | ||||
| static struct siphash *sip24_init(struct siphash *H, | ||||
| 		const struct sipkey *key) { | ||||
| 	H->v0 = _SIP_ULL(0x736f6d65U, 0x70736575U) ^ key->k[0]; | ||||
| 	H->v1 = _SIP_ULL(0x646f7261U, 0x6e646f6dU) ^ key->k[1]; | ||||
| 	H->v2 = _SIP_ULL(0x6c796765U, 0x6e657261U) ^ key->k[0]; | ||||
| 	H->v3 = _SIP_ULL(0x74656462U, 0x79746573U) ^ key->k[1]; | ||||
|  | ||||
| 	H->p = H->buf; | ||||
| 	H->c = 0; | ||||
|  | ||||
| 	return H; | ||||
| } /* sip24_init() */ | ||||
|  | ||||
|  | ||||
| #define sip_endof(a) (&(a)[sizeof (a) / sizeof *(a)]) | ||||
|  | ||||
| static struct siphash *sip24_update(struct siphash *H, const void *src, | ||||
| 		size_t len) { | ||||
| 	const unsigned char *p = (const unsigned char *)src, *pe = p + len; | ||||
| 	uint64_t m; | ||||
|  | ||||
| 	do { | ||||
| 		while (p < pe && H->p < sip_endof(H->buf)) | ||||
| 			*H->p++ = *p++; | ||||
|  | ||||
| 		if (H->p < sip_endof(H->buf)) | ||||
| 			break; | ||||
|  | ||||
| 		m = SIP_U8TO64_LE(H->buf); | ||||
| 		H->v3 ^= m; | ||||
| 		sip_round(H, 2); | ||||
| 		H->v0 ^= m; | ||||
|  | ||||
| 		H->p = H->buf; | ||||
| 		H->c += 8; | ||||
| 	} while (p < pe); | ||||
|  | ||||
| 	return H; | ||||
| } /* sip24_update() */ | ||||
|  | ||||
|  | ||||
| static uint64_t sip24_final(struct siphash *H) { | ||||
| 	const char left = (char)(H->p - H->buf); | ||||
| 	uint64_t b = (H->c + left) << 56; | ||||
|  | ||||
| 	switch (left) { | ||||
| 	case 7: b |= (uint64_t)H->buf[6] << 48; | ||||
| 		/* fall through */ | ||||
| 	case 6: b |= (uint64_t)H->buf[5] << 40; | ||||
| 		/* fall through */ | ||||
| 	case 5: b |= (uint64_t)H->buf[4] << 32; | ||||
| 		/* fall through */ | ||||
| 	case 4: b |= (uint64_t)H->buf[3] << 24; | ||||
| 		/* fall through */ | ||||
| 	case 3: b |= (uint64_t)H->buf[2] << 16; | ||||
| 		/* fall through */ | ||||
| 	case 2: b |= (uint64_t)H->buf[1] << 8; | ||||
| 		/* fall through */ | ||||
| 	case 1: b |= (uint64_t)H->buf[0] << 0; | ||||
| 		/* fall through */ | ||||
| 	case 0: break; | ||||
| 	} | ||||
|  | ||||
| 	H->v3 ^= b; | ||||
| 	sip_round(H, 2); | ||||
| 	H->v0 ^= b; | ||||
| 	H->v2 ^= 0xff; | ||||
| 	sip_round(H, 4); | ||||
|  | ||||
| 	return H->v0 ^ H->v1 ^ H->v2  ^ H->v3; | ||||
| } /* sip24_final() */ | ||||
|  | ||||
|  | ||||
| static uint64_t siphash24(const void *src, size_t len, | ||||
| 		const struct sipkey *key) { | ||||
| 	struct siphash state = SIPHASH_INITIALIZER; | ||||
| 	return sip24_final(sip24_update(sip24_init(&state, key), src, len)); | ||||
| } /* siphash24() */ | ||||
|  | ||||
|  | ||||
| /* | ||||
|  * SipHash-2-4 output with | ||||
|  * k = 00 01 02 ... | ||||
|  * and | ||||
|  * in = (empty string) | ||||
|  * in = 00 (1 byte) | ||||
|  * in = 00 01 (2 bytes) | ||||
|  * in = 00 01 02 (3 bytes) | ||||
|  * ... | ||||
|  * in = 00 01 02 ... 3e (63 bytes) | ||||
|  */ | ||||
| static int sip24_valid(void) { | ||||
| 	static const unsigned char vectors[64][8] = { | ||||
| 		{ 0x31, 0x0e, 0x0e, 0xdd, 0x47, 0xdb, 0x6f, 0x72, }, | ||||
| 		{ 0xfd, 0x67, 0xdc, 0x93, 0xc5, 0x39, 0xf8, 0x74, }, | ||||
| 		{ 0x5a, 0x4f, 0xa9, 0xd9, 0x09, 0x80, 0x6c, 0x0d, }, | ||||
| 		{ 0x2d, 0x7e, 0xfb, 0xd7, 0x96, 0x66, 0x67, 0x85, }, | ||||
| 		{ 0xb7, 0x87, 0x71, 0x27, 0xe0, 0x94, 0x27, 0xcf, }, | ||||
| 		{ 0x8d, 0xa6, 0x99, 0xcd, 0x64, 0x55, 0x76, 0x18, }, | ||||
| 		{ 0xce, 0xe3, 0xfe, 0x58, 0x6e, 0x46, 0xc9, 0xcb, }, | ||||
| 		{ 0x37, 0xd1, 0x01, 0x8b, 0xf5, 0x00, 0x02, 0xab, }, | ||||
| 		{ 0x62, 0x24, 0x93, 0x9a, 0x79, 0xf5, 0xf5, 0x93, }, | ||||
| 		{ 0xb0, 0xe4, 0xa9, 0x0b, 0xdf, 0x82, 0x00, 0x9e, }, | ||||
| 		{ 0xf3, 0xb9, 0xdd, 0x94, 0xc5, 0xbb, 0x5d, 0x7a, }, | ||||
| 		{ 0xa7, 0xad, 0x6b, 0x22, 0x46, 0x2f, 0xb3, 0xf4, }, | ||||
| 		{ 0xfb, 0xe5, 0x0e, 0x86, 0xbc, 0x8f, 0x1e, 0x75, }, | ||||
| 		{ 0x90, 0x3d, 0x84, 0xc0, 0x27, 0x56, 0xea, 0x14, }, | ||||
| 		{ 0xee, 0xf2, 0x7a, 0x8e, 0x90, 0xca, 0x23, 0xf7, }, | ||||
| 		{ 0xe5, 0x45, 0xbe, 0x49, 0x61, 0xca, 0x29, 0xa1, }, | ||||
| 		{ 0xdb, 0x9b, 0xc2, 0x57, 0x7f, 0xcc, 0x2a, 0x3f, }, | ||||
| 		{ 0x94, 0x47, 0xbe, 0x2c, 0xf5, 0xe9, 0x9a, 0x69, }, | ||||
| 		{ 0x9c, 0xd3, 0x8d, 0x96, 0xf0, 0xb3, 0xc1, 0x4b, }, | ||||
| 		{ 0xbd, 0x61, 0x79, 0xa7, 0x1d, 0xc9, 0x6d, 0xbb, }, | ||||
| 		{ 0x98, 0xee, 0xa2, 0x1a, 0xf2, 0x5c, 0xd6, 0xbe, }, | ||||
| 		{ 0xc7, 0x67, 0x3b, 0x2e, 0xb0, 0xcb, 0xf2, 0xd0, }, | ||||
| 		{ 0x88, 0x3e, 0xa3, 0xe3, 0x95, 0x67, 0x53, 0x93, }, | ||||
| 		{ 0xc8, 0xce, 0x5c, 0xcd, 0x8c, 0x03, 0x0c, 0xa8, }, | ||||
| 		{ 0x94, 0xaf, 0x49, 0xf6, 0xc6, 0x50, 0xad, 0xb8, }, | ||||
| 		{ 0xea, 0xb8, 0x85, 0x8a, 0xde, 0x92, 0xe1, 0xbc, }, | ||||
| 		{ 0xf3, 0x15, 0xbb, 0x5b, 0xb8, 0x35, 0xd8, 0x17, }, | ||||
| 		{ 0xad, 0xcf, 0x6b, 0x07, 0x63, 0x61, 0x2e, 0x2f, }, | ||||
| 		{ 0xa5, 0xc9, 0x1d, 0xa7, 0xac, 0xaa, 0x4d, 0xde, }, | ||||
| 		{ 0x71, 0x65, 0x95, 0x87, 0x66, 0x50, 0xa2, 0xa6, }, | ||||
| 		{ 0x28, 0xef, 0x49, 0x5c, 0x53, 0xa3, 0x87, 0xad, }, | ||||
| 		{ 0x42, 0xc3, 0x41, 0xd8, 0xfa, 0x92, 0xd8, 0x32, }, | ||||
| 		{ 0xce, 0x7c, 0xf2, 0x72, 0x2f, 0x51, 0x27, 0x71, }, | ||||
| 		{ 0xe3, 0x78, 0x59, 0xf9, 0x46, 0x23, 0xf3, 0xa7, }, | ||||
| 		{ 0x38, 0x12, 0x05, 0xbb, 0x1a, 0xb0, 0xe0, 0x12, }, | ||||
| 		{ 0xae, 0x97, 0xa1, 0x0f, 0xd4, 0x34, 0xe0, 0x15, }, | ||||
| 		{ 0xb4, 0xa3, 0x15, 0x08, 0xbe, 0xff, 0x4d, 0x31, }, | ||||
| 		{ 0x81, 0x39, 0x62, 0x29, 0xf0, 0x90, 0x79, 0x02, }, | ||||
| 		{ 0x4d, 0x0c, 0xf4, 0x9e, 0xe5, 0xd4, 0xdc, 0xca, }, | ||||
| 		{ 0x5c, 0x73, 0x33, 0x6a, 0x76, 0xd8, 0xbf, 0x9a, }, | ||||
| 		{ 0xd0, 0xa7, 0x04, 0x53, 0x6b, 0xa9, 0x3e, 0x0e, }, | ||||
| 		{ 0x92, 0x59, 0x58, 0xfc, 0xd6, 0x42, 0x0c, 0xad, }, | ||||
| 		{ 0xa9, 0x15, 0xc2, 0x9b, 0xc8, 0x06, 0x73, 0x18, }, | ||||
| 		{ 0x95, 0x2b, 0x79, 0xf3, 0xbc, 0x0a, 0xa6, 0xd4, }, | ||||
| 		{ 0xf2, 0x1d, 0xf2, 0xe4, 0x1d, 0x45, 0x35, 0xf9, }, | ||||
| 		{ 0x87, 0x57, 0x75, 0x19, 0x04, 0x8f, 0x53, 0xa9, }, | ||||
| 		{ 0x10, 0xa5, 0x6c, 0xf5, 0xdf, 0xcd, 0x9a, 0xdb, }, | ||||
| 		{ 0xeb, 0x75, 0x09, 0x5c, 0xcd, 0x98, 0x6c, 0xd0, }, | ||||
| 		{ 0x51, 0xa9, 0xcb, 0x9e, 0xcb, 0xa3, 0x12, 0xe6, }, | ||||
| 		{ 0x96, 0xaf, 0xad, 0xfc, 0x2c, 0xe6, 0x66, 0xc7, }, | ||||
| 		{ 0x72, 0xfe, 0x52, 0x97, 0x5a, 0x43, 0x64, 0xee, }, | ||||
| 		{ 0x5a, 0x16, 0x45, 0xb2, 0x76, 0xd5, 0x92, 0xa1, }, | ||||
| 		{ 0xb2, 0x74, 0xcb, 0x8e, 0xbf, 0x87, 0x87, 0x0a, }, | ||||
| 		{ 0x6f, 0x9b, 0xb4, 0x20, 0x3d, 0xe7, 0xb3, 0x81, }, | ||||
| 		{ 0xea, 0xec, 0xb2, 0xa3, 0x0b, 0x22, 0xa8, 0x7f, }, | ||||
| 		{ 0x99, 0x24, 0xa4, 0x3c, 0xc1, 0x31, 0x57, 0x24, }, | ||||
| 		{ 0xbd, 0x83, 0x8d, 0x3a, 0xaf, 0xbf, 0x8d, 0xb7, }, | ||||
| 		{ 0x0b, 0x1a, 0x2a, 0x32, 0x65, 0xd5, 0x1a, 0xea, }, | ||||
| 		{ 0x13, 0x50, 0x79, 0xa3, 0x23, 0x1c, 0xe6, 0x60, }, | ||||
| 		{ 0x93, 0x2b, 0x28, 0x46, 0xe4, 0xd7, 0x06, 0x66, }, | ||||
| 		{ 0xe1, 0x91, 0x5f, 0x5c, 0xb1, 0xec, 0xa4, 0x6c, }, | ||||
| 		{ 0xf3, 0x25, 0x96, 0x5c, 0xa1, 0x6d, 0x62, 0x9f, }, | ||||
| 		{ 0x57, 0x5f, 0xf2, 0x8e, 0x60, 0x38, 0x1b, 0xe5, }, | ||||
| 		{ 0x72, 0x45, 0x06, 0xeb, 0x4c, 0x32, 0x8a, 0x95, } | ||||
| 	}; | ||||
| 	unsigned char in[64]; | ||||
| 	struct sipkey k; | ||||
| 	size_t i; | ||||
|  | ||||
| 	sip_tokey(&k, "\000\001\002\003\004\005\006\007\010\011" | ||||
| 			"\012\013\014\015\016\017"); | ||||
|  | ||||
| 	for (i = 0; i < sizeof in; ++i) { | ||||
| 		in[i] = (unsigned char)i; | ||||
|  | ||||
| 		if (siphash24(in, i, &k) != SIP_U8TO64_LE(vectors[i])) | ||||
| 			return 0; | ||||
| 	} | ||||
|  | ||||
| 	return 1; | ||||
| } /* sip24_valid() */ | ||||
|  | ||||
|  | ||||
| #ifdef SIPHASH_MAIN | ||||
|  | ||||
| #include <stdio.h> | ||||
|  | ||||
| int main(void) { | ||||
| 	const int ok = sip24_valid(); | ||||
|  | ||||
| 	if (ok) | ||||
| 		puts("OK"); | ||||
| 	else | ||||
| 		puts("FAIL"); | ||||
|  | ||||
| 	return !ok; | ||||
| } /* main() */ | ||||
|  | ||||
| #endif /* SIPHASH_MAIN */ | ||||
|  | ||||
|  | ||||
| #endif /* SIPHASH_H */ | ||||
							
								
								
									
										64
									
								
								library/libexpat/expat/lib/utf8tab.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								library/libexpat/expat/lib/utf8tab.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,64 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| /* 0x80 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x84 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x88 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x8C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x90 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x94 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x98 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0x9C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xA0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xA4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xA8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xAC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xB0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xB4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xB8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xBC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | ||||
| /* 0xC0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xC4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xC8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xCC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xD0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xD4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xD8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xDC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | ||||
| /* 0xE0 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | ||||
| /* 0xE4 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | ||||
| /* 0xE8 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | ||||
| /* 0xEC */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | ||||
| /* 0xF0 */ BT_LEAD4, BT_LEAD4, BT_LEAD4, BT_LEAD4, | ||||
| /* 0xF4 */ BT_LEAD4, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0xF8 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | ||||
| /* 0xFC */ BT_NONXML, BT_NONXML, BT_MALFORM, BT_MALFORM, | ||||
							
								
								
									
										59
									
								
								library/libexpat/expat/lib/winconfig.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								library/libexpat/expat/lib/winconfig.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,59 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #ifndef WINCONFIG_H | ||||
| #define WINCONFIG_H | ||||
|  | ||||
| #define WIN32_LEAN_AND_MEAN | ||||
| #include <windows.h> | ||||
| #undef WIN32_LEAN_AND_MEAN | ||||
|  | ||||
| #include <memory.h> | ||||
| #include <string.h> | ||||
|  | ||||
|  | ||||
| #if defined(HAVE_EXPAT_CONFIG_H)  /* e.g. MinGW */ | ||||
| # include <expat_config.h> | ||||
| #else  /* !defined(HAVE_EXPAT_CONFIG_H) */ | ||||
|  | ||||
|  | ||||
| #define XML_NS 1 | ||||
| #define XML_DTD 1 | ||||
| #define XML_CONTEXT_BYTES 1024 | ||||
|  | ||||
| /* we will assume all Windows platforms are little endian */ | ||||
| #define BYTEORDER 1234 | ||||
|  | ||||
| #endif /* !defined(HAVE_EXPAT_CONFIG_H) */ | ||||
|  | ||||
|  | ||||
| #endif /* ndef WINCONFIG_H */ | ||||
							
								
								
									
										7208
									
								
								library/libexpat/expat/lib/xmlparse.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7208
									
								
								library/libexpat/expat/lib/xmlparse.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										9
									
								
								library/libexpat/expat/lib/xmlparse.dep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								library/libexpat/expat/lib/xmlparse.dep
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| library/libexpat/expat/lib/xmlparse.lo: \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmlparse.c \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/ascii.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/expat.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/expat_external.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/siphash.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/internal.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmlrole.h | ||||
							
								
								
									
										1386
									
								
								library/libexpat/expat/lib/xmlrole.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1386
									
								
								library/libexpat/expat/lib/xmlrole.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										7
									
								
								library/libexpat/expat/lib/xmlrole.dep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								library/libexpat/expat/lib/xmlrole.dep
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| library/libexpat/expat/lib/xmlrole.lo: \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmlrole.c \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/expat_external.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/internal.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmlrole.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/ascii.h | ||||
							
								
								
									
										142
									
								
								library/libexpat/expat/lib/xmlrole.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										142
									
								
								library/libexpat/expat/lib/xmlrole.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,142 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #ifndef XmlRole_INCLUDED | ||||
| #define XmlRole_INCLUDED 1 | ||||
|  | ||||
| #ifdef __VMS | ||||
| /*      0        1         2         3      0        1         2         3 | ||||
|         1234567890123456789012345678901     1234567890123456789012345678901 */ | ||||
| #define XmlPrologStateInitExternalEntity    XmlPrologStateInitExternalEnt | ||||
| #endif | ||||
|  | ||||
| #include "xmltok.h" | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
| enum { | ||||
|   XML_ROLE_ERROR = -1, | ||||
|   XML_ROLE_NONE = 0, | ||||
|   XML_ROLE_XML_DECL, | ||||
|   XML_ROLE_INSTANCE_START, | ||||
|   XML_ROLE_DOCTYPE_NONE, | ||||
|   XML_ROLE_DOCTYPE_NAME, | ||||
|   XML_ROLE_DOCTYPE_SYSTEM_ID, | ||||
|   XML_ROLE_DOCTYPE_PUBLIC_ID, | ||||
|   XML_ROLE_DOCTYPE_INTERNAL_SUBSET, | ||||
|   XML_ROLE_DOCTYPE_CLOSE, | ||||
|   XML_ROLE_GENERAL_ENTITY_NAME, | ||||
|   XML_ROLE_PARAM_ENTITY_NAME, | ||||
|   XML_ROLE_ENTITY_NONE, | ||||
|   XML_ROLE_ENTITY_VALUE, | ||||
|   XML_ROLE_ENTITY_SYSTEM_ID, | ||||
|   XML_ROLE_ENTITY_PUBLIC_ID, | ||||
|   XML_ROLE_ENTITY_COMPLETE, | ||||
|   XML_ROLE_ENTITY_NOTATION_NAME, | ||||
|   XML_ROLE_NOTATION_NONE, | ||||
|   XML_ROLE_NOTATION_NAME, | ||||
|   XML_ROLE_NOTATION_SYSTEM_ID, | ||||
|   XML_ROLE_NOTATION_NO_SYSTEM_ID, | ||||
|   XML_ROLE_NOTATION_PUBLIC_ID, | ||||
|   XML_ROLE_ATTRIBUTE_NAME, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_CDATA, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_ID, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_IDREF, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_IDREFS, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_ENTITY, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_ENTITIES, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN, | ||||
|   XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS, | ||||
|   XML_ROLE_ATTRIBUTE_ENUM_VALUE, | ||||
|   XML_ROLE_ATTRIBUTE_NOTATION_VALUE, | ||||
|   XML_ROLE_ATTLIST_NONE, | ||||
|   XML_ROLE_ATTLIST_ELEMENT_NAME, | ||||
|   XML_ROLE_IMPLIED_ATTRIBUTE_VALUE, | ||||
|   XML_ROLE_REQUIRED_ATTRIBUTE_VALUE, | ||||
|   XML_ROLE_DEFAULT_ATTRIBUTE_VALUE, | ||||
|   XML_ROLE_FIXED_ATTRIBUTE_VALUE, | ||||
|   XML_ROLE_ELEMENT_NONE, | ||||
|   XML_ROLE_ELEMENT_NAME, | ||||
|   XML_ROLE_CONTENT_ANY, | ||||
|   XML_ROLE_CONTENT_EMPTY, | ||||
|   XML_ROLE_CONTENT_PCDATA, | ||||
|   XML_ROLE_GROUP_OPEN, | ||||
|   XML_ROLE_GROUP_CLOSE, | ||||
|   XML_ROLE_GROUP_CLOSE_REP, | ||||
|   XML_ROLE_GROUP_CLOSE_OPT, | ||||
|   XML_ROLE_GROUP_CLOSE_PLUS, | ||||
|   XML_ROLE_GROUP_CHOICE, | ||||
|   XML_ROLE_GROUP_SEQUENCE, | ||||
|   XML_ROLE_CONTENT_ELEMENT, | ||||
|   XML_ROLE_CONTENT_ELEMENT_REP, | ||||
|   XML_ROLE_CONTENT_ELEMENT_OPT, | ||||
|   XML_ROLE_CONTENT_ELEMENT_PLUS, | ||||
|   XML_ROLE_PI, | ||||
|   XML_ROLE_COMMENT, | ||||
| #ifdef XML_DTD | ||||
|   XML_ROLE_TEXT_DECL, | ||||
|   XML_ROLE_IGNORE_SECT, | ||||
|   XML_ROLE_INNER_PARAM_ENTITY_REF, | ||||
| #endif /* XML_DTD */ | ||||
|   XML_ROLE_PARAM_ENTITY_REF | ||||
| }; | ||||
|  | ||||
| typedef struct prolog_state { | ||||
|   int (PTRCALL *handler) (struct prolog_state *state, | ||||
|                           int tok, | ||||
|                           const char *ptr, | ||||
|                           const char *end, | ||||
|                           const ENCODING *enc); | ||||
|   unsigned level; | ||||
|   int role_none; | ||||
| #ifdef XML_DTD | ||||
|   unsigned includeLevel; | ||||
|   int documentEntity; | ||||
|   int inEntityValue; | ||||
| #endif /* XML_DTD */ | ||||
| } PROLOG_STATE; | ||||
|  | ||||
| void XmlPrologStateInit(PROLOG_STATE *); | ||||
| #ifdef XML_DTD | ||||
| void XmlPrologStateInitExternalEntity(PROLOG_STATE *); | ||||
| #endif /* XML_DTD */ | ||||
|  | ||||
| #define XmlTokenRole(state, tok, ptr, end, enc) \ | ||||
|  (((state)->handler)(state, tok, ptr, end, enc)) | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif | ||||
|  | ||||
| #endif /* not XmlRole_INCLUDED */ | ||||
							
								
								
									
										1806
									
								
								library/libexpat/expat/lib/xmltok.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1806
									
								
								library/libexpat/expat/lib/xmltok.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										14
									
								
								library/libexpat/expat/lib/xmltok.dep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								library/libexpat/expat/lib/xmltok.dep
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| library/libexpat/expat/lib/xmltok.lo: \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok.c \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/expat_external.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/internal.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/nametab.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok_impl.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/ascii.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok_impl.c \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/asciitab.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/utf8tab.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/iasciitab.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/latin1tab.h \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok_ns.c | ||||
							
								
								
									
										345
									
								
								library/libexpat/expat/lib/xmltok.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										345
									
								
								library/libexpat/expat/lib/xmltok.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,345 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #ifndef XmlTok_INCLUDED | ||||
| #define XmlTok_INCLUDED 1 | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
| /* The following token may be returned by XmlContentTok */ | ||||
| #define XML_TOK_TRAILING_RSQB -5 /* ] or ]] at the end of the scan; might be | ||||
|                                     start of illegal ]]> sequence */ | ||||
| /* The following tokens may be returned by both XmlPrologTok and | ||||
|    XmlContentTok. | ||||
| */ | ||||
| #define XML_TOK_NONE -4          /* The string to be scanned is empty */ | ||||
| #define XML_TOK_TRAILING_CR -3   /* A CR at the end of the scan; | ||||
|                                     might be part of CRLF sequence */ | ||||
| #define XML_TOK_PARTIAL_CHAR -2  /* only part of a multibyte sequence */ | ||||
| #define XML_TOK_PARTIAL -1       /* only part of a token */ | ||||
| #define XML_TOK_INVALID 0 | ||||
|  | ||||
| /* The following tokens are returned by XmlContentTok; some are also | ||||
|    returned by XmlAttributeValueTok, XmlEntityTok, XmlCdataSectionTok. | ||||
| */ | ||||
| #define XML_TOK_START_TAG_WITH_ATTS 1 | ||||
| #define XML_TOK_START_TAG_NO_ATTS 2 | ||||
| #define XML_TOK_EMPTY_ELEMENT_WITH_ATTS 3 /* empty element tag <e/> */ | ||||
| #define XML_TOK_EMPTY_ELEMENT_NO_ATTS 4 | ||||
| #define XML_TOK_END_TAG 5 | ||||
| #define XML_TOK_DATA_CHARS 6 | ||||
| #define XML_TOK_DATA_NEWLINE 7 | ||||
| #define XML_TOK_CDATA_SECT_OPEN 8 | ||||
| #define XML_TOK_ENTITY_REF 9 | ||||
| #define XML_TOK_CHAR_REF 10               /* numeric character reference */ | ||||
|  | ||||
| /* The following tokens may be returned by both XmlPrologTok and | ||||
|    XmlContentTok. | ||||
| */ | ||||
| #define XML_TOK_PI 11                     /* processing instruction */ | ||||
| #define XML_TOK_XML_DECL 12               /* XML decl or text decl */ | ||||
| #define XML_TOK_COMMENT 13 | ||||
| #define XML_TOK_BOM 14                    /* Byte order mark */ | ||||
|  | ||||
| /* The following tokens are returned only by XmlPrologTok */ | ||||
| #define XML_TOK_PROLOG_S 15 | ||||
| #define XML_TOK_DECL_OPEN 16              /* <!foo */ | ||||
| #define XML_TOK_DECL_CLOSE 17             /* > */ | ||||
| #define XML_TOK_NAME 18 | ||||
| #define XML_TOK_NMTOKEN 19 | ||||
| #define XML_TOK_POUND_NAME 20             /* #name */ | ||||
| #define XML_TOK_OR 21                     /* | */ | ||||
| #define XML_TOK_PERCENT 22 | ||||
| #define XML_TOK_OPEN_PAREN 23 | ||||
| #define XML_TOK_CLOSE_PAREN 24 | ||||
| #define XML_TOK_OPEN_BRACKET 25 | ||||
| #define XML_TOK_CLOSE_BRACKET 26 | ||||
| #define XML_TOK_LITERAL 27 | ||||
| #define XML_TOK_PARAM_ENTITY_REF 28 | ||||
| #define XML_TOK_INSTANCE_START 29 | ||||
|  | ||||
| /* The following occur only in element type declarations */ | ||||
| #define XML_TOK_NAME_QUESTION 30          /* name? */ | ||||
| #define XML_TOK_NAME_ASTERISK 31          /* name* */ | ||||
| #define XML_TOK_NAME_PLUS 32              /* name+ */ | ||||
| #define XML_TOK_COND_SECT_OPEN 33         /* <![ */ | ||||
| #define XML_TOK_COND_SECT_CLOSE 34        /* ]]> */ | ||||
| #define XML_TOK_CLOSE_PAREN_QUESTION 35   /* )? */ | ||||
| #define XML_TOK_CLOSE_PAREN_ASTERISK 36   /* )* */ | ||||
| #define XML_TOK_CLOSE_PAREN_PLUS 37       /* )+ */ | ||||
| #define XML_TOK_COMMA 38 | ||||
|  | ||||
| /* The following token is returned only by XmlAttributeValueTok */ | ||||
| #define XML_TOK_ATTRIBUTE_VALUE_S 39 | ||||
|  | ||||
| /* The following token is returned only by XmlCdataSectionTok */ | ||||
| #define XML_TOK_CDATA_SECT_CLOSE 40 | ||||
|  | ||||
| /* With namespace processing this is returned by XmlPrologTok for a | ||||
|    name with a colon. | ||||
| */ | ||||
| #define XML_TOK_PREFIXED_NAME 41 | ||||
|  | ||||
| #ifdef XML_DTD | ||||
| #define XML_TOK_IGNORE_SECT 42 | ||||
| #endif /* XML_DTD */ | ||||
|  | ||||
| #ifdef XML_DTD | ||||
| #define XML_N_STATES 4 | ||||
| #else /* not XML_DTD */ | ||||
| #define XML_N_STATES 3 | ||||
| #endif /* not XML_DTD */ | ||||
|  | ||||
| #define XML_PROLOG_STATE 0 | ||||
| #define XML_CONTENT_STATE 1 | ||||
| #define XML_CDATA_SECTION_STATE 2 | ||||
| #ifdef XML_DTD | ||||
| #define XML_IGNORE_SECTION_STATE 3 | ||||
| #endif /* XML_DTD */ | ||||
|  | ||||
| #define XML_N_LITERAL_TYPES 2 | ||||
| #define XML_ATTRIBUTE_VALUE_LITERAL 0 | ||||
| #define XML_ENTITY_VALUE_LITERAL 1 | ||||
|  | ||||
| /* The size of the buffer passed to XmlUtf8Encode must be at least this. */ | ||||
| #define XML_UTF8_ENCODE_MAX 4 | ||||
| /* The size of the buffer passed to XmlUtf16Encode must be at least this. */ | ||||
| #define XML_UTF16_ENCODE_MAX 2 | ||||
|  | ||||
| typedef struct position { | ||||
|   /* first line and first column are 0 not 1 */ | ||||
|   XML_Size lineNumber; | ||||
|   XML_Size columnNumber; | ||||
| } POSITION; | ||||
|  | ||||
| typedef struct { | ||||
|   const char *name; | ||||
|   const char *valuePtr; | ||||
|   const char *valueEnd; | ||||
|   char normalized; | ||||
| } ATTRIBUTE; | ||||
|  | ||||
| struct encoding; | ||||
| typedef struct encoding ENCODING; | ||||
|  | ||||
| typedef int (PTRCALL *SCANNER)(const ENCODING *, | ||||
|                                const char *, | ||||
|                                const char *, | ||||
|                                const char **); | ||||
|  | ||||
| enum XML_Convert_Result { | ||||
|   XML_CONVERT_COMPLETED = 0, | ||||
|   XML_CONVERT_INPUT_INCOMPLETE = 1, | ||||
|   XML_CONVERT_OUTPUT_EXHAUSTED = 2  /* and therefore potentially input remaining as well */ | ||||
| }; | ||||
|  | ||||
| struct encoding { | ||||
|   SCANNER scanners[XML_N_STATES]; | ||||
|   SCANNER literalScanners[XML_N_LITERAL_TYPES]; | ||||
|   int (PTRCALL *nameMatchesAscii)(const ENCODING *, | ||||
|                                   const char *, | ||||
|                                   const char *, | ||||
|                                   const char *); | ||||
|   int (PTRFASTCALL *nameLength)(const ENCODING *, const char *); | ||||
|   const char *(PTRFASTCALL *skipS)(const ENCODING *, const char *); | ||||
|   int (PTRCALL *getAtts)(const ENCODING *enc, | ||||
|                          const char *ptr, | ||||
|                          int attsMax, | ||||
|                          ATTRIBUTE *atts); | ||||
|   int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr); | ||||
|   int (PTRCALL *predefinedEntityName)(const ENCODING *, | ||||
|                                       const char *, | ||||
|                                       const char *); | ||||
|   void (PTRCALL *updatePosition)(const ENCODING *, | ||||
|                                  const char *ptr, | ||||
|                                  const char *end, | ||||
|                                  POSITION *); | ||||
|   int (PTRCALL *isPublicId)(const ENCODING *enc, | ||||
|                             const char *ptr, | ||||
|                             const char *end, | ||||
|                             const char **badPtr); | ||||
|   enum XML_Convert_Result (PTRCALL *utf8Convert)(const ENCODING *enc, | ||||
|                               const char **fromP, | ||||
|                               const char *fromLim, | ||||
|                               char **toP, | ||||
|                               const char *toLim); | ||||
|   enum XML_Convert_Result (PTRCALL *utf16Convert)(const ENCODING *enc, | ||||
|                                const char **fromP, | ||||
|                                const char *fromLim, | ||||
|                                unsigned short **toP, | ||||
|                                const unsigned short *toLim); | ||||
|   int minBytesPerChar; | ||||
|   char isUtf8; | ||||
|   char isUtf16; | ||||
| }; | ||||
|  | ||||
| /* Scan the string starting at ptr until the end of the next complete | ||||
|    token, but do not scan past eptr.  Return an integer giving the | ||||
|    type of token. | ||||
|  | ||||
|    Return XML_TOK_NONE when ptr == eptr; nextTokPtr will not be set. | ||||
|  | ||||
|    Return XML_TOK_PARTIAL when the string does not contain a complete | ||||
|    token; nextTokPtr will not be set. | ||||
|  | ||||
|    Return XML_TOK_INVALID when the string does not start a valid | ||||
|    token; nextTokPtr will be set to point to the character which made | ||||
|    the token invalid. | ||||
|  | ||||
|    Otherwise the string starts with a valid token; nextTokPtr will be | ||||
|    set to point to the character following the end of that token. | ||||
|  | ||||
|    Each data character counts as a single token, but adjacent data | ||||
|    characters may be returned together.  Similarly for characters in | ||||
|    the prolog outside literals, comments and processing instructions. | ||||
| */ | ||||
|  | ||||
|  | ||||
| #define XmlTok(enc, state, ptr, end, nextTokPtr) \ | ||||
|   (((enc)->scanners[state])(enc, ptr, end, nextTokPtr)) | ||||
|  | ||||
| #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ | ||||
|    XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr) | ||||
|  | ||||
| #define XmlContentTok(enc, ptr, end, nextTokPtr) \ | ||||
|    XmlTok(enc, XML_CONTENT_STATE, ptr, end, nextTokPtr) | ||||
|  | ||||
| #define XmlCdataSectionTok(enc, ptr, end, nextTokPtr) \ | ||||
|    XmlTok(enc, XML_CDATA_SECTION_STATE, ptr, end, nextTokPtr) | ||||
|  | ||||
| #ifdef XML_DTD | ||||
|  | ||||
| #define XmlIgnoreSectionTok(enc, ptr, end, nextTokPtr) \ | ||||
|    XmlTok(enc, XML_IGNORE_SECTION_STATE, ptr, end, nextTokPtr) | ||||
|  | ||||
| #endif /* XML_DTD */ | ||||
|  | ||||
| /* This is used for performing a 2nd-level tokenization on the content | ||||
|    of a literal that has already been returned by XmlTok. | ||||
| */ | ||||
| #define XmlLiteralTok(enc, literalType, ptr, end, nextTokPtr) \ | ||||
|   (((enc)->literalScanners[literalType])(enc, ptr, end, nextTokPtr)) | ||||
|  | ||||
| #define XmlAttributeValueTok(enc, ptr, end, nextTokPtr) \ | ||||
|    XmlLiteralTok(enc, XML_ATTRIBUTE_VALUE_LITERAL, ptr, end, nextTokPtr) | ||||
|  | ||||
| #define XmlEntityValueTok(enc, ptr, end, nextTokPtr) \ | ||||
|    XmlLiteralTok(enc, XML_ENTITY_VALUE_LITERAL, ptr, end, nextTokPtr) | ||||
|  | ||||
| #define XmlNameMatchesAscii(enc, ptr1, end1, ptr2) \ | ||||
|   (((enc)->nameMatchesAscii)(enc, ptr1, end1, ptr2)) | ||||
|  | ||||
| #define XmlNameLength(enc, ptr) \ | ||||
|   (((enc)->nameLength)(enc, ptr)) | ||||
|  | ||||
| #define XmlSkipS(enc, ptr) \ | ||||
|   (((enc)->skipS)(enc, ptr)) | ||||
|  | ||||
| #define XmlGetAttributes(enc, ptr, attsMax, atts) \ | ||||
|   (((enc)->getAtts)(enc, ptr, attsMax, atts)) | ||||
|  | ||||
| #define XmlCharRefNumber(enc, ptr) \ | ||||
|   (((enc)->charRefNumber)(enc, ptr)) | ||||
|  | ||||
| #define XmlPredefinedEntityName(enc, ptr, end) \ | ||||
|   (((enc)->predefinedEntityName)(enc, ptr, end)) | ||||
|  | ||||
| #define XmlUpdatePosition(enc, ptr, end, pos) \ | ||||
|   (((enc)->updatePosition)(enc, ptr, end, pos)) | ||||
|  | ||||
| #define XmlIsPublicId(enc, ptr, end, badPtr) \ | ||||
|   (((enc)->isPublicId)(enc, ptr, end, badPtr)) | ||||
|  | ||||
| #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ | ||||
|   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ||||
|  | ||||
| #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ | ||||
|   (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim)) | ||||
|  | ||||
| typedef struct { | ||||
|   ENCODING initEnc; | ||||
|   const ENCODING **encPtr; | ||||
| } INIT_ENCODING; | ||||
|  | ||||
| int XmlParseXmlDecl(int isGeneralTextEntity, | ||||
|                     const ENCODING *enc, | ||||
|                     const char *ptr, | ||||
|                     const char *end, | ||||
|                     const char **badPtr, | ||||
|                     const char **versionPtr, | ||||
|                     const char **versionEndPtr, | ||||
|                     const char **encodingNamePtr, | ||||
|                     const ENCODING **namedEncodingPtr, | ||||
|                     int *standalonePtr); | ||||
|  | ||||
| int XmlInitEncoding(INIT_ENCODING *, const ENCODING **, const char *name); | ||||
| const ENCODING *XmlGetUtf8InternalEncoding(void); | ||||
| const ENCODING *XmlGetUtf16InternalEncoding(void); | ||||
| int FASTCALL XmlUtf8Encode(int charNumber, char *buf); | ||||
| int FASTCALL XmlUtf16Encode(int charNumber, unsigned short *buf); | ||||
| int XmlSizeOfUnknownEncoding(void); | ||||
|  | ||||
|  | ||||
| typedef int (XMLCALL *CONVERTER) (void *userData, const char *p); | ||||
|  | ||||
| ENCODING * | ||||
| XmlInitUnknownEncoding(void *mem, | ||||
|                        int *table, | ||||
|                        CONVERTER convert, | ||||
|                        void *userData); | ||||
|  | ||||
| int XmlParseXmlDeclNS(int isGeneralTextEntity, | ||||
|                       const ENCODING *enc, | ||||
|                       const char *ptr, | ||||
|                       const char *end, | ||||
|                       const char **badPtr, | ||||
|                       const char **versionPtr, | ||||
|                       const char **versionEndPtr, | ||||
|                       const char **encodingNamePtr, | ||||
|                       const ENCODING **namedEncodingPtr, | ||||
|                       int *standalonePtr); | ||||
|  | ||||
| int XmlInitEncodingNS(INIT_ENCODING *, const ENCODING **, const char *name); | ||||
| const ENCODING *XmlGetUtf8InternalEncodingNS(void); | ||||
| const ENCODING *XmlGetUtf16InternalEncodingNS(void); | ||||
| ENCODING * | ||||
| XmlInitUnknownEncodingNS(void *mem, | ||||
|                          int *table, | ||||
|                          CONVERTER convert, | ||||
|                          void *userData); | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif | ||||
|  | ||||
| #endif /* not XmlTok_INCLUDED */ | ||||
							
								
								
									
										1763
									
								
								library/libexpat/expat/lib/xmltok_impl.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1763
									
								
								library/libexpat/expat/lib/xmltok_impl.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										2
									
								
								library/libexpat/expat/lib/xmltok_impl.dep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								library/libexpat/expat/lib/xmltok_impl.dep
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| library/libexpat/expat/lib/xmltok_impl.lo: \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok_impl.c | ||||
							
								
								
									
										73
									
								
								library/libexpat/expat/lib/xmltok_impl.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										73
									
								
								library/libexpat/expat/lib/xmltok_impl.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,73 @@ | ||||
| /* | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| enum { | ||||
|   BT_NONXML, | ||||
|   BT_MALFORM, | ||||
|   BT_LT, | ||||
|   BT_AMP, | ||||
|   BT_RSQB, | ||||
|   BT_LEAD2, | ||||
|   BT_LEAD3, | ||||
|   BT_LEAD4, | ||||
|   BT_TRAIL, | ||||
|   BT_CR, | ||||
|   BT_LF, | ||||
|   BT_GT, | ||||
|   BT_QUOT, | ||||
|   BT_APOS, | ||||
|   BT_EQUALS, | ||||
|   BT_QUEST, | ||||
|   BT_EXCL, | ||||
|   BT_SOL, | ||||
|   BT_SEMI, | ||||
|   BT_NUM, | ||||
|   BT_LSQB, | ||||
|   BT_S, | ||||
|   BT_NMSTRT, | ||||
|   BT_COLON, | ||||
|   BT_HEX, | ||||
|   BT_DIGIT, | ||||
|   BT_NAME, | ||||
|   BT_MINUS, | ||||
|   BT_OTHER, /* known not to be a name or name start character */ | ||||
|   BT_NONASCII, /* might be a name or name start character */ | ||||
|   BT_PERCNT, | ||||
|   BT_LPAR, | ||||
|   BT_RPAR, | ||||
|   BT_AST, | ||||
|   BT_PLUS, | ||||
|   BT_COMMA, | ||||
|   BT_VERBAR | ||||
| }; | ||||
|  | ||||
| #include <stddef.h> | ||||
							
								
								
									
										142
									
								
								library/libexpat/expat/lib/xmltok_ns.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										142
									
								
								library/libexpat/expat/lib/xmltok_ns.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,142 @@ | ||||
| /* This file is included! | ||||
|                             __  __            _ | ||||
|                          ___\ \/ /_ __   __ _| |_ | ||||
|                         / _ \\  /| '_ \ / _` | __| | ||||
|                        |  __//  \| |_) | (_| | |_ | ||||
|                         \___/_/\_\ .__/ \__,_|\__| | ||||
|                                  |_| XML parser | ||||
|  | ||||
|    Copyright (c) 1997-2000 Thai Open Source Software Center Ltd | ||||
|    Copyright (c) 2000-2017 Expat development team | ||||
|    Licensed under the MIT license: | ||||
|  | ||||
|    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. | ||||
| */ | ||||
|  | ||||
| #ifdef XML_TOK_NS_C | ||||
|  | ||||
| const ENCODING * | ||||
| NS(XmlGetUtf8InternalEncoding)(void) | ||||
| { | ||||
|   return &ns(internal_utf8_encoding).enc; | ||||
| } | ||||
|  | ||||
| const ENCODING * | ||||
| NS(XmlGetUtf16InternalEncoding)(void) | ||||
| { | ||||
| #if BYTEORDER == 1234 | ||||
|   return &ns(internal_little2_encoding).enc; | ||||
| #elif BYTEORDER == 4321 | ||||
|   return &ns(internal_big2_encoding).enc; | ||||
| #else | ||||
|   const short n = 1; | ||||
|   return (*(const char *)&n | ||||
|           ? &ns(internal_little2_encoding).enc | ||||
|           : &ns(internal_big2_encoding).enc); | ||||
| #endif | ||||
| } | ||||
|  | ||||
| static const ENCODING * const NS(encodings)[] = { | ||||
|   &ns(latin1_encoding).enc, | ||||
|   &ns(ascii_encoding).enc, | ||||
|   &ns(utf8_encoding).enc, | ||||
|   &ns(big2_encoding).enc, | ||||
|   &ns(big2_encoding).enc, | ||||
|   &ns(little2_encoding).enc, | ||||
|   &ns(utf8_encoding).enc /* NO_ENC */ | ||||
| }; | ||||
|  | ||||
| static int PTRCALL | ||||
| NS(initScanProlog)(const ENCODING *enc, const char *ptr, const char *end, | ||||
|                    const char **nextTokPtr) | ||||
| { | ||||
|   return initScan(NS(encodings), (const INIT_ENCODING *)enc, | ||||
|                   XML_PROLOG_STATE, ptr, end, nextTokPtr); | ||||
| } | ||||
|  | ||||
| static int PTRCALL | ||||
| NS(initScanContent)(const ENCODING *enc, const char *ptr, const char *end, | ||||
|                     const char **nextTokPtr) | ||||
| { | ||||
|   return initScan(NS(encodings), (const INIT_ENCODING *)enc, | ||||
|                   XML_CONTENT_STATE, ptr, end, nextTokPtr); | ||||
| } | ||||
|  | ||||
| int | ||||
| NS(XmlInitEncoding)(INIT_ENCODING *p, const ENCODING **encPtr, | ||||
|                     const char *name) | ||||
| { | ||||
|   int i = getEncodingIndex(name); | ||||
|   if (i == UNKNOWN_ENC) | ||||
|     return 0; | ||||
|   SET_INIT_ENC_INDEX(p, i); | ||||
|   p->initEnc.scanners[XML_PROLOG_STATE] = NS(initScanProlog); | ||||
|   p->initEnc.scanners[XML_CONTENT_STATE] = NS(initScanContent); | ||||
|   p->initEnc.updatePosition = initUpdatePosition; | ||||
|   p->encPtr = encPtr; | ||||
|   *encPtr = &(p->initEnc); | ||||
|   return 1; | ||||
| } | ||||
|  | ||||
| static const ENCODING * | ||||
| NS(findEncoding)(const ENCODING *enc, const char *ptr, const char *end) | ||||
| { | ||||
| #define ENCODING_MAX 128 | ||||
|   char buf[ENCODING_MAX]; | ||||
|   char *p = buf; | ||||
|   int i; | ||||
|   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ||||
|   if (ptr != end) | ||||
|     return 0; | ||||
|   *p = 0; | ||||
|   if (streqci(buf, KW_UTF_16) && enc->minBytesPerChar == 2) | ||||
|     return enc; | ||||
|   i = getEncodingIndex(buf); | ||||
|   if (i == UNKNOWN_ENC) | ||||
|     return 0; | ||||
|   return NS(encodings)[i]; | ||||
| } | ||||
|  | ||||
| int | ||||
| NS(XmlParseXmlDecl)(int isGeneralTextEntity, | ||||
|                     const ENCODING *enc, | ||||
|                     const char *ptr, | ||||
|                     const char *end, | ||||
|                     const char **badPtr, | ||||
|                     const char **versionPtr, | ||||
|                     const char **versionEndPtr, | ||||
|                     const char **encodingName, | ||||
|                     const ENCODING **encoding, | ||||
|                     int *standalone) | ||||
| { | ||||
|   return doParseXmlDecl(NS(findEncoding), | ||||
|                         isGeneralTextEntity, | ||||
|                         enc, | ||||
|                         ptr, | ||||
|                         end, | ||||
|                         badPtr, | ||||
|                         versionPtr, | ||||
|                         versionEndPtr, | ||||
|                         encodingName, | ||||
|                         encoding, | ||||
|                         standalone); | ||||
| } | ||||
|  | ||||
| #endif /* XML_TOK_NS_C */ | ||||
							
								
								
									
										2
									
								
								library/libexpat/expat/lib/xmltok_ns.dep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								library/libexpat/expat/lib/xmltok_ns.dep
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| library/libexpat/expat/lib/xmltok_ns.lo: \ | ||||
|   /Users/ykxiao/nginx/www/phpext/php-ext-xlswriter/library/libexpat/expat/lib/xmltok_ns.c | ||||
							
								
								
									
										6
									
								
								library/libexpat/expat/memory-sanitizer-blacklist.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								library/libexpat/expat/memory-sanitizer-blacklist.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # Line "hash_secret_salt = generate_hash_secret_salt(parser);" | ||||
| # is mis-reported as use-of-uninitialized-value because | ||||
| # its call to writeRandomBytes_getrandom uses syscall | ||||
| # SYS_getrandom and MemorySanitizer does not seem to understand that | ||||
| # as writing bytes to that memory (which it does). | ||||
| fun:startParsing | ||||
							
								
								
									
										141
									
								
								library/libexpat/expat/qa.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										141
									
								
								library/libexpat/expat/qa.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,141 @@ | ||||
| #! /usr/bin/env bash | ||||
| # Copyright (C) 2016 Sebastian Pipping <sebastian@pipping.org> | ||||
| # Licensed under MIT license | ||||
|  | ||||
| set -o nounset | ||||
|  | ||||
| : ${GCC_CC:=gcc} | ||||
| : ${GCC_CXX:=g++} | ||||
| : ${CLANG_CC:=clang} | ||||
| : ${CLANG_CXX:=clang++} | ||||
|  | ||||
| : ${AR:=ar} | ||||
| : ${CC:="${CLANG_CC}"} | ||||
| : ${CXX:="${CLANG_CXX}"} | ||||
| : ${LD:=ld} | ||||
| : ${MAKE:=make} | ||||
|  | ||||
| : ${BASE_COMPILE_FLAGS:="-pipe -Wall -Wextra -pedantic -Wno-overlength-strings -Wno-long-long"} | ||||
| : ${BASE_LINK_FLAGS:=} | ||||
|  | ||||
| ANNOUNCE() { | ||||
|     local open='\e[1m' | ||||
|     local close='\e[0m' | ||||
|  | ||||
|     echo -e -n "${open}" | ||||
|     echo -n "# $*" | ||||
|     echo -e "${close}" | ||||
| } | ||||
|  | ||||
| RUN() { | ||||
|     ANNOUNCE "$@" | ||||
|     env "$@" | ||||
| } | ||||
|  | ||||
| main() { | ||||
|     local mode="${1:-}" | ||||
|     shift | ||||
|  | ||||
|     local RUNENV | ||||
|     local BASE_COMPILE_FLAGS="${BASE_COMPILE_FLAGS}" | ||||
|  | ||||
|     case "${mode}" in | ||||
|     address) | ||||
|         # http://clang.llvm.org/docs/AddressSanitizer.html | ||||
|         local CC="${CLANG_CC}" | ||||
|         local CXX="${CLANG_CXX}" | ||||
|         local LD="${CLANG_CXX}" | ||||
|         BASE_COMPILE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer" | ||||
|         BASE_LINK_FLAGS+=" -g -Wc,-fsanitize=address"  # "-Wc," is for libtool | ||||
|         ;; | ||||
|     coverage | lib-coverage | app-coverage) | ||||
|         local CC="${GCC_CC}" | ||||
|         local CXX="${GCC_CXX}" | ||||
|         BASE_COMPILE_FLAGS+=" --coverage --no-inline" | ||||
|         ;; | ||||
|     egypt) | ||||
|         BASE_COMPILE_FLAGS+=" -fdump-rtl-expand" | ||||
|         ;; | ||||
|     memory) | ||||
|         # http://clang.llvm.org/docs/MemorySanitizer.html | ||||
|         BASE_COMPILE_FLAGS+=" -fsanitize=memory -fno-omit-frame-pointer -g -O2 -fsanitize-memory-track-origins -fsanitize-blacklist=$PWD/memory-sanitizer-blacklist.txt" | ||||
|         ;; | ||||
|     ncc) | ||||
|         # http://students.ceid.upatras.gr/~sxanth/ncc/ | ||||
|         local CC="ncc -ncgcc -ncld -ncfabs" | ||||
|         local AR=nccar | ||||
|         local LD=nccld | ||||
|         BASE_COMPILE_FLAGS+=" -fPIC" | ||||
|         ;; | ||||
|     undefined) | ||||
|         # http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html | ||||
|         BASE_COMPILE_FLAGS+=" -fsanitize=undefined" | ||||
|         export UBSAN_OPTIONS=print_stacktrace=1 | ||||
|         ;; | ||||
|     *) | ||||
|         echo "Usage:" 1>&2 | ||||
|         echo "  ${0##*/} (address|coverage|lib-coverage|app-coverage|egypt|memory|ncc|undefined)" 1>&2 | ||||
|         exit 1 | ||||
|         ;; | ||||
|     esac | ||||
|  | ||||
|     local CFLAGS="-std=c89 ${BASE_COMPILE_FLAGS} ${CFLAGS:-}" | ||||
|     local CXXFLAGS="-std=c++98 ${BASE_COMPILE_FLAGS} ${CXXFLAGS:-}" | ||||
|     local LDFLAGS="${BASE_LINK_FLAGS} ${LDFLAGS:-}" | ||||
|  | ||||
|     ( | ||||
|         set -e | ||||
|  | ||||
|         RUN CC="${CC}" CFLAGS="${CFLAGS}" \ | ||||
|                 CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ | ||||
|                 AR="${AR}" \ | ||||
|                 LD="${LD}" LDFLAGS="${LDFLAGS}" \ | ||||
|                 ./configure "$@" \ | ||||
|             || { RUN cat config.log ; false ; } | ||||
|  | ||||
|         RUN "${MAKE}" \ | ||||
|                 CFLAGS="${CFLAGS} -Werror" \ | ||||
|                 CXXFLAGS="${CXXFLAGS} -Werror" \ | ||||
|                 clean all | ||||
|  | ||||
|         case "${mode}" in | ||||
|         egypt|ncc) | ||||
|             ;; | ||||
|         *) | ||||
|             RUN "${MAKE}" \ | ||||
|                     CFLAGS="${CFLAGS} -Werror" \ | ||||
|                     CXXFLAGS="${CXXFLAGS} -Werror" \ | ||||
|                     check run-xmltest | ||||
|             ;; | ||||
|         esac | ||||
|     ) | ||||
|     [[ $? -ne 0 ]] && exit 1 | ||||
|  | ||||
|     case "${mode}" in | ||||
|     coverage) | ||||
|         find -name '*.gcda' | sort | xargs gcov | ||||
|         ;; | ||||
|     lib-coverage) | ||||
|         find lib -name '*.gcda' | sort | xargs gcov | ||||
|         ;; | ||||
|     app-coverage) | ||||
|         find lib xmlwf -name '*.gcda' | sort | xargs gcov | ||||
|         ;; | ||||
|     egypt) | ||||
|         local DOT_FORMAT="${DOT_FORMAT:-svg}" | ||||
|         local o="callgraph.${DOT_FORMAT}" | ||||
|         ANNOUNCE "egypt ...... | dot ...... > ${o}" | ||||
|         find -name '*.expand' \ | ||||
|                 | sort \ | ||||
|                 | xargs -r egypt \ | ||||
|                 | unflatten -c 20 \ | ||||
|                 | dot -T${DOT_FORMAT} -Grankdir=LR \ | ||||
|                 > "${o}" | ||||
|         ;; | ||||
|     ncc) | ||||
|         RUN nccnav ./.libs/libexpat.a.nccout | ||||
|         ;; | ||||
|     esac | ||||
| } | ||||
|  | ||||
| main "$@" | ||||
							
								
								
									
										12
									
								
								library/libexpat/expat/run.sh.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								library/libexpat/expat/run.sh.in
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| #! /usr/bin/env bash | ||||
| # Copyright (C) 2017 Expat development team | ||||
| # Licensed under the MIT license | ||||
|  | ||||
| case "@host@" in | ||||
| *-mingw*) | ||||
|     exec wine "$@" | ||||
|     ;; | ||||
| *) | ||||
|     exec "$@" | ||||
|     ;; | ||||
| esac | ||||
							
								
								
									
										43
									
								
								library/libexpat/expat/test-driver-wrapper.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										43
									
								
								library/libexpat/expat/test-driver-wrapper.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| #! /usr/bin/env bash | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| set -e | ||||
| top_srcdir="$(dirname "$(type -p "$0")")" | ||||
| top_builddir=.. | ||||
|  | ||||
| # Suck up all dash-dash test-driver arguments | ||||
| test_driver_args=() | ||||
| while [[ ${1} != '--' ]]; do | ||||
|     test_driver_args=( "${test_driver_args[@]}" "${1}" ) | ||||
|     shift | ||||
| done | ||||
| shift  # drop "--" | ||||
|  | ||||
| exec "${top_srcdir}"/conftools/test-driver "${test_driver_args[@]}" "${top_builddir}"/run.sh "$@" | ||||
							
								
								
									
										11
									
								
								library/libexpat/expat/tests/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								library/libexpat/expat/tests/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| /*.log | ||||
| /*.trs | ||||
| /out | ||||
| /xmlconf | ||||
| /xmltest.log | ||||
| Makefile | ||||
| runtests | ||||
| runtestspp | ||||
| xmlts.zip | ||||
| XML-Test-Suite | ||||
| .libs | ||||
							
								
								
									
										66
									
								
								library/libexpat/expat/tests/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								library/libexpat/expat/tests/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,66 @@ | ||||
| # | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| SUBDIRS = . benchmark | ||||
|  | ||||
| AM_CPPFLAGS = -I$(srcdir)/../lib | ||||
|  | ||||
| noinst_LIBRARIES = libruntests.a | ||||
|  | ||||
| check_PROGRAMS = runtests runtestspp | ||||
| TESTS = runtests runtestspp | ||||
|  | ||||
| # To support MinGW and Non-MinGW at the same time: | ||||
| LOG_DRIVER = $(srcdir)/../test-driver-wrapper.sh | ||||
|  | ||||
| libruntests_a_SOURCES = \ | ||||
|     chardata.c \ | ||||
|     structdata.c \ | ||||
|     memcheck.c \ | ||||
|     minicheck.c | ||||
|  | ||||
| runtests_SOURCES = \ | ||||
|     runtests.c | ||||
|  | ||||
| runtestspp_SOURCES = \ | ||||
|     runtestspp.cpp | ||||
|  | ||||
| runtests_LDADD = libruntests.a ../lib/libexpat.la | ||||
| runtestspp_LDADD = libruntests.a ../lib/libexpat.la | ||||
|  | ||||
| EXTRA_DIST = \ | ||||
|     chardata.h \ | ||||
|     structdata.h \ | ||||
|     minicheck.h \ | ||||
|     memcheck.h \ | ||||
|     README.txt \ | ||||
|     udiffer.py \ | ||||
|     xmltest.log.expected \ | ||||
|     xmltest.sh | ||||
							
								
								
									
										13
									
								
								library/libexpat/expat/tests/README.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								library/libexpat/expat/tests/README.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| This directory contains the (fledgling) test suite for Expat.  The | ||||
| tests provide general unit testing and regression coverage.  The tests | ||||
| are not expected to be useful examples of Expat usage; see the | ||||
| examples/ directory for that. | ||||
|  | ||||
| The Expat tests use a partial internal implementation of the "Check" | ||||
| unit testing framework for C. More information on Check can be found at: | ||||
|  | ||||
|         http://check.sourceforge.net/ | ||||
|  | ||||
| Expat must be built and, depending on platform, must be installed, before "make check" can be executed. | ||||
|  | ||||
| This test suite can all change in a later version. | ||||
							
								
								
									
										1
									
								
								library/libexpat/expat/tests/benchmark/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								library/libexpat/expat/tests/benchmark/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| /benchmark | ||||
							
								
								
									
										40
									
								
								library/libexpat/expat/tests/benchmark/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								library/libexpat/expat/tests/benchmark/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| # | ||||
| #                          __  __            _ | ||||
| #                       ___\ \/ /_ __   __ _| |_ | ||||
| #                      / _ \\  /| '_ \ / _` | __| | ||||
| #                     |  __//  \| |_) | (_| | |_ | ||||
| #                      \___/_/\_\ .__/ \__,_|\__| | ||||
| #                               |_| XML parser | ||||
| # | ||||
| # Copyright (c) 2017 Expat development team | ||||
| # Licensed under the MIT license: | ||||
| # | ||||
| # 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. | ||||
|  | ||||
| AM_CPPFLAGS = -I$(srcdir)/../../lib | ||||
|  | ||||
| noinst_PROGRAMS = benchmark | ||||
|  | ||||
| benchmark_SOURCES = benchmark.c | ||||
|  | ||||
| benchmark_LDADD = ../../lib/libexpat.la | ||||
|  | ||||
| EXTRA_DIST = \ | ||||
|     README.txt | ||||
							
								
								
									
										16
									
								
								library/libexpat/expat/tests/benchmark/README.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								library/libexpat/expat/tests/benchmark/README.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| Use this benchmark command line utility as follows: | ||||
|  | ||||
|   benchmark [-n] <file name> <buffer size> <# iterations> | ||||
|  | ||||
| The command line arguments are: | ||||
|  | ||||
|   -n             ... optional; if supplied, namespace processing is turned on | ||||
|   <file name>    ... name/path of test xml file | ||||
|   <buffer size>  ... size of processing buffer; | ||||
|                      the file is parsed in chunks of this size | ||||
|   <# iterations> ... how often will the file be parsed | ||||
|  | ||||
| Returns: | ||||
|  | ||||
|   The time (in seconds) it takes to parse the test file, | ||||
|   averaged over the number of iterations.@ | ||||
							
								
								
									
										25
									
								
								library/libexpat/expat/tests/benchmark/benchmark.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								library/libexpat/expat/tests/benchmark/benchmark.sln
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
|  | ||||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||||
| # Visual Studio 2013 | ||||
| VisualStudioVersion = 12.0.40629.0 | ||||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||||
| Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "benchmark", "benchmark.vcxproj", "{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}" | ||||
| EndProject | ||||
| Global | ||||
| 	GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
| 		Debug|Win32 = Debug|Win32 | ||||
| 		Release|Win32 = Release|Win32 | ||||
| 		Template|Win32 = Template|Win32 | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||||
| 		{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}.Debug|Win32.ActiveCfg = Debug|Win32 | ||||
| 		{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}.Debug|Win32.Build.0 = Debug|Win32 | ||||
| 		{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}.Release|Win32.ActiveCfg = Release|Win32 | ||||
| 		{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}.Release|Win32.Build.0 = Release|Win32 | ||||
| 		{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}.Template|Win32.ActiveCfg = Template|Win32 | ||||
| 		{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}.Template|Win32.Build.0 = Template|Win32 | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(SolutionProperties) = preSolution | ||||
| 		HideSolutionNode = FALSE | ||||
| 	EndGlobalSection | ||||
| EndGlobal | ||||
							
								
								
									
										143
									
								
								library/libexpat/expat/tests/benchmark/benchmark.vcxproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										143
									
								
								library/libexpat/expat/tests/benchmark/benchmark.vcxproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,143 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <ItemGroup Label="ProjectConfigurations"> | ||||
|     <ProjectConfiguration Include="Debug|Win32"> | ||||
|       <Configuration>Debug</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Release|Win32"> | ||||
|       <Configuration>Release</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|     <ProjectConfiguration Include="Template|Win32"> | ||||
|       <Configuration>Template</Configuration> | ||||
|       <Platform>Win32</Platform> | ||||
|     </ProjectConfiguration> | ||||
|   </ItemGroup> | ||||
|   <PropertyGroup Label="Globals"> | ||||
|     <SccProjectName /> | ||||
|     <SccLocalPath /> | ||||
|     <ProjectGuid>{FF89BA66-62C4-49EC-9189-1E7B603A1FD6}</ProjectGuid> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v120</PlatformToolset> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v120</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>Application</ConfigurationType> | ||||
|     <PlatformToolset>v120</PlatformToolset> | ||||
|     <UseOfMfc>false</UseOfMfc> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||||
|   <ImportGroup Label="ExtensionSettings"> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||||
|     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||||
|     <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> | ||||
|   </ImportGroup> | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <OutDir>.\Release\</OutDir> | ||||
|     <IntDir>.\Release\</IntDir> | ||||
|     <LinkIncremental>false</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <OutDir>.\Debug\</OutDir> | ||||
|     <IntDir>.\Debug\</IntDir> | ||||
|     <LinkIncremental>true</LinkIncremental> | ||||
|   </PropertyGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <StringPooling>true</StringPooling> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>MaxSpeed</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <AdditionalIncludeDirectories>..\..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|       <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\Release\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\Release\benchmark.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\Release\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <TypeLibraryName>.\Release\benchmark.tlb</TypeLibraryName> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x1009</Culture> | ||||
|       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\Release\benchmark.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>.\Release\benchmark.exe</OutputFile> | ||||
|       <AdditionalLibraryDirectories>..\..\win32\bin\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||||
|       <AdditionalDependencies>libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||||
|     <ClCompile> | ||||
|       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||||
|       <InlineFunctionExpansion>Default</InlineFunctionExpansion> | ||||
|       <FunctionLevelLinking>true</FunctionLevelLinking> | ||||
|       <Optimization>Disabled</Optimization> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <WarningLevel>Level3</WarningLevel> | ||||
|       <MinimalRebuild>true</MinimalRebuild> | ||||
|       <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||||
|       <AdditionalIncludeDirectories>..\..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||||
|       <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|       <AssemblerListingLocation>.\Debug\</AssemblerListingLocation> | ||||
|       <PrecompiledHeaderOutputFile>.\Debug\benchmark.pch</PrecompiledHeaderOutputFile> | ||||
|       <ObjectFileName>.\Debug\</ObjectFileName> | ||||
|       <ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName> | ||||
|       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||||
|     </ClCompile> | ||||
|     <Midl> | ||||
|       <TypeLibraryName>.\Debug\benchmark.tlb</TypeLibraryName> | ||||
|     </Midl> | ||||
|     <ResourceCompile> | ||||
|       <Culture>0x1009</Culture> | ||||
|       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||||
|     </ResourceCompile> | ||||
|     <Bscmake> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <OutputFile>.\Debug\benchmark.bsc</OutputFile> | ||||
|     </Bscmake> | ||||
|     <Link> | ||||
|       <SuppressStartupBanner>true</SuppressStartupBanner> | ||||
|       <GenerateDebugInformation>true</GenerateDebugInformation> | ||||
|       <SubSystem>Console</SubSystem> | ||||
|       <OutputFile>.\Debug\benchmark.exe</OutputFile> | ||||
|       <AdditionalLibraryDirectories>..\..\win32\bin\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||||
|       <AdditionalDependencies>libexpat.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||||
|     </Link> | ||||
|   </ItemDefinitionGroup> | ||||
|   <ItemGroup> | ||||
|     <ClCompile Include="benchmark.c" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||
|   <ImportGroup Label="ExtensionTargets"> | ||||
|   </ImportGroup> | ||||
| </Project> | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 ykxiao
					ykxiao