├── .gitmodules
├── Makefile
├── README.md
├── android
└── external
│ └── expat
│ ├── CMake.README
│ ├── CMakeLists.txt
│ ├── COPYING
│ ├── Changes
│ ├── ConfigureChecks.cmake
│ ├── MANIFEST
│ ├── Makefile.in
│ ├── README
│ ├── aclocal.m4
│ ├── amiga
│ ├── Makefile
│ ├── README.txt
│ ├── expat.xml
│ ├── expat_68k.c
│ ├── expat_68k.h
│ ├── expat_68k_handler_stubs.c
│ ├── expat_base.h
│ ├── expat_lib.c
│ ├── expat_vectors.c
│ ├── include
│ │ ├── inline4
│ │ │ └── expat.h
│ │ ├── interfaces
│ │ │ └── expat.h
│ │ ├── libraries
│ │ │ └── expat.h
│ │ └── proto
│ │ │ └── expat.h
│ └── launch.c
│ ├── bcb5
│ ├── README.txt
│ ├── all_projects.bpg
│ ├── elements.bpf
│ ├── elements.bpr
│ ├── elements.mak
│ ├── expat.bpf
│ ├── expat.bpr
│ ├── expat.mak
│ ├── expat_static.bpf
│ ├── expat_static.bpr
│ ├── expat_static.mak
│ ├── expatw.bpf
│ ├── expatw.bpr
│ ├── expatw.mak
│ ├── expatw_static.bpf
│ ├── expatw_static.bpr
│ ├── expatw_static.mak
│ ├── libexpat_mtd.def
│ ├── libexpatw_mtd.def
│ ├── makefile.mak
│ ├── outline.bpf
│ ├── outline.bpr
│ ├── outline.mak
│ ├── setup.bat
│ ├── xmlwf.bpf
│ ├── xmlwf.bpr
│ └── xmlwf.mak
│ ├── configure
│ ├── configure.in
│ ├── conftools
│ ├── PrintPath
│ ├── ac_c_bigendian_cross.m4
│ ├── config.guess
│ ├── config.sub
│ ├── expat.m4
│ ├── get-version.sh
│ ├── install-sh
│ ├── ltmain.sh
│ └── mkinstalldirs
│ ├── doc
│ ├── expat.png
│ ├── reference.html
│ ├── style.css
│ ├── valid-xhtml10.png
│ ├── xmlwf.1
│ └── xmlwf.sgml
│ ├── examples
│ ├── elements.c
│ ├── elements.dsp
│ ├── outline.c
│ └── outline.dsp
│ ├── expat.dsw
│ ├── expat.pc.in
│ ├── expat_config.h.cmake
│ ├── expat_config.h.in
│ ├── lib
│ ├── Makefile.MPW
│ ├── amigaconfig.h
│ ├── ascii.h
│ ├── asciitab.h
│ ├── expat.dsp
│ ├── expat.h
│ ├── expat_external.h
│ ├── expat_static.dsp
│ ├── expatw.dsp
│ ├── expatw_static.dsp
│ ├── iasciitab.h
│ ├── internal.h
│ ├── latin1tab.h
│ ├── libexpat.def
│ ├── libexpatw.def
│ ├── macconfig.h
│ ├── nametab.h
│ ├── utf8tab.h
│ ├── winconfig.h
│ ├── xmlparse.c
│ ├── xmlrole.c
│ ├── xmlrole.h
│ ├── xmltok.c
│ ├── xmltok.h
│ ├── xmltok_impl.c
│ ├── xmltok_impl.h
│ └── xmltok_ns.c
│ ├── m4
│ ├── libtool.m4
│ ├── ltoptions.m4
│ ├── ltsugar.m4
│ ├── ltversion.m4
│ └── lt~obsolete.m4
│ ├── tests
│ ├── README.txt
│ ├── benchmark
│ │ ├── README.txt
│ │ ├── benchmark.c
│ │ ├── benchmark.dsp
│ │ └── benchmark.dsw
│ ├── chardata.c
│ ├── chardata.h
│ ├── minicheck.c
│ ├── minicheck.h
│ ├── runtests.c
│ ├── runtestspp.cpp
│ └── xmltest.sh
│ ├── vms
│ ├── README.vms
│ ├── descrip.mms
│ └── expat_config.h
│ ├── win32
│ ├── MANIFEST.txt
│ ├── README.txt
│ └── expat.iss
│ └── xmlwf
│ ├── codepage.c
│ ├── codepage.h
│ ├── ct.c
│ ├── filemap.h
│ ├── readfilemap.c
│ ├── unixfilemap.c
│ ├── win32filemap.c
│ ├── xmlfile.c
│ ├── xmlfile.h
│ ├── xmlmime.c
│ ├── xmlmime.h
│ ├── xmltchar.h
│ ├── xmlurl.h
│ ├── xmlwf.c
│ ├── xmlwf.dsp
│ └── xmlwin32url.cxx
└── patch
├── expat
└── expat_config.h.in.patch
├── libnativehelper_jni.h.win32.patch
├── luni
└── java_util_EnumMap.java.patch
├── openssl
└── openssl-upstream_Makefile.org.patch
└── zlib
├── zconf.h
├── zlib.h
└── zutil.h
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "android/libcore"]
2 | path = android/libcore
3 | url = ../avian-pack.android.libcore.git
4 | branch = avian-pack
5 | [submodule "android/bionic"]
6 | path = android/bionic
7 | url = ../avian-pack.android.bionic.git
8 | branch = avian-pack
9 | [submodule "android/libnativehelper"]
10 | path = android/libnativehelper
11 | url = ../avian-pack.android.libnativehelper.git
12 | branch = avian-pack
13 | [submodule "android/openssl-upstream"]
14 | path = android/openssl-upstream
15 | url = ../avian-pack.android.openssl-upstream.git
16 | branch = avian-pack
17 | [submodule "android/system/core"]
18 | path = android/system/core
19 | url = ../avian-pack.android.system.core.git
20 | branch = avian-pack
21 | [submodule "android/external/fdlibm"]
22 | path = android/external/fdlibm
23 | url = ../avian-pack.android.external.fdlibm.git
24 | branch = avian-pack
25 | [submodule "android/external/icu4c"]
26 | path = android/external/icu4c
27 | url = ../avian-pack.android.external.icu4c.git
28 | branch = avian-pack
29 | [submodule "android/external/openssl"]
30 | path = android/external/openssl
31 | url = ../avian-pack.android.external.openssl.git
32 | branch = avian-pack
33 | [submodule "android/external/zlib"]
34 | path = android/external/zlib
35 | url = ../avian-pack.android.external.zlib.git
36 | branch = avian-pack
37 | [submodule "avian"]
38 | path = avian
39 | url = ../avian-pack.avian
40 | branch = avian-pack
41 | [submodule "android/external/conscrypt"]
42 | path = android/external/conscrypt
43 | url = ../avian-pack.android.external.conscrypt.git
44 | [submodule "android/external/bouncycastle"]
45 | path = android/external/bouncycastle
46 | url = https://bigfatbrowncat@github.com/bigfatbrowncat/avian-pack.android.external.bouncycastle.git
47 | [submodule "android/external/okhttp"]
48 | path = android/external/okhttp
49 | url = https://bigfatbrowncat@github.com/bigfatbrowncat/avian-pack.android.external.okhttp.git
50 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # avian-pack
2 | This project is a blend of Avian (http://oss.readytalk.com/avian/) and Android classpath that is (at the moment) far more compatible with the original proprietary JDK Classpath.
3 | ## Building
4 | The building is quite simple:
5 |
6 |
7 | - First of all you should prepare your environment according to this guide:
http://bigfatbrowncat.github.io/cross-building/
You may use any other configuration, of course, but you would crush into many problems, I bet (especially on Windows).
8 | - In order to build Avian and Android classes we should have JDK 7 installed.
9 | http://www.oracle.com/technetwork/java/javase/downloads/index.html
10 | Be careful! Don't install JDK 8 instead.
11 | - [On Windows or Linux] After the JDK is installed you should set the `JAVA_HOME` variable. For example, on Windows it would be something like
12 |
export JAVA_HOME=/c/Program\ Files/Java/jdk1.7.0_00
13 | You don't have to set this variable on OS X where the path could be found automagically.
14 | - Then you should clone the avian-pack repo:
15 |
git clone https://github.com/bigfatbrowncat/avian-pack.git
16 | cd avian-pack
17 | This step will take the base repo from the server. It's quite fast (about 5-20 seconds on an average web connection speed)
18 | - Now you should fetch all the submodules.
19 |
make git-refresh
20 | This command will clone many necessary repos (most of them are Android components). This will take a dozen of minutes.
21 | - Now it's ready to be built. Just type
22 |
make
23 | The building process is quite slow. It will build all the components and link them together. After all the operations are complete, the result will appear inside avian/build
directory.
24 |
25 |
--------------------------------------------------------------------------------
/android/external/expat/CMake.README:
--------------------------------------------------------------------------------
1 | == How to build expat with cmake (experimental) ==
2 |
3 | The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual
4 | Studio) and should work on all other platform cmake supports.
5 |
6 | Assuming ~/expat-2.1.0 is the source directory of expat, add a subdirectory
7 | build and change into that directory:
8 | ~/expat-2.1.0$ mkdir build && cd build
9 | ~/expat-2.1.0/build$
10 |
11 | From that directory, call cmake first, then call make, make test and
12 | make install in the usual way:
13 | ~/expat-2.1.0/build$ cmake ..
14 | -- The C compiler identification is GNU
15 | -- The CXX compiler identification is GNU
16 | ....
17 | -- Configuring done
18 | -- Generating done
19 | -- Build files have been written to: /home/patrick/expat-2.1.0/build
20 |
21 | If you want to specify the install location for your files, append
22 | -DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
23 |
24 | ~/expat-2.1.0/build$ make && make test && make install
25 | Scanning dependencies of target expat
26 | [ 5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
27 | [ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
28 | ....
29 | -- Installing: /usr/local/lib/pkgconfig/expat.pc
30 | -- Installing: /usr/local/bin/xmlwf
31 | -- Installing: /usr/local/share/man/man1/xmlwf.1
32 |
33 | For Windows builds, you must make sure to call cmake from an environment where
34 | your compiler is reachable, that means either you call it from the
35 | Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and
36 | make sure that gcc can be called. On Windows, you also might want to specify a
37 | special Generator for CMake:
38 | for Visual Studio builds do:
39 | cmake .. -G "Visual Studio 10" && vcexpress expat.sln
40 | for mingw builds do:
41 | cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install
42 | && gmake && gmake install
43 |
--------------------------------------------------------------------------------
/android/external/expat/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file is copyrighted under the BSD-license for buildsystem files of KDE
2 | # copyright 2010, Patrick Spendrin
3 |
4 | project(expat)
5 |
6 | cmake_minimum_required(VERSION 2.6)
7 | set(PACKAGE_BUGREPORT "expat-bugs@libexpat.org")
8 | set(PACKAGE_NAME "expat")
9 | set(PACKAGE_VERSION "2.1.0")
10 | set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
11 | set(PACKAGE_TARNAME "${PACKAGE_NAME}")
12 |
13 | option(BUILD_tools "build the xmlwf tool for expat library" ON)
14 | option(BUILD_examples "build the examples for expat library" ON)
15 | option(BUILD_tests "build the tests for expat library" ON)
16 | option(BUILD_shared "build a shared expat library" ON)
17 |
18 | # configuration options
19 | set(XML_CONTEXT_BYTES 1024 CACHE STRING "Define to specify how much context to retain around the current parse point")
20 | option(XML_DTD "Define to make parameter entity parsing functionality available" ON)
21 | option(XML_NS "Define to make XML Namespaces functionality available" ON)
22 |
23 | if(XML_DTD)
24 | set(XML_DTD 1)
25 | else(XML_DTD)
26 | set(XML_DTD 0)
27 | endif(XML_DTD)
28 | if(XML_NS)
29 | set(XML_NS 1)
30 | else(XML_NS)
31 | set(XML_NS 0)
32 | endif(XML_NS)
33 |
34 | if(BUILD_tests)
35 | enable_testing()
36 | endif(BUILD_tests)
37 |
38 | include(ConfigureChecks.cmake)
39 |
40 | include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/lib)
41 | if(MSVC)
42 | add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996)
43 | endif(MSVC)
44 |
45 | set(expat_SRCS
46 | lib/xmlparse.c
47 | lib/xmlrole.c
48 | lib/xmltok.c
49 | lib/xmltok_impl.c
50 | lib/xmltok_ns.c
51 | )
52 |
53 | if(WIN32 AND BUILD_shared)
54 | set(expat_SRCS ${expat_SRCS} lib/libexpat.def)
55 | endif(WIN32 AND BUILD_shared)
56 |
57 | if(BUILD_shared)
58 | set(_SHARED SHARED)
59 | else(BUILD_shared)
60 | set(_SHARED STATIC)
61 | endif(BUILD_shared)
62 |
63 | add_library(expat ${_SHARED} ${expat_SRCS})
64 |
65 | install(TARGETS expat RUNTIME DESTINATION bin
66 | LIBRARY DESTINATION lib
67 | ARCHIVE DESTINATION lib)
68 |
69 | set(prefix ${CMAKE_INSTALL_PREFIX})
70 | set(exec_prefix "\${prefix}/bin")
71 | set(libdir "\${prefix}/lib")
72 | set(includedir "\${prefix}/include")
73 | configure_file(expat.pc.in ${CMAKE_CURRENT_BINARY_DIR}/expat.pc)
74 |
75 | install(FILES lib/expat.h lib/expat_external.h DESTINATION include)
76 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib/pkgconfig)
77 |
78 |
79 |
80 | if(BUILD_tools AND NOT WINCE)
81 | set(xmlwf_SRCS
82 | xmlwf/xmlwf.c
83 | xmlwf/xmlfile.c
84 | xmlwf/codepage.c
85 | xmlwf/readfilemap.c
86 | )
87 |
88 | add_executable(xmlwf ${xmlwf_SRCS})
89 | target_link_libraries(xmlwf expat)
90 | install(TARGETS xmlwf DESTINATION bin)
91 | install(FILES doc/xmlwf.1 DESTINATION share/man/man1)
92 | endif(BUILD_tools AND NOT WINCE)
93 |
94 | if(BUILD_examples)
95 | add_executable(elements examples/elements.c)
96 | target_link_libraries(elements expat)
97 |
98 | add_executable(outline examples/outline.c)
99 | target_link_libraries(outline expat)
100 | endif(BUILD_examples)
101 |
102 | if(BUILD_tests)
103 | ## these are unittests that can be run on any platform
104 | add_executable(runtests tests/runtests.c tests/chardata.c tests/minicheck.c)
105 | target_link_libraries(runtests expat)
106 | add_test(runtests runtests)
107 |
108 | add_executable(runtestspp tests/runtestspp.cpp tests/chardata.c tests/minicheck.c)
109 | target_link_libraries(runtestspp expat)
110 | add_test(runtestspp runtestspp)
111 | endif(BUILD_tests)
112 |
--------------------------------------------------------------------------------
/android/external/expat/COPYING:
--------------------------------------------------------------------------------
1 | Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
2 | and Clark Cooper
3 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | "Software"), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included
14 | in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/android/external/expat/ConfigureChecks.cmake:
--------------------------------------------------------------------------------
1 | include(CheckIncludeFile)
2 | include(CheckIncludeFiles)
3 | include(CheckFunctionExists)
4 | include(CheckSymbolExists)
5 | include(TestBigEndian)
6 |
7 | check_include_file("dlfcn.h" HAVE_DLFCN_H)
8 | check_include_file("fcntl.h" HAVE_FCNTL_H)
9 | check_include_file("inttypes.h" HAVE_INTTYPES_H)
10 | check_include_file("memory.h" HAVE_MEMORY_H)
11 | check_include_file("stdint.h" HAVE_STDINT_H)
12 | check_include_file("stdlib.h" HAVE_STDLIB_H)
13 | check_include_file("strings.h" HAVE_STRINGS_H)
14 | check_include_file("string.h" HAVE_STRING_H)
15 | check_include_file("sys/stat.h" HAVE_SYS_STAT_H)
16 | check_include_file("sys/types.h" HAVE_SYS_TYPES_H)
17 | check_include_file("unistd.h" HAVE_UNISTD_H)
18 |
19 | check_function_exists("getpagesize" HAVE_GETPAGESIZE)
20 | check_function_exists("bcopy" HAVE_BCOPY)
21 | check_symbol_exists("memmove" "string.h" HAVE_MEMMOVE)
22 | check_function_exists("mmap" HAVE_MMAP)
23 |
24 | #/* Define to 1 if you have the ANSI C header files. */
25 | check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
26 |
27 | test_big_endian(WORDS_BIGENDIAN)
28 | #/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
29 | if(WORDS_BIGENDIAN)
30 | set(BYTEORDER 4321)
31 | else(WORDS_BIGENDIAN)
32 | set(BYTEORDER 1234)
33 | endif(WORDS_BIGENDIAN)
34 |
35 | if(HAVE_SYS_TYPES_H)
36 | check_symbol_exists("off_t" "sys/types.h" OFF_T)
37 | check_symbol_exists("size_t" "sys/types.h" SIZE_T)
38 | else(HAVE_SYS_TYPES_H)
39 | set(OFF_T "long")
40 | set(SIZE_T "unsigned")
41 | endif(HAVE_SYS_TYPES_H)
42 |
43 | configure_file(expat_config.h.cmake expat_config.h)
44 | add_definitions(-DHAVE_EXPAT_CONFIG_H)
45 |
--------------------------------------------------------------------------------
/android/external/expat/MANIFEST:
--------------------------------------------------------------------------------
1 | amiga/launch.c
2 | amiga/expat_68k.c
3 | amiga/expat_68k.h
4 | amiga/expat_68k_handler_stubs.c
5 | amiga/expat_base.h
6 | amiga/expat_vectors.c
7 | amiga/expat_lib.c
8 | amiga/expat.xml
9 | amiga/README.txt
10 | amiga/Makefile
11 | amiga/include/proto/expat.h
12 | amiga/include/libraries/expat.h
13 | amiga/include/interfaces/expat.h
14 | amiga/include/inline4/expat.h
15 | bcb5/README.txt
16 | bcb5/all_projects.bpg
17 | bcb5/elements.bpf
18 | bcb5/elements.bpr
19 | bcb5/elements.mak
20 | bcb5/expat.bpf
21 | bcb5/expat.bpr
22 | bcb5/expat.mak
23 | bcb5/expat_static.bpf
24 | bcb5/expat_static.bpr
25 | bcb5/expat_static.mak
26 | bcb5/expatw.bpf
27 | bcb5/expatw.bpr
28 | bcb5/expatw.mak
29 | bcb5/expatw_static.bpf
30 | bcb5/expatw_static.bpr
31 | bcb5/expatw_static.mak
32 | bcb5/libexpat_mtd.def
33 | bcb5/libexpatw_mtd.def
34 | bcb5/makefile.mak
35 | bcb5/outline.bpf
36 | bcb5/outline.bpr
37 | bcb5/outline.mak
38 | bcb5/setup.bat
39 | bcb5/xmlwf.bpf
40 | bcb5/xmlwf.bpr
41 | bcb5/xmlwf.mak
42 | doc/expat.png
43 | doc/reference.html
44 | doc/style.css
45 | doc/valid-xhtml10.png
46 | doc/xmlwf.1
47 | doc/xmlwf.sgml
48 | CMakeLists.txt
49 | CMake.README
50 | COPYING
51 | Changes
52 | ConfigureChecks.cmake
53 | MANIFEST
54 | Makefile.in
55 | README
56 | configure
57 | configure.in
58 | expat_config.h.in
59 | expat_config.h.cmake
60 | expat.pc.in
61 | expat.dsw
62 | aclocal.m4
63 | conftools/PrintPath
64 | conftools/ac_c_bigendian_cross.m4
65 | conftools/expat.m4
66 | conftools/get-version.sh
67 | conftools/mkinstalldirs
68 | conftools/config.guess
69 | conftools/config.sub
70 | conftools/install-sh
71 | conftools/ltmain.sh
72 | m4/libtool.m4
73 | m4/ltversion.m4
74 | m4/ltoptions.m4
75 | m4/ltsugar.m4
76 | m4/lt~obsolete.m4
77 | examples/elements.c
78 | examples/elements.dsp
79 | examples/outline.c
80 | examples/outline.dsp
81 | lib/Makefile.MPW
82 | lib/amigaconfig.h
83 | lib/ascii.h
84 | lib/asciitab.h
85 | lib/expat.dsp
86 | lib/expat.h
87 | lib/expat_external.h
88 | lib/expat_static.dsp
89 | lib/expatw.dsp
90 | lib/expatw_static.dsp
91 | lib/iasciitab.h
92 | lib/internal.h
93 | lib/latin1tab.h
94 | lib/libexpat.def
95 | lib/libexpatw.def
96 | lib/macconfig.h
97 | lib/nametab.h
98 | lib/utf8tab.h
99 | lib/winconfig.h
100 | lib/xmlparse.c
101 | lib/xmlrole.c
102 | lib/xmlrole.h
103 | lib/xmltok.c
104 | lib/xmltok.h
105 | lib/xmltok_impl.c
106 | lib/xmltok_impl.h
107 | lib/xmltok_ns.c
108 | tests/benchmark/README.txt
109 | tests/benchmark/benchmark.c
110 | tests/benchmark/benchmark.dsp
111 | tests/benchmark/benchmark.dsw
112 | tests/README.txt
113 | tests/chardata.c
114 | tests/chardata.h
115 | tests/minicheck.c
116 | tests/minicheck.h
117 | tests/runtests.c
118 | tests/runtestspp.cpp
119 | tests/xmltest.sh
120 | vms/README.vms
121 | vms/descrip.mms
122 | vms/expat_config.h
123 | win32/MANIFEST.txt
124 | win32/README.txt
125 | win32/expat.iss
126 | xmlwf/codepage.c
127 | xmlwf/codepage.h
128 | xmlwf/ct.c
129 | xmlwf/filemap.h
130 | xmlwf/readfilemap.c
131 | xmlwf/unixfilemap.c
132 | xmlwf/win32filemap.c
133 | xmlwf/xmlfile.c
134 | xmlwf/xmlfile.h
135 | xmlwf/xmlmime.c
136 | xmlwf/xmlmime.h
137 | xmlwf/xmltchar.h
138 | xmlwf/xmlurl.h
139 | xmlwf/xmlwf.c
140 | xmlwf/xmlwf.dsp
141 | xmlwf/xmlwin32url.cxx
142 |
--------------------------------------------------------------------------------
/android/external/expat/amiga/README.txt:
--------------------------------------------------------------------------------
1 | SUMMARY
2 | =======
3 | This is a port of expat for AmigaOS 4.x which includes the
4 | SDK, some XML tools and the libraries.
5 |
6 | Four library flavours are supported:
7 | 1. static clib2 (libexpat.a)
8 | 2. static newlib (libexpat.a)
9 | 3. AmigaOS library (expat.library)
10 | 4. AmigaOS shared object library (libexpat.so)
11 |
12 | The AmigaOS library version is based on the work of Fredrik Wikstrom.
13 |
14 |
15 | BUILDING
16 | ========
17 | To build all the library flavours, all the tools, examples and run the
18 | test suite, simply type 'make all' in the amiga subdirectory.
19 |
20 |
21 | INSTALLATION
22 | ============
23 | To install expat into the standard AmigaOS SDK type 'make install'
24 | in the amiga subdirectory.
25 |
26 |
27 | CONFIGURATION
28 | =============
29 | You may want to edit the lib/amigaconfig.h file to remove
30 | DTD and/or XML namespace support if they are not required by your
31 | specific application for a smaller and faster implementation.
32 |
33 |
34 | SOURCE CODE
35 | ===========
36 | The source code is actively maintained and merged with the official
37 | Expat repository available at http://expat.sourceforge.net/
38 |
39 |
40 | HISTORY
41 | =======
42 | 53.1 - bumped version to match AmigaOS streaming
43 | - modified to remove all global variables (except INewLib)
44 | - removed replacements for malloc(), etc. which are now
45 | handled by the respective C library
46 | - compiled with the latest binutils which bumps the
47 | AMIGAOS_DYNVERSION to 2 for the libexpat.so target
48 | - now strips the expat.library binary
49 |
50 | 5.2 - fixed XML_Parse 68k stub which enables xmlviewer to work
51 | without crashing
52 | - added some new functions to the 68k jump table available
53 | in the latest expat.library for AmigaOS 3.x
54 | - patches provided by Fredrik Wikstrom
55 |
56 | 5.1 - fixed package archive which was missing libexpat.so
57 | - fixed library protection bits
58 | - fixed up copyright notices
59 |
60 | 5.0 - integrated 68k patches from Fredrik Wikstrom which means
61 | expat.library is now callable from 68k code
62 | - bumped version for the addition of the 68k interface so
63 | executables can explicitly ask for version 5 and know
64 | it includes the 68k interface
65 | - refactored Makefile to avoid recursive make calls and
66 | build all the library flavours
67 | - added static newlib version
68 | - added shared objects version
69 | - added package target to Makefile
70 | - compiled with SDK 53.13 (GCC 4.2.4) at -O3
71 |
72 | 4.2 - updated to correspond to Expat 2.0.1 release
73 | - bumped copyright banners and versions
74 | - simplified amigaconfig.h
75 | - updated include/libraries/expat.h file
76 | - modified launch.c to use contructor/deconstructor
77 | - removed need for amiga_main() from expat utilities
78 |
79 | 4.1 - fixed memory freeing bug in shared library version
80 | - now allocates shared memory
81 |
82 | 4.0 - updated for corresponding Expat 2.0 release
83 | - some minor CVS related changes
84 |
85 | 3.1 - removed obsolete sfd file
86 | - added library description xml file
87 | - refactored Makefile
88 | - removed extraneous VARARGS68K keywords
89 | - reworked default memory handling functions in shared lib
90 | - updated amigaconfig.h
91 |
92 | 3.0 - initial release
93 | - based on expat 1.95.8
94 |
95 |
96 | TO DO
97 | =====
98 | - wide character support (UTF-16)
99 |
--------------------------------------------------------------------------------
/android/external/expat/amiga/expat_68k.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** Copyright (c) 2001-2009 Expat maintainers.
3 | **
4 | ** Permission is hereby granted, free of charge, to any person obtaining
5 | ** a copy of this software and associated documentation files (the
6 | ** "Software"), to deal in the Software without restriction, including
7 | ** without limitation the rights to use, copy, modify, merge, publish,
8 | ** distribute, sublicense, and/or sell copies of the Software, and to
9 | ** permit persons to whom the Software is furnished to do so, subject to
10 | ** the following conditions:
11 | **
12 | ** The above copyright notice and this permission notice shall be included
13 | ** in all copies or substantial portions of the Software.
14 | **
15 | ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 | ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | */
23 |
24 | #ifndef EXPAT_68K_H
25 | #define EXPAT_68K_H
26 |
27 | #ifndef LIBRARIES_EXPAT_H
28 | #include
29 | #endif
30 |
31 | typedef struct M68kXML_ParserStruct {
32 | XML_Parser p;
33 | struct ExecIFace *IExec;
34 | void *handlerarg;
35 | void *extenthandlerarg;
36 | void *enchandlerarg;
37 | void *startelementhandler;
38 | void *endelementhandler;
39 | void *chardatahandler;
40 | void *procinsthandler;
41 | void *commenthandler;
42 | void *startcdatahandler;
43 | void *endcdatahandler;
44 | void *defaulthandler;
45 | void *defaulthandlerexp;
46 | void *extentrefhandler;
47 | void *unknownenchandler;
48 | void *startnamespacehandler;
49 | void *endnamespacehandler;
50 | void *xmldeclhandler;
51 | void *startdoctypehandler;
52 | void *enddoctypehandler;
53 | void *elementdeclhandler;
54 | void *attlistdeclhandler;
55 | void *entitydeclhandler;
56 | void *unparseddeclhandler;
57 | void *notationdeclhandler;
58 | void *notstandalonehandler;
59 | void *skippedentityhandler;
60 | } *M68kXML_Parser;
61 |
62 | /* expat_68k_handler_stubs.c */
63 | void _68k_startelementhandler(void *userdata, const char *name, const char **attrs);
64 | void _68k_endelementhandler(void *userdata, const char *name);
65 | void _68k_chardatahandler(void *userdata, const char *s, int len);
66 | void _68k_procinsthandler(void *userdata, const char *target, const char *data);
67 | void _68k_commenthandler(void *userdata, const char *data);
68 | void _68k_startcdatahandler(void *userdata);
69 | void _68k_endcdatahandler(void *userdata);
70 | void _68k_defaulthandler(void *userdata, const char *s, int len);
71 | void _68k_defaulthandlerexp(void *userdata, const char *s, int len);
72 | int _68k_extentrefhandler(XML_Parser parser, const char *context, const char *base,
73 | const char *sysid, const char *pubid);
74 | int _68k_unknownenchandler(void *enchandlerdata, const char *name, XML_Encoding *info);
75 | void _68k_startnamespacehandler(void *userdata, const char *prefix, const char *uri);
76 | void _68k_endnamespacehandler(void *userdata, const char *prefix);
77 | void _68k_xmldeclhandler(void *userdata, const char *version, const char *encoding, int standalone);
78 | void _68k_startdoctypehandler(void *userdata, const char *doctypename,
79 | const char *sysid, const char *pubid, int has_internal_subset);
80 | void _68k_enddoctypehandler(void *userdata);
81 | void _68k_elementdeclhandler(void *userdata, const char *name, XML_Content *model);
82 | void _68k_attlistdeclhandler(void *userdata, const char *elname, const char *attname,
83 | const char *att_type, const char *dflt, int isrequired);
84 | void _68k_entitydeclhandler(void *userdata, const char *entityname, int is_param_entity,
85 | const char *value, int value_length, const char *base, const char *sysid, const char *pubid,
86 | const char *notationname);
87 | void _68k_unparseddeclhandler(void *userdata, const char *entityname, const char *base,
88 | const char *sysid, const char *pubid, const char *notationname);
89 | void _68k_notationdeclhandler(void *userdata, const char *notationname, const char *base,
90 | const char *sysid, const char *pubid);
91 | int _68k_notstandalonehandler(void *userdata);
92 | void _68k_skippedentityhandler(void *userdata, const char *entityname, int is_param_entity);
93 |
94 | #endif
95 |
--------------------------------------------------------------------------------
/android/external/expat/amiga/expat_base.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** Copyright (c) 2001-2009 Expat maintainers.
3 | **
4 | ** Permission is hereby granted, free of charge, to any person obtaining
5 | ** a copy of this software and associated documentation files (the
6 | ** "Software"), to deal in the Software without restriction, including
7 | ** without limitation the rights to use, copy, modify, merge, publish,
8 | ** distribute, sublicense, and/or sell copies of the Software, and to
9 | ** permit persons to whom the Software is furnished to do so, subject to
10 | ** the following conditions:
11 | **
12 | ** The above copyright notice and this permission notice shall be included
13 | ** in all copies or substantial portions of the Software.
14 | **
15 | ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 | ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | */
23 |
24 | #ifndef EXPAT_BASE_H
25 | #define EXPAT_BASE_H
26 |
27 | #include
28 | #include
29 | #include
30 | #include
31 |
32 |
33 | struct ExpatBase {
34 | struct Library libNode;
35 | uint16 pad;
36 | BPTR SegList;
37 | struct ExecIFace *IExec;
38 | };
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/android/external/expat/amiga/include/proto/expat.h:
--------------------------------------------------------------------------------
1 | #ifndef PROTO_EXPAT_H
2 | #define PROTO_EXPAT_H
3 |
4 | #ifndef LIBRARIES_EXPAT_H
5 | #include
6 | #endif
7 |
8 | /****************************************************************************/
9 |
10 | #ifndef __NOLIBBASE__
11 | #ifndef __USE_BASETYPE__
12 | extern struct Library * ExpatBase;
13 | #else
14 | extern struct Library * ExpatBase;
15 | #endif /* __USE_BASETYPE__ */
16 | #endif /* __NOLIBBASE__ */
17 |
18 | /****************************************************************************/
19 |
20 | #ifdef __amigaos4__
21 | #include
22 | #ifdef __USE_INLINE__
23 | #include
24 | #endif /* __USE_INLINE__ */
25 | #ifndef CLIB_EXPAT_PROTOS_H
26 | #define CLIB_EXPAT_PROTOS_H 1
27 | #endif /* CLIB_EXPAT_PROTOS_H */
28 | #ifndef __NOGLOBALIFACE__
29 | extern struct ExpatIFace *IExpat;
30 | #endif /* __NOGLOBALIFACE__ */
31 | #else /* __amigaos4__ */
32 | #ifndef CLIB_EXPAT_PROTOS_H
33 | #include
34 | #endif /* CLIB_EXPAT_PROTOS_H */
35 | #if defined(__GNUC__)
36 | #ifndef __PPC__
37 | #include
38 | #else
39 | #include
40 | #endif /* __PPC__ */
41 | #elif defined(__VBCC__)
42 | #ifndef __PPC__
43 | #include
44 | #endif /* __PPC__ */
45 | #else
46 | #include
47 | #endif /* __GNUC__ */
48 | #endif /* __amigaos4__ */
49 |
50 | /****************************************************************************/
51 |
52 | #endif /* PROTO_EXPAT_H */
53 |
--------------------------------------------------------------------------------
/android/external/expat/amiga/launch.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** Copyright (c) 2001-2009 Expat maintainers.
3 | **
4 | ** Permission is hereby granted, free of charge, to any person obtaining
5 | ** a copy of this software and associated documentation files (the
6 | ** "Software"), to deal in the Software without restriction, including
7 | ** without limitation the rights to use, copy, modify, merge, publish,
8 | ** distribute, sublicense, and/or sell copies of the Software, and to
9 | ** permit persons to whom the Software is furnished to do so, subject to
10 | ** the following conditions:
11 | **
12 | ** The above copyright notice and this permission notice shall be included
13 | ** in all copies or substantial portions of the Software.
14 | **
15 | ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 | ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | */
23 |
24 | #ifdef __USE_INLINE__
25 | #undef __USE_INLINE__
26 | #endif
27 |
28 | #include
29 | #include
30 |
31 | struct Library* ExpatBase = 0;
32 | struct ExpatIFace* IExpat = 0;
33 |
34 |
35 | void setup() __attribute__((constructor));
36 | void cleanup() __attribute__((destructor));
37 |
38 |
39 | void setup()
40 | {
41 | ExpatBase = IExec->OpenLibrary("expat.library", 53);
42 | IExpat = (struct ExpatIFace*)IExec->GetInterface(ExpatBase, "main", 1, NULL);
43 |
44 | if ( IExpat == 0 ) {
45 | IExec->DebugPrintF("Can't open expat.library\n");
46 | }
47 | }
48 |
49 |
50 | void cleanup()
51 | {
52 | IExec->DropInterface((struct Interface*)IExpat);
53 | IExpat = 0;
54 |
55 | IExec->CloseLibrary(ExpatBase);
56 | ExpatBase = 0;
57 | }
58 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/README.txt:
--------------------------------------------------------------------------------
1 |
2 | Using a Borland compiler product
3 |
4 | The files in this directory support using both the free Borland command-line
5 | compiler tools and the Borland C++ Builder IDE. The project files have been
6 | tested with both versions 5 and 6 of the C++ Builder product.
7 |
8 | Using the free BCC32 command line compiler
9 |
10 | After downloading and installing the free C++ Builder commandline version,
11 | perform the following steps (assuming it was installed under C:\Borland\BCC55):
12 |
13 | 1) Add "C:\Borland\BCC55\BIN" to your path
14 | 2) Set the environment variable BCB to "C:\Borland\BCC55".
15 | 3) edit makefile.mak: enable or comment out the appropriate commands under
16 | clean & distclean, depending on whether your OS can use deltree /y or
17 | del /s/f/q.
18 |
19 | After that, you should simply cd to the bcb5 directory in your Expat directory
20 | tree (same structure as CVS) and run "make all" or just "make".
21 |
22 | Naming
23 |
24 | The libraries have the base name "libexpat" followed optionally by an "s"
25 | (static) or a "w" (unicode version), then an underscore and optionally
26 | "mt" (multi-threaded) and "d" (dynamic RTL).
27 |
28 | To change the name of the library a project file produces, edit the project
29 | option source (see step 1 under Unicode below) and change the name contained in
30 | the PROJECT tag. In a make file, change the value assigned to the PROJECT
31 | variable. Also, the LIBRARY entry in the .def file has to be changed to
32 | correspond to the new executable name.
33 |
34 |
35 | Unicode Considerations
36 |
37 | There are no facilities in the BCB 5 GUI to create a unicode-enabled
38 | application. Fortunately, it is not hard to do by hand.
39 |
40 | 1. The startup .obj system file must be changed to the unicode version.
41 | Go to Project|Edit Option Source, and scroll down to the ALLOBJ tag. Change
42 | c0x32.obj to c0x32w.obj. Editing this file can be quirky, but usually the
43 | following kludge will make the change stick. Close and save the file
44 | (CTRL-F4) then open the options dialog (CTRL-Shift-F11), then click OK on
45 | the dialog immediately without changing anything in it. If this doesn't work,
46 | you will have to close the project completely and edit the .bpr file by hand.
47 |
48 | If you are using a make file, just change the startup .obj file assigned
49 | to the ALLOBJ variable.
50 |
51 | 2. Add the macro define XML_UNICODE_WCHAR_T. In the GUI that goes in the options
52 | dialog, Directories/Conditionals tab, in the Conditional define box. In a
53 | make file, put it in the USERDEFINES variable.
54 |
55 | 3. Of course, your code has to be written for unicode. As a start, the "main"
56 | function is called "wmain". The tchar macros are an interesting way to
57 | write code that can easily switch between unicode and utf-8. If these macros
58 | are used, then simply adding the conditional define _UNICODE as well as
59 | XML_UNICODE_WCHAR_T will bring in the unicode versions of the tchar macros.
60 | Otherwise the utf-8 versions are used. xmlwf uses its own versions of the
61 | tchar macros which are switched on and off by the XML_UNICODE macro, which
62 | itself is set by the XML_UNICODE_WCHAR_T define.
63 |
64 | Threading
65 |
66 | The libexpat libraries are all built to link with the multi-threaded dynamic RTL's.
67 | That means they require CC32xxMT.DLL present on the installation target.
68 | To create single-threaded libs, do the following:
69 |
70 | 1. The compiler option for multi-threading must be turned off. Following the
71 | instructions above to edit the option source, remove the -tWM option from
72 | the CFLAG1 tag. In a make file, remove it from the CFLAG1 variable.
73 |
74 | 2. The single threaded RTL must be called. change the RTL in the ALLLIB tag or
75 | variable (GUI or makefile repectively) to the version without the "mt" in the
76 | name. For example, change cw32mti.lib to cw32i.lib.
77 |
78 | Static RTL's
79 |
80 | To build the libs with static RTL's do the following,
81 |
82 | 1. For the static expatlibs, in the Tlib tab on the options dialog, uncheck the
83 | "Use dynamic RTL" box. For the dynamic expatlibs, in the Linker tab on the
84 | options dialog, uncheck "Use dynamic RTL". If you are using a make file,
85 | remove the _RTLDLL assignment to the SYSDEFINES variable, and change the RTL
86 | to the version without an "i" in the ALLLIB variable. For example,
87 | cw32mti.lib would become cw32mt.lib.
88 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/all_projects.bpg:
--------------------------------------------------------------------------------
1 | #------------------------------------------------------------------------------
2 | VERSION = BWS.01
3 | #------------------------------------------------------------------------------
4 | !ifndef ROOT
5 | ROOT = $(MAKEDIR)\..
6 | !endif
7 | #------------------------------------------------------------------------------
8 | MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
9 | DCC = $(ROOT)\bin\dcc32.exe $**
10 | BRCC = $(ROOT)\bin\brcc32.exe $**
11 | #------------------------------------------------------------------------------
12 | PROJECTS = setup libexpat_mtd.dll libexpats_mtd.lib libexpatw_mtd.dll \
13 | libexpatws_mtd.lib elements.exe outline.exe xmlwf.exe
14 | #------------------------------------------------------------------------------
15 | default: $(PROJECTS)
16 | #------------------------------------------------------------------------------
17 |
18 | libexpat_mtd.dll: expat.bpr
19 | $(ROOT)\bin\bpr2mak $**
20 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
21 |
22 | libexpats_mtd.lib: expat_static.bpr
23 | $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
24 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
25 |
26 | libexpatw_mtd.dll: expatw.bpr
27 | $(ROOT)\bin\bpr2mak $**
28 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
29 |
30 | libexpatws_mtd.lib: expatw_static.bpr
31 | $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
32 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
33 |
34 | elements.exe: elements.bpr
35 | $(ROOT)\bin\bpr2mak $**
36 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
37 |
38 | outline.exe: outline.bpr
39 | $(ROOT)\bin\bpr2mak $**
40 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
41 |
42 | xmlwf.exe: xmlwf.bpr
43 | $(ROOT)\bin\bpr2mak $**
44 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
45 |
46 | setup: setup.bat
47 | call $**
48 |
49 |
50 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/elements.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\examples\elements.c");
2 | USELIB("Release\libexpats_mtd.lib");
3 | //---------------------------------------------------------------------------
4 | main
5 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/elements.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | [Version Info]
49 | IncludeVerInfo=0
50 | AutoIncBuild=0
51 | MajorVer=1
52 | MinorVer=0
53 | Release=0
54 | Build=0
55 | Debug=0
56 | PreRelease=0
57 | Special=0
58 | Private=0
59 | DLL=0
60 | Locale=1033
61 | CodePage=1252
62 |
63 | [Version Info Keys]
64 | CompanyName=
65 | FileDescription=
66 | FileVersion=1.0.0.0
67 | InternalName=
68 | LegalCopyright=
69 | LegalTrademarks=
70 | OriginalFilename=
71 | ProductName=
72 | ProductVersion=1.0.0.0
73 | Comments=
74 |
75 | [HistoryLists\hlIncludePath]
76 | Count=4
77 | Item0=..\examples;$(BCB)\include
78 | Item1=$(BCB)\include
79 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
80 | Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
81 |
82 | [HistoryLists\hlLibraryPath]
83 | Count=8
84 | Item0=..\examples;$(BCB)\lib;$(RELEASELIBPATH)
85 | Item1=..\examples;$(BCB)\lib;..\examples\$(RELEASELIBPATH)
86 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
87 | Item3=$(BCB)\lib;$(RELEASELIBPATH);..\lib\Release-w_static
88 | Item4=$(BCB)\lib;$(RELEASELIBPATH);..\lib\Release_static
89 | Item5=$(BCB)\lib;$(RELEASELIBPATH);C:\src\expat\lib\Release_static
90 | Item6=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
91 | Item7=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
92 |
93 | [HistoryLists\hlDebugSourcePath]
94 | Count=1
95 | Item0=$(BCB)\source\vcl
96 |
97 | [HistoryLists\hlConditionals]
98 | Count=17
99 | Item0=WIN32;NDEBUG;_CONSOLE;XML_STATIC
100 | Item1=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_STATIC
101 | Item2=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE;XML_STATIC
102 | Item3=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
103 | Item4=WIN32;NDEBUG;_CONSOLE;_DEBUG
104 | Item5=WIN32;NDEBUG;_CONSOLE;XML_STATIC;_DEBUG
105 | Item6=WIN32;NDEBUG;_CONSOLE;XML_STATIC;_DEBUG;_UNICODE
106 | Item7=WIN32;NDEBUG;_CONSOLE;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T
107 | Item8=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T
108 | Item9=WIN32;NDEBUG;_CONSOLE;_UNICODE;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T
109 | Item10=WIN32;NDEBUG;_CONSOLE;_UNICODE;XML_STATIC;_DEBUG;XML_UNICODE
110 | Item11=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T;__WCHAR_T
111 | Item12=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
112 | Item13=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE;_UNICODE
113 | Item14=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE
114 | Item15=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG
115 | Item16=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC
116 |
117 | [HistoryLists\hlIntOutputDir]
118 | Count=5
119 | Item0=Release\obj\examples
120 | Item1=Release\obj\elements
121 | Item2=Release\obj\mts
122 | Item3=..\examples\Release
123 | Item4=Release
124 |
125 | [HistoryLists\hlFinalOutputDir]
126 | Count=1
127 | Item0=Release\
128 |
129 | [Debugging]
130 | DebugSourceDirs=
131 |
132 | [Parameters]
133 | RunParams=
134 | HostApplication=
135 | RemoteHost=
136 | RemotePath=
137 | RemoteDebug=0
138 |
139 | [Compiler]
140 | ShowInfoMsgs=0
141 | LinkDebugVcl=0
142 | LinkCGLIB=0
143 |
144 | [Language]
145 | ActiveLang=
146 | ProjectLang=
147 | RootDir=
148 |
149 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expat.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\lib\xmlparse.c");
2 | USEUNIT("..\lib\xmlrole.c");
3 | USEUNIT("..\lib\xmltok.c");
4 | USEDEF("libexpat_mtd.def");
5 | //---------------------------------------------------------------------------
6 | #define DllEntryPoint
7 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expat.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | [Version Info]
50 | IncludeVerInfo=0
51 | AutoIncBuild=0
52 | MajorVer=1
53 | MinorVer=0
54 | Release=0
55 | Build=0
56 | Debug=0
57 | PreRelease=0
58 | Special=0
59 | Private=0
60 | DLL=0
61 | Locale=1033
62 | CodePage=1252
63 |
64 | [Version Info Keys]
65 | CompanyName=
66 | FileDescription=
67 | FileVersion=1.0.0.0
68 | InternalName=
69 | LegalCopyright=
70 | LegalTrademarks=
71 | OriginalFilename=
72 | ProductName=
73 | ProductVersion=1.0.0.0
74 | Comments=
75 |
76 | [HistoryLists\hlIncludePath]
77 | Count=4
78 | Item0=..\lib;$(BCB)\include
79 | Item1=$(BCB)\include
80 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
81 | Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
82 |
83 | [HistoryLists\hlLibraryPath]
84 | Count=5
85 | Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
86 | Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
87 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
88 | Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
89 | Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
90 |
91 | [HistoryLists\hlDebugSourcePath]
92 | Count=1
93 | Item0=$(BCB)\source\vcl
94 |
95 | [HistoryLists\hlConditionals]
96 | Count=8
97 | Item0=_WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
98 | Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
99 | Item2=WIN32;_WINDOWS;NDEBUG;_DEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
100 | Item3=WIN32;_WINDOWS;NDEBUG;_DEBUG;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP
101 | Item4=NDEBUG;WIN32;_WINDOWS;_USRDLL;_DEBUG;EXPAT_EXPORTS;COMPILED_FROM_DSP
102 | Item5=NDEBUG;WIN32;_WINDOWS;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP;_DEBUG
103 | Item6=NDEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP;_DEBUG
104 | Item7=NDEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP
105 |
106 | [HistoryLists\hlIntOutputDir]
107 | Count=7
108 | Item0=Release\obj\libexpat
109 | Item1=Release\obj\libexpat_static
110 | Item2=Release\obj\mtd
111 | Item3=Release\obj\mt
112 | Item4=Release\obj
113 | Item5=Release
114 | Item6=..\lib\Release
115 |
116 | [HistoryLists\hlFinalOutputDir]
117 | Count=1
118 | Item0=Release\
119 |
120 | [Debugging]
121 | DebugSourceDirs=
122 |
123 | [Parameters]
124 | RunParams=
125 | HostApplication=
126 | RemoteHost=
127 | RemotePath=
128 | RemoteDebug=0
129 |
130 | [Compiler]
131 | ShowInfoMsgs=0
132 | LinkDebugVcl=0
133 | LinkCGLIB=0
134 |
135 | [Language]
136 | ActiveLang=
137 | ProjectLang=
138 | RootDir=
139 |
140 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expat_static.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\lib\xmlparse.c");
2 | USEUNIT("..\lib\xmlrole.c");
3 | USEUNIT("..\lib\xmltok.c");
4 | //---------------------------------------------------------------------------
5 | #define Library
6 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expat_static.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | [Version Info]
49 | IncludeVerInfo=0
50 | AutoIncBuild=0
51 | MajorVer=1
52 | MinorVer=0
53 | Release=0
54 | Build=0
55 | Debug=0
56 | PreRelease=0
57 | Special=0
58 | Private=0
59 | DLL=0
60 | Locale=1033
61 | CodePage=1252
62 |
63 | [Version Info Keys]
64 | CompanyName=
65 | FileDescription=
66 | FileVersion=1.0.0.0
67 | InternalName=
68 | LegalCopyright=
69 | LegalTrademarks=
70 | OriginalFilename=
71 | ProductName=
72 | ProductVersion=1.0.0.0
73 | Comments=
74 |
75 | [HistoryLists\hlIncludePath]
76 | Count=4
77 | Item0=..\lib;$(BCB)\include
78 | Item1=$(BCB)\include
79 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
80 | Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
81 |
82 | [HistoryLists\hlLibraryPath]
83 | Count=5
84 | Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
85 | Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
86 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
87 | Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
88 | Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
89 |
90 | [HistoryLists\hlDebugSourcePath]
91 | Count=1
92 | Item0=$(BCB)\source\vcl
93 |
94 | [HistoryLists\hlConditionals]
95 | Count=7
96 | Item0=_WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
97 | Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
98 | Item2=WIN32;_WINDOWS;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
99 | Item3=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP;_DEBUG
100 | Item4=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP
101 | Item5=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP;_MBCS
102 | Item6=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP
103 |
104 | [HistoryLists\hlIntOutputDir]
105 | Count=6
106 | Item0=Release\obj\libexpat_static
107 | Item1=Release\obj\mts
108 | Item2=Release\obj\mt
109 | Item3=Release
110 | Item4=..\lib\Release_static
111 | Item5=Release_static
112 |
113 | [HistoryLists\hlFinalOutputDir]
114 | Count=3
115 | Item0=Release\
116 | Item1=Release
117 | Item2=Release_static\
118 |
119 | [HistoryLists\hlTlibPageSize]
120 | Count=1
121 | Item0=0x0010
122 |
123 | [Debugging]
124 | DebugSourceDirs=
125 |
126 | [Parameters]
127 | RunParams=
128 | HostApplication=
129 | RemoteHost=
130 | RemotePath=
131 | RemoteDebug=0
132 |
133 | [Compiler]
134 | ShowInfoMsgs=0
135 | LinkDebugVcl=0
136 | LinkCGLIB=0
137 |
138 | [Language]
139 | ActiveLang=
140 | ProjectLang=
141 | RootDir=
142 |
143 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expatw.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\lib\xmlparse.c");
2 | USEUNIT("..\lib\xmlrole.c");
3 | USEUNIT("..\lib\xmltok.c");
4 | USEDEF("libexpatw_mtd.def");
5 | //---------------------------------------------------------------------------
6 | #define DllEntryPoint
7 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expatw.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | [Version Info]
50 | IncludeVerInfo=0
51 | AutoIncBuild=0
52 | MajorVer=1
53 | MinorVer=0
54 | Release=0
55 | Build=0
56 | Debug=0
57 | PreRelease=0
58 | Special=0
59 | Private=0
60 | DLL=0
61 | Locale=1033
62 | CodePage=1252
63 |
64 | [Version Info Keys]
65 | CompanyName=
66 | FileDescription=
67 | FileVersion=1.0.0.0
68 | InternalName=
69 | LegalCopyright=
70 | LegalTrademarks=
71 | OriginalFilename=
72 | ProductName=
73 | ProductVersion=1.0.0.0
74 | Comments=
75 |
76 | [HistoryLists\hlIncludePath]
77 | Count=4
78 | Item0=..\lib;$(BCB)\include
79 | Item1=$(BCB)\include
80 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
81 | Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
82 |
83 | [HistoryLists\hlLibraryPath]
84 | Count=5
85 | Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
86 | Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
87 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
88 | Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
89 | Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
90 |
91 | [HistoryLists\hlDebugSourcePath]
92 | Count=1
93 | Item0=$(BCB)\source\vcl
94 |
95 | [HistoryLists\hlConditionals]
96 | Count=9
97 | Item0=_WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
98 | Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
99 | Item2=_WINDOWS;WIN32;NDEBUG;_DEBUG;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T
100 | Item3=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_USRDLL;EXPAT_EXPORTS;_DEBUG;XML_UNICODE_WCHAR_T
101 | Item4=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T;_DEBUG
102 | Item5=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_UNICODE;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T;_DEBUG
103 | Item6=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_UNICODE;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
104 | Item7=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T;XML_UNICODE
105 | Item8=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
106 |
107 | [HistoryLists\hlIntOutputDir]
108 | Count=8
109 | Item0=Release\obj\libexpatw
110 | Item1=Release\obj\libexpat
111 | Item2=Release\obj\mtd
112 | Item3=Release\obj\mt
113 | Item4=Release_w\obj
114 | Item5=Release-w\obj
115 | Item6=Release-w
116 | Item7=..\lib\Release-w
117 |
118 | [HistoryLists\hlFinalOutputDir]
119 | Count=5
120 | Item0=Release\
121 | Item1=Release
122 | Item2=Release_w\
123 | Item3=Release-w\
124 | Item4=Release-w
125 |
126 | [Debugging]
127 | DebugSourceDirs=
128 |
129 | [Parameters]
130 | RunParams=
131 | HostApplication=
132 | RemoteHost=
133 | RemotePath=
134 | RemoteDebug=0
135 |
136 | [Compiler]
137 | ShowInfoMsgs=0
138 | LinkDebugVcl=0
139 | LinkCGLIB=0
140 |
141 | [Language]
142 | ActiveLang=
143 | ProjectLang=
144 | RootDir=
145 |
146 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expatw_static.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\lib\xmlparse.c");
2 | USEUNIT("..\lib\xmlrole.c");
3 | USEUNIT("..\lib\xmltok.c");
4 | //---------------------------------------------------------------------------
5 | #define Library
6 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/expatw_static.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | [Version Info]
50 | IncludeVerInfo=0
51 | AutoIncBuild=0
52 | MajorVer=1
53 | MinorVer=0
54 | Release=0
55 | Build=0
56 | Debug=0
57 | PreRelease=0
58 | Special=0
59 | Private=0
60 | DLL=0
61 | Locale=1033
62 | CodePage=1252
63 |
64 | [Version Info Keys]
65 | CompanyName=
66 | FileDescription=
67 | FileVersion=1.0.0.0
68 | InternalName=
69 | LegalCopyright=
70 | LegalTrademarks=
71 | OriginalFilename=
72 | ProductName=
73 | ProductVersion=1.0.0.0
74 | Comments=
75 |
76 | [HistoryLists\hlIncludePath]
77 | Count=4
78 | Item0=..\lib;$(BCB)\include
79 | Item1=$(BCB)\include
80 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
81 | Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
82 |
83 | [HistoryLists\hlLibraryPath]
84 | Count=5
85 | Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
86 | Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
87 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
88 | Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
89 | Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
90 |
91 | [HistoryLists\hlDebugSourcePath]
92 | Count=1
93 | Item0=$(BCB)\source\vcl
94 |
95 | [HistoryLists\hlConditionals]
96 | Count=15
97 | Item0=_WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
98 | Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
99 | Item2=WIN32;_WINDOWS;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
100 | Item3=WIN32;_WINDOWS;NDEBUG;_DEBUG;_LIB;XML_STATIC;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T
101 | Item4=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP;_DEBUG;XML_UNICODE_WCHAR_T
102 | Item5=WIN32;_WINDOWS;NDEBUG;_UNICODE;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG
103 | Item6=WIN32;_WINDOWS;NDEBUG;_UNICODE;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG;__cplusplus
104 | Item7=WIN32;_WINDOWS;NDEBUG;_UNICODE;_LIB;COMPILED_FROM_DSP;XML_UNICODE;_DEBUG
105 | Item8=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE;_DEBUG
106 | Item9=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG;__WCHAR_T
107 | Item10=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG;_UNICODE
108 | Item11=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE;_DEBUG;_UNICODE
109 | Item12=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG
110 | Item13=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T
111 | Item14=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;XML_UNICODE
112 |
113 | [HistoryLists\hlIntOutputDir]
114 | Count=6
115 | Item0=Release\obj\libexpatw_static
116 | Item1=Release\obj\libexpat_static
117 | Item2=Release\obj\mts
118 | Item3=Release\obj\mt
119 | Item4=..\lib\Release-w_static
120 | Item5=Release-w_static
121 |
122 | [HistoryLists\hlFinalOutputDir]
123 | Count=3
124 | Item0=Release\
125 | Item1=Release
126 | Item2=Release-w_static\
127 |
128 | [HistoryLists\hlTlibPageSize]
129 | Count=1
130 | Item0=0x0010
131 |
132 | [Debugging]
133 | DebugSourceDirs=
134 |
135 | [Parameters]
136 | RunParams=
137 | HostApplication=
138 | RemoteHost=
139 | RemotePath=
140 | RemoteDebug=0
141 |
142 | [Compiler]
143 | ShowInfoMsgs=0
144 | LinkDebugVcl=0
145 | LinkCGLIB=0
146 |
147 | [Language]
148 | ActiveLang=
149 | ProjectLang=
150 | RootDir=
151 |
152 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/makefile.mak:
--------------------------------------------------------------------------------
1 | all: setup expat expatw expat_static expatw_static elements outline xmlwf
2 |
3 | setup:
4 | setup
5 |
6 | expat:
7 | make -l -fexpat.mak
8 |
9 | expatw:
10 | make -l -fexpatw.mak
11 |
12 | expat_static:
13 | make -l -fexpat_static.mak
14 |
15 | expatw_static:
16 | make -l -fexpatw_static.mak
17 |
18 | elements:
19 | make -l -felements.mak
20 |
21 | outline:
22 | make -l -foutline.mak
23 |
24 | xmlwf:
25 | make -l -fxmlwf.mak
26 |
27 | clean:
28 | # works on Win98/ME
29 | # deltree /y release\obj
30 | # works on WinNT/2000
31 | del /s/f/q release\obj
32 |
33 | distclean:
34 | # works on Win98/ME
35 | # deltree /y release\*.*
36 | # works on WinNT/2000
37 | del /s/f/q release\*
38 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/outline.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\examples\outline.c");
2 | USELIB("Release\libexpat_mtd.lib");
3 | //---------------------------------------------------------------------------
4 | main
5 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/outline.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | [Version Info]
49 | IncludeVerInfo=0
50 | AutoIncBuild=0
51 | MajorVer=1
52 | MinorVer=0
53 | Release=0
54 | Build=0
55 | Debug=0
56 | PreRelease=0
57 | Special=0
58 | Private=0
59 | DLL=0
60 | Locale=1033
61 | CodePage=1252
62 |
63 | [Version Info Keys]
64 | CompanyName=
65 | FileDescription=
66 | FileVersion=1.0.0.0
67 | InternalName=
68 | LegalCopyright=
69 | LegalTrademarks=
70 | OriginalFilename=
71 | ProductName=
72 | ProductVersion=1.0.0.0
73 | Comments=
74 |
75 | [HistoryLists\hlIncludePath]
76 | Count=3
77 | Item0=..\examples;$(BCB)\include
78 | Item1=$(BCB)\include
79 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
80 |
81 | [HistoryLists\hlLibraryPath]
82 | Count=4
83 | Item0=..\examples;$(BCB)\lib;$(RELEASELIBPATH)
84 | Item1=..\examples;$(BCB)\lib;..\examples\$(RELEASELIBPATH)
85 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
86 | Item3=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
87 |
88 | [HistoryLists\hlDebugSourcePath]
89 | Count=1
90 | Item0=$(BCB)\source\vcl
91 |
92 | [HistoryLists\hlConditionals]
93 | Count=6
94 | Item0=WIN32;NDEBUG;_CONSOLE
95 | Item1=WIN32;NDEBUG;_CONSOLE;XML_STATIC
96 | Item2=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_STATIC
97 | Item3=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE;XML_STATIC
98 | Item4=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
99 | Item5=WIN32;NDEBUG;_CONSOLE;_DEBUG
100 |
101 | [HistoryLists\hlIntOutputDir]
102 | Count=4
103 | Item0=Release\obj\examples
104 | Item1=Release\obj\outline
105 | Item2=..\examples\Release
106 | Item3=Release
107 |
108 | [HistoryLists\hlFinalOutputDir]
109 | Count=1
110 | Item0=Release\
111 |
112 | [Debugging]
113 | DebugSourceDirs=
114 |
115 | [Parameters]
116 | RunParams=
117 | HostApplication=
118 | RemoteHost=
119 | RemotePath=
120 | RemoteDebug=0
121 |
122 | [Compiler]
123 | ShowInfoMsgs=0
124 | LinkDebugVcl=0
125 | LinkCGLIB=0
126 |
127 | [Language]
128 | ActiveLang=
129 | ProjectLang=
130 | RootDir=
131 |
132 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/setup.bat:
--------------------------------------------------------------------------------
1 | REM CommandInterpreter: $(COMSPEC)
2 | if not exist .\release\nul mkdir release
3 | if not exist .\release\obj\nul mkdir release\obj
4 | if not exist .\release\obj\libexpat\nul mkdir release\obj\libexpat
5 | if not exist .\release\obj\libexpatw\nul mkdir release\obj\libexpatw
6 | if not exist .\release\obj\libexpat_static\nul mkdir release\obj\libexpat_static
7 | if not exist .\release\obj\libexpatw_static\nul mkdir release\obj\libexpatw_static
8 | if not exist .\release\obj\examples\nul mkdir release\obj\examples
9 | if not exist .\release\obj\xmlwf\nul mkdir release\obj\xmlwf
10 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/xmlwf.bpf:
--------------------------------------------------------------------------------
1 | USEUNIT("..\xmlwf\codepage.c");
2 | USEUNIT("..\xmlwf\win32filemap.c");
3 | USEUNIT("..\xmlwf\xmlfile.c");
4 | USEUNIT("..\xmlwf\xmlwf.c");
5 | USELIB("Release\libexpat_mtd.lib");
6 | //---------------------------------------------------------------------------
7 | main
8 |
--------------------------------------------------------------------------------
/android/external/expat/bcb5/xmlwf.bpr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | [Version Info]
50 | IncludeVerInfo=0
51 | AutoIncBuild=0
52 | MajorVer=1
53 | MinorVer=0
54 | Release=0
55 | Build=0
56 | Debug=0
57 | PreRelease=0
58 | Special=0
59 | Private=0
60 | DLL=0
61 | Locale=1033
62 | CodePage=1252
63 |
64 | [Version Info Keys]
65 | CompanyName=
66 | FileDescription=
67 | FileVersion=1.0.0.0
68 | InternalName=
69 | LegalCopyright=
70 | LegalTrademarks=
71 | OriginalFilename=
72 | ProductName=
73 | ProductVersion=1.0.0.0
74 | Comments=
75 |
76 | [HistoryLists\hlIncludePath]
77 | Count=4
78 | Item0=..\xmlwf;$(BCB)\include
79 | Item1=$(BCB)\include
80 | Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
81 | Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
82 |
83 | [HistoryLists\hlLibraryPath]
84 | Count=5
85 | Item0=..\xmlwf;$(BCB)\lib;$(RELEASELIBPATH)
86 | Item1=..\xmlwf;$(BCB)\lib;..\xmlwf\$(RELEASELIBPATH)
87 | Item2=$(BCB)\lib;$(RELEASELIBPATH)
88 | Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
89 | Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
90 |
91 | [HistoryLists\hlDebugSourcePath]
92 | Count=1
93 | Item0=$(BCB)\source\vcl
94 |
95 | [HistoryLists\hlConditionals]
96 | Count=6
97 | Item0=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP
98 | Item1=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
99 | Item2=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;XML_UNICODE_WCHAR_T
100 | Item3=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG
101 | Item4=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;_UNICODE;XML_UNICODE_WCHAR_T
102 | Item5=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;_UNICODE
103 |
104 | [HistoryLists\hlIntOutputDir]
105 | Count=3
106 | Item0=Release\obj\xmlwf
107 | Item1=..\xmlwf\Release
108 | Item2=Release
109 |
110 | [HistoryLists\hlFinalOutputDir]
111 | Count=3
112 | Item0=Release\
113 | Item1=Release
114 | Item2=.\Release\
115 |
116 | [Debugging]
117 | DebugSourceDirs=
118 |
119 | [Parameters]
120 | RunParams=sample.xml
121 | HostApplication=
122 | RemoteHost=
123 | RemotePath=
124 | RemoteDebug=0
125 |
126 | [Compiler]
127 | ShowInfoMsgs=0
128 | LinkDebugVcl=0
129 | LinkCGLIB=0
130 |
131 | [Language]
132 | ActiveLang=
133 | ProjectLang=
134 | RootDir=
135 |
136 |
--------------------------------------------------------------------------------
/android/external/expat/conftools/PrintPath:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Look for program[s] somewhere in $PATH.
3 | #
4 | # Options:
5 | # -s
6 | # Do not print out full pathname. (silent)
7 | # -pPATHNAME
8 | # Look in PATHNAME instead of $PATH
9 | #
10 | # Usage:
11 | # PrintPath [-s] [-pPATHNAME] program [program ...]
12 | #
13 | # Initially written by Jim Jagielski for the Apache configuration mechanism
14 | # (with kudos to Kernighan/Pike)
15 | #
16 | # This script falls under the Apache License.
17 | # See http://www.apache.org/licenses/LICENSE
18 |
19 | ##
20 | # Some "constants"
21 | ##
22 | pathname=$PATH
23 | echo="yes"
24 |
25 | ##
26 | # Find out what OS we are running for later on
27 | ##
28 | os=`(uname) 2>/dev/null`
29 |
30 | ##
31 | # Parse command line
32 | ##
33 | for args in $*
34 | do
35 | case $args in
36 | -s ) echo="no" ;;
37 | -p* ) pathname="`echo $args | sed 's/^..//'`" ;;
38 | * ) programs="$programs $args" ;;
39 | esac
40 | done
41 |
42 | ##
43 | # Now we make the adjustments required for OS/2 and everyone
44 | # else :)
45 | #
46 | # First of all, all OS/2 programs have the '.exe' extension.
47 | # Next, we adjust PATH (or what was given to us as PATH) to
48 | # be whitespace separated directories.
49 | # Finally, we try to determine the best flag to use for
50 | # test/[] to look for an executable file. OS/2 just has '-r'
51 | # but with other OSs, we do some funny stuff to check to see
52 | # if test/[] knows about -x, which is the preferred flag.
53 | ##
54 |
55 | if [ "x$os" = "xOS/2" ]
56 | then
57 | ext=".exe"
58 | pathname=`echo -E $pathname |
59 | sed 's/^;/.;/
60 | s/;;/;.;/g
61 | s/;$/;./
62 | s/;/ /g
63 | s/\\\\/\\//g' `
64 | test_exec_flag="-r"
65 | else
66 | ext="" # No default extensions
67 | pathname=`echo $pathname |
68 | sed 's/^:/.:/
69 | s/::/:.:/g
70 | s/:$/:./
71 | s/:/ /g' `
72 | # Here is how we test to see if test/[] can handle -x
73 | testfile="pp.t.$$"
74 |
75 | cat > $testfile </dev/null`; then
84 | test_exec_flag="-x"
85 | else
86 | test_exec_flag="-r"
87 | fi
88 | rm -f $testfile
89 | fi
90 |
91 | for program in $programs
92 | do
93 | for path in $pathname
94 | do
95 | if [ $test_exec_flag $path/${program}${ext} ] && \
96 | [ ! -d $path/${program}${ext} ]; then
97 | if [ "x$echo" = "xyes" ]; then
98 | echo $path/${program}${ext}
99 | fi
100 | exit 0
101 | fi
102 |
103 | # Next try without extension (if one was used above)
104 | if [ "x$ext" != "x" ]; then
105 | if [ $test_exec_flag $path/${program} ] && \
106 | [ ! -d $path/${program} ]; then
107 | if [ "x$echo" = "xyes" ]; then
108 | echo $path/${program}
109 | fi
110 | exit 0
111 | fi
112 | fi
113 | done
114 | done
115 | exit 1
116 |
117 |
--------------------------------------------------------------------------------
/android/external/expat/conftools/ac_c_bigendian_cross.m4:
--------------------------------------------------------------------------------
1 | dnl @synopsis AC_C_BIGENDIAN_CROSS
2 | dnl
3 | dnl Check endianess even when crosscompiling
4 | dnl (partially based on the original AC_C_BIGENDIAN).
5 | dnl
6 | dnl The implementation will create a binary, and instead of running
7 | dnl the binary it will be grep'ed for some symbols that will look
8 | dnl different for different endianess of the binary.
9 | dnl
10 | dnl @version $Id: ac_c_bigendian_cross.m4,v 1.2 2001/10/01 20:03:13 fdrake Exp $
11 | dnl @author Guido Draheim
12 | dnl
13 | AC_DEFUN([AC_C_BIGENDIAN_CROSS],
14 | [AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian,
15 | [ac_cv_c_bigendian=unknown
16 | # See if sys/param.h defines the BYTE_ORDER macro.
17 | AC_TRY_COMPILE([#include
18 | #include ], [
19 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20 | bogus endian macros
21 | #endif], [# It does; now see whether it defined to BIG_ENDIAN or not.
22 | AC_TRY_COMPILE([#include
23 | #include ], [
24 | #if BYTE_ORDER != BIG_ENDIAN
25 | not big endian
26 | #endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)])
27 | if test $ac_cv_c_bigendian = unknown; then
28 | AC_TRY_RUN([main () {
29 | /* Are we little or big endian? From Harbison&Steele. */
30 | union
31 | {
32 | long l;
33 | char c[sizeof (long)];
34 | } u;
35 | u.l = 1;
36 | exit (u.c[sizeof (long) - 1] == 1);
37 | }], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes,
38 | [ echo $ac_n "cross-compiling... " 2>&AC_FD_MSG ])
39 | fi])
40 | if test $ac_cv_c_bigendian = unknown; then
41 | AC_MSG_CHECKING(to probe for byte ordering)
42 | [
43 | cat >conftest.c <&AC_FD_MSG
56 | ac_cv_c_bigendian=yes
57 | fi
58 | if test `grep -l LiTTleEnDian conftest.o` ; then
59 | echo $ac_n ' little endian probe OK, ' 1>&AC_FD_MSG
60 | if test $ac_cv_c_bigendian = yes ; then
61 | ac_cv_c_bigendian=unknown;
62 | else
63 | ac_cv_c_bigendian=no
64 | fi
65 | fi
66 | echo $ac_n 'guessing bigendian ... ' >&AC_FD_MSG
67 | fi
68 | fi
69 | AC_MSG_RESULT($ac_cv_c_bigendian)
70 | fi
71 | if test $ac_cv_c_bigendian = yes; then
72 | AC_DEFINE(WORDS_BIGENDIAN, 1, [whether byteorder is bigendian])
73 | BYTEORDER=4321
74 | else
75 | BYTEORDER=1234
76 | fi
77 | AC_DEFINE_UNQUOTED(BYTEORDER, $BYTEORDER, [1234 = LIL_ENDIAN, 4321 = BIGENDIAN])
78 | if test $ac_cv_c_bigendian = unknown; then
79 | AC_MSG_ERROR(unknown endianess - sorry, please pre-set ac_cv_c_bigendian)
80 | fi
81 | ])
82 |
--------------------------------------------------------------------------------
/android/external/expat/conftools/expat.m4:
--------------------------------------------------------------------------------
1 | dnl Check if --with-expat[=PREFIX] is specified and
2 | dnl Expat >= 1.95.0 is installed in the system.
3 | dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to
4 | dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX
5 | dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined.
6 | dnl If --with-expat has not been specified, set with_expat to 'no'.
7 | dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly.
8 | dnl This is necessary to adapt a whole lot of packages that have expat
9 | dnl bundled as a static library.
10 | AC_DEFUN([AM_WITH_EXPAT],
11 | [ AC_ARG_WITH(expat,
12 | [ --with-expat=PREFIX Use system Expat library],
13 | , with_expat=no)
14 |
15 | AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no)
16 |
17 | EXPAT_CFLAGS=
18 | EXPAT_LIBS=
19 | if test $with_expat != no; then
20 | if test $with_expat != yes; then
21 | EXPAT_CFLAGS="-I$with_expat/include"
22 | EXPAT_LIBS="-L$with_expat/lib"
23 | fi
24 | AC_CHECK_LIB(expat, XML_ParserCreate,
25 | [ EXPAT_LIBS="$EXPAT_LIBS -lexpat"
26 | expat_found=yes ],
27 | [ expat_found=no ],
28 | "$EXPAT_LIBS")
29 | if test $expat_found = no; then
30 | AC_MSG_ERROR([Could not find the Expat library])
31 | fi
32 | expat_save_CFLAGS="$CFLAGS"
33 | CFLAGS="$CFLAGS $EXPAT_CFLAGS"
34 | AC_CHECK_HEADERS(expat.h, , expat_found=no)
35 | if test $expat_found = no; then
36 | AC_MSG_ERROR([Could not find expat.h])
37 | fi
38 | CFLAGS="$expat_save_CFLAGS"
39 | fi
40 |
41 | AC_SUBST(EXPAT_CFLAGS)
42 | AC_SUBST(EXPAT_LIBS)
43 | ])
44 |
--------------------------------------------------------------------------------
/android/external/expat/conftools/get-version.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # USAGE: get-version.sh path/to/expat.h
4 | #
5 | # This script will print Expat's version number on stdout. For example:
6 | #
7 | # $ ./conftools/get-version.sh ./lib/expat.h
8 | # 1.95.3
9 | # $
10 | #
11 |
12 | if test $# = 0; then
13 | echo "ERROR: pathname for expat.h was not provided."
14 | echo ""
15 | echo "USAGE: $0 path/to/expat.h"
16 | exit 1
17 | fi
18 | if test $# != 1; then
19 | echo "ERROR: too many arguments were provided."
20 | echo ""
21 | echo "USAGE: $0 path/to/expat.h"
22 | exit 1
23 | fi
24 |
25 | hdr="$1"
26 | if test ! -r "$hdr"; then
27 | echo "ERROR: '$hdr' does not exist, or is not readable."
28 | exit 1
29 | fi
30 |
31 | MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`"
32 | MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`"
33 | MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`"
34 |
35 | # Determine how to tell echo not to print the trailing \n. This is
36 | # similar to Autoconf's @ECHO_C@ and @ECHO_N@; however, we don't
37 | # generate this file via autoconf (in fact, get-version.sh is used
38 | # to *create* ./configure), so we just do something similar inline.
39 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40 | *c*,-n*) ECHO_N= ECHO_C='
41 | ' ;;
42 | *c*,* ) ECHO_N=-n ECHO_C= ;;
43 | *) ECHO_N= ECHO_C='\c' ;;
44 | esac
45 |
46 | echo $ECHO_N "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$ECHO_C"
47 |
--------------------------------------------------------------------------------
/android/external/expat/conftools/mkinstalldirs:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # mkinstalldirs --- make directory hierarchy
3 | # Author: Noah Friedman
4 | # Created: 1993-05-16
5 | # Public domain
6 |
7 | # $Id: mkinstalldirs,v 1.1 2000/09/18 16:26:21 coopercc Exp $
8 |
9 | errstatus=0
10 |
11 | for file
12 | do
13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
14 | shift
15 |
16 | pathcomp=
17 | for d
18 | do
19 | pathcomp="$pathcomp$d"
20 | case "$pathcomp" in
21 | -* ) pathcomp=./$pathcomp ;;
22 | esac
23 |
24 | if test ! -d "$pathcomp"; then
25 | echo "mkdir $pathcomp"
26 |
27 | mkdir "$pathcomp" || lasterr=$?
28 |
29 | if test ! -d "$pathcomp"; then
30 | errstatus=$lasterr
31 | fi
32 | fi
33 |
34 | pathcomp="$pathcomp/"
35 | done
36 | done
37 |
38 | exit $errstatus
39 |
40 | # mkinstalldirs ends here
41 |
--------------------------------------------------------------------------------
/android/external/expat/doc/expat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfatbrowncat/avian-pack/43faa7764cbeef1d97e4483720f4975a7a90af84/android/external/expat/doc/expat.png
--------------------------------------------------------------------------------
/android/external/expat/doc/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: white;
3 | border: 0px;
4 | margin: 0px;
5 | padding: 0px;
6 | }
7 |
8 | .corner {
9 | width: 200px;
10 | height: 80px;
11 | text-align: center;
12 | }
13 |
14 | .banner {
15 | background-color: rgb(110,139,61);
16 | color: rgb(255,236,176);
17 | padding-left: 2em;
18 | }
19 |
20 | .banner h1 {
21 | font-size: 200%;
22 | }
23 |
24 | .content {
25 | padding: 0em 2em 1em 2em;
26 | }
27 |
28 | .releaseno {
29 | background-color: rgb(110,139,61);
30 | color: rgb(255,236,176);
31 | padding-bottom: 0.3em;
32 | padding-top: 0.5em;
33 | text-align: center;
34 | font-weight: bold;
35 | }
36 |
37 | .noborder {
38 | border-width: 0px;
39 | }
40 |
41 | .eg {
42 | padding-left: 1em;
43 | padding-top: .5em;
44 | padding-bottom: .5em;
45 | border: solid thin;
46 | margin: 1em 0;
47 | background-color: tan;
48 | margin-left: 2em;
49 | margin-right: 10%;
50 | }
51 |
52 | .pseudocode {
53 | padding-left: 1em;
54 | padding-top: .5em;
55 | padding-bottom: .5em;
56 | border: solid thin;
57 | margin: 1em 0;
58 | background-color: rgb(250,220,180);
59 | margin-left: 2em;
60 | margin-right: 10%;
61 | }
62 |
63 | .handler {
64 | width: 100%;
65 | border-top-width: thin;
66 | margin-bottom: 1em;
67 | }
68 |
69 | .handler p {
70 | margin-left: 2em;
71 | }
72 |
73 | .setter {
74 | font-weight: bold;
75 | }
76 |
77 | .signature {
78 | color: navy;
79 | }
80 |
81 | .fcndec {
82 | width: 100%;
83 | border-top-width: thin;
84 | font-weight: bold;
85 | }
86 |
87 | .fcndef {
88 | margin-left: 2em;
89 | margin-bottom: 2em;
90 | }
91 |
92 | dd {
93 | margin-bottom: 2em;
94 | }
95 |
96 | .cpp-symbols dt {
97 | font-family: monospace;
98 | }
99 | .cpp-symbols dd {
100 | margin-bottom: 1em;
101 | }
102 |
--------------------------------------------------------------------------------
/android/external/expat/doc/valid-xhtml10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfatbrowncat/avian-pack/43faa7764cbeef1d97e4483720f4975a7a90af84/android/external/expat/doc/valid-xhtml10.png
--------------------------------------------------------------------------------
/android/external/expat/examples/elements.c:
--------------------------------------------------------------------------------
1 | /* This is simple demonstration of how to use expat. This program
2 | reads an XML document from standard input and writes a line with
3 | the name of each element to standard output indenting child
4 | elements by one tab stop more than their parent element.
5 | It must be used with Expat compiled for UTF-8 output.
6 | */
7 |
8 | #include
9 | #include "expat.h"
10 |
11 | #if defined(__amigaos__) && defined(__USE_INLINE__)
12 | #include
13 | #endif
14 |
15 | #ifdef XML_LARGE_SIZE
16 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
17 | #define XML_FMT_INT_MOD "I64"
18 | #else
19 | #define XML_FMT_INT_MOD "ll"
20 | #endif
21 | #else
22 | #define XML_FMT_INT_MOD "l"
23 | #endif
24 |
25 | static void XMLCALL
26 | startElement(void *userData, const char *name, const char **atts)
27 | {
28 | int i;
29 | int *depthPtr = (int *)userData;
30 | for (i = 0; i < *depthPtr; i++)
31 | putchar('\t');
32 | puts(name);
33 | *depthPtr += 1;
34 | }
35 |
36 | static void XMLCALL
37 | endElement(void *userData, const char *name)
38 | {
39 | int *depthPtr = (int *)userData;
40 | *depthPtr -= 1;
41 | }
42 |
43 | int
44 | main(int argc, char *argv[])
45 | {
46 | char buf[BUFSIZ];
47 | XML_Parser parser = XML_ParserCreate(NULL);
48 | int done;
49 | int depth = 0;
50 | XML_SetUserData(parser, &depth);
51 | XML_SetElementHandler(parser, startElement, endElement);
52 | do {
53 | int len = (int)fread(buf, 1, sizeof(buf), stdin);
54 | done = len < sizeof(buf);
55 | if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
56 | fprintf(stderr,
57 | "%s at line %" XML_FMT_INT_MOD "u\n",
58 | XML_ErrorString(XML_GetErrorCode(parser)),
59 | XML_GetCurrentLineNumber(parser));
60 | return 1;
61 | }
62 | } while (!done);
63 | XML_ParserFree(parser);
64 | return 0;
65 | }
66 |
--------------------------------------------------------------------------------
/android/external/expat/examples/elements.dsp:
--------------------------------------------------------------------------------
1 | # Microsoft Developer Studio Project File - Name="elements" - Package Owner=<4>
2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00
3 | # ** DO NOT EDIT **
4 |
5 | # TARGTYPE "Win32 (x86) Console Application" 0x0103
6 |
7 | CFG=elements - Win32 Debug
8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 | !MESSAGE use the Export Makefile command and run
10 | !MESSAGE
11 | !MESSAGE NMAKE /f "elements.mak".
12 | !MESSAGE
13 | !MESSAGE You can specify a configuration when running NMAKE
14 | !MESSAGE by defining the macro CFG on the command line. For example:
15 | !MESSAGE
16 | !MESSAGE NMAKE /f "elements.mak" CFG="elements - Win32 Debug"
17 | !MESSAGE
18 | !MESSAGE Possible choices for configuration are:
19 | !MESSAGE
20 | !MESSAGE "elements - Win32 Release" (based on "Win32 (x86) Console Application")
21 | !MESSAGE "elements - Win32 Debug" (based on "Win32 (x86) Console Application")
22 | !MESSAGE
23 |
24 | # Begin Project
25 | # PROP AllowPerConfigDependencies 0
26 | # PROP Scc_ProjName ""
27 | # PROP Scc_LocalPath ""
28 | CPP=cl.exe
29 | RSC=rc.exe
30 |
31 | !IF "$(CFG)" == "elements - Win32 Release"
32 |
33 | # PROP BASE Use_MFC 0
34 | # PROP BASE Use_Debug_Libraries 0
35 | # PROP BASE Output_Dir "Release"
36 | # PROP BASE Intermediate_Dir "Release"
37 | # PROP BASE Target_Dir ""
38 | # PROP Use_MFC 0
39 | # PROP Use_Debug_Libraries 0
40 | # PROP Output_Dir "..\win32\bin\Release"
41 | # PROP Intermediate_Dir "..\win32\tmp\Release-elements"
42 | # PROP Ignore_Export_Lib 0
43 | # PROP Target_Dir ""
44 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
45 | # ADD CPP /nologo /MT /W3 /GX /O2 /I "..\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "XML_STATIC" /FD /c
46 | # SUBTRACT CPP /X /YX
47 | # ADD BASE RSC /l 0x409 /d "NDEBUG"
48 | # ADD RSC /l 0x409 /d "NDEBUG"
49 | BSC32=bscmake.exe
50 | # ADD BASE BSC32 /nologo
51 | # ADD BSC32 /nologo
52 | LINK32=link.exe
53 | # ADD BASE LINK32 /nologo /subsystem:console /machine:I386
54 | # ADD LINK32 libexpatMT.lib /nologo /subsystem:console /pdb:none /machine:I386 /libpath:"..\win32\bin\Release" /out:"..\win32\bin\Release\elements.exe"
55 |
56 | !ELSEIF "$(CFG)" == "elements - Win32 Debug"
57 |
58 | # PROP BASE Use_MFC 0
59 | # PROP BASE Use_Debug_Libraries 1
60 | # PROP BASE Output_Dir "Debug"
61 | # PROP BASE Intermediate_Dir "Debug"
62 | # PROP BASE Target_Dir ""
63 | # PROP Use_MFC 0
64 | # PROP Use_Debug_Libraries 1
65 | # PROP Output_Dir "..\win32\bin\Debug"
66 | # PROP Intermediate_Dir "..\win32\tmp\Debug-elements"
67 | # PROP Ignore_Export_Lib 0
68 | # PROP Target_Dir ""
69 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
70 | # ADD CPP /nologo /MTd /W3 /GX /ZI /Od /I "..\lib" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "XML_STATIC" /FR /FD /GZ /c
71 | # ADD BASE RSC /l 0x409 /d "_DEBUG"
72 | # ADD RSC /l 0x409 /d "_DEBUG"
73 | BSC32=bscmake.exe
74 | # ADD BASE BSC32 /nologo
75 | # ADD BSC32 /nologo
76 | LINK32=link.exe
77 | # ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
78 | # ADD LINK32 libexpatMT.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /libpath:"..\win32\bin\Debug" /out:"..\win32\bin\Debug\elements.exe"
79 |
80 | !ENDIF
81 |
82 | # Begin Target
83 |
84 | # Name "elements - Win32 Release"
85 | # Name "elements - Win32 Debug"
86 | # Begin Group "Source Files"
87 |
88 | # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
89 | # Begin Source File
90 |
91 | SOURCE=.\elements.c
92 | # End Source File
93 | # End Group
94 | # Begin Group "Header Files"
95 |
96 | # PROP Default_Filter "h;hpp;hxx;hm;inl"
97 | # End Group
98 | # Begin Group "Resource Files"
99 |
100 | # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
101 | # End Group
102 | # End Target
103 | # End Project
104 |
--------------------------------------------------------------------------------
/android/external/expat/examples/outline.c:
--------------------------------------------------------------------------------
1 | /*****************************************************************
2 | * outline.c
3 | *
4 | * Copyright 1999, Clark Cooper
5 | * All rights reserved.
6 | *
7 | * This program is free software; you can redistribute it and/or
8 | * modify it under the terms of the license contained in the
9 | * COPYING file that comes with the expat distribution.
10 | *
11 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
12 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
13 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
14 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
15 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
16 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
17 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 | *
19 | * Read an XML document from standard input and print an element
20 | * outline on standard output.
21 | * Must be used with Expat compiled for UTF-8 output.
22 | */
23 |
24 |
25 | #include
26 | #include
27 |
28 | #if defined(__amigaos__) && defined(__USE_INLINE__)
29 | #include
30 | #endif
31 |
32 | #ifdef XML_LARGE_SIZE
33 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
34 | #define XML_FMT_INT_MOD "I64"
35 | #else
36 | #define XML_FMT_INT_MOD "ll"
37 | #endif
38 | #else
39 | #define XML_FMT_INT_MOD "l"
40 | #endif
41 |
42 | #define BUFFSIZE 8192
43 |
44 | char Buff[BUFFSIZE];
45 |
46 | int Depth;
47 |
48 | static void XMLCALL
49 | start(void *data, const char *el, const char **attr)
50 | {
51 | int i;
52 |
53 | for (i = 0; i < Depth; i++)
54 | printf(" ");
55 |
56 | printf("%s", el);
57 |
58 | for (i = 0; attr[i]; i += 2) {
59 | printf(" %s='%s'", attr[i], attr[i + 1]);
60 | }
61 |
62 | printf("\n");
63 | Depth++;
64 | }
65 |
66 | static void XMLCALL
67 | end(void *data, const char *el)
68 | {
69 | Depth--;
70 | }
71 |
72 | int
73 | main(int argc, char *argv[])
74 | {
75 | XML_Parser p = XML_ParserCreate(NULL);
76 | if (! p) {
77 | fprintf(stderr, "Couldn't allocate memory for parser\n");
78 | exit(-1);
79 | }
80 |
81 | XML_SetElementHandler(p, start, end);
82 |
83 | for (;;) {
84 | int done;
85 | int len;
86 |
87 | len = (int)fread(Buff, 1, BUFFSIZE, stdin);
88 | if (ferror(stdin)) {
89 | fprintf(stderr, "Read error\n");
90 | exit(-1);
91 | }
92 | done = feof(stdin);
93 |
94 | if (XML_Parse(p, Buff, len, done) == XML_STATUS_ERROR) {
95 | fprintf(stderr, "Parse error at line %" XML_FMT_INT_MOD "u:\n%s\n",
96 | XML_GetCurrentLineNumber(p),
97 | XML_ErrorString(XML_GetErrorCode(p)));
98 | exit(-1);
99 | }
100 |
101 | if (done)
102 | break;
103 | }
104 | XML_ParserFree(p);
105 | return 0;
106 | }
107 |
--------------------------------------------------------------------------------
/android/external/expat/examples/outline.dsp:
--------------------------------------------------------------------------------
1 | # Microsoft Developer Studio Project File - Name="outline" - Package Owner=<4>
2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00
3 | # ** DO NOT EDIT **
4 |
5 | # TARGTYPE "Win32 (x86) Console Application" 0x0103
6 |
7 | CFG=outline - Win32 Debug
8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 | !MESSAGE use the Export Makefile command and run
10 | !MESSAGE
11 | !MESSAGE NMAKE /f "outline.mak".
12 | !MESSAGE
13 | !MESSAGE You can specify a configuration when running NMAKE
14 | !MESSAGE by defining the macro CFG on the command line. For example:
15 | !MESSAGE
16 | !MESSAGE NMAKE /f "outline.mak" CFG="outline - Win32 Debug"
17 | !MESSAGE
18 | !MESSAGE Possible choices for configuration are:
19 | !MESSAGE
20 | !MESSAGE "outline - Win32 Release" (based on "Win32 (x86) Console Application")
21 | !MESSAGE "outline - Win32 Debug" (based on "Win32 (x86) Console Application")
22 | !MESSAGE
23 |
24 | # Begin Project
25 | # PROP AllowPerConfigDependencies 0
26 | # PROP Scc_ProjName ""
27 | # PROP Scc_LocalPath ""
28 | CPP=cl.exe
29 | RSC=rc.exe
30 |
31 | !IF "$(CFG)" == "outline - Win32 Release"
32 |
33 | # PROP BASE Use_MFC 0
34 | # PROP BASE Use_Debug_Libraries 0
35 | # PROP BASE Output_Dir "Release"
36 | # PROP BASE Intermediate_Dir "Release"
37 | # PROP BASE Target_Dir ""
38 | # PROP Use_MFC 0
39 | # PROP Use_Debug_Libraries 0
40 | # PROP Output_Dir "..\win32\bin\Release"
41 | # PROP Intermediate_Dir "..\win32\tmp\Release-outline"
42 | # PROP Ignore_Export_Lib 0
43 | # PROP Target_Dir ""
44 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
45 | # ADD CPP /nologo /MT /W3 /GX /O2 /I "..\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
46 | # SUBTRACT CPP /X /YX
47 | # ADD BASE RSC /l 0x409 /d "NDEBUG"
48 | # ADD RSC /l 0x409 /d "NDEBUG"
49 | BSC32=bscmake.exe
50 | # ADD BASE BSC32 /nologo
51 | # ADD BSC32 /nologo
52 | LINK32=link.exe
53 | # ADD BASE LINK32 /nologo /subsystem:console /machine:I386
54 | # ADD LINK32 libexpat.lib /nologo /subsystem:console /pdb:none /machine:I386 /libpath:"..\win32\bin\Release" /out:"..\win32\bin\Release\outline.exe"
55 |
56 | !ELSEIF "$(CFG)" == "outline - Win32 Debug"
57 |
58 | # PROP BASE Use_MFC 0
59 | # PROP BASE Use_Debug_Libraries 1
60 | # PROP BASE Output_Dir "Debug"
61 | # PROP BASE Intermediate_Dir "Debug"
62 | # PROP BASE Target_Dir ""
63 | # PROP Use_MFC 0
64 | # PROP Use_Debug_Libraries 1
65 | # PROP Output_Dir "..\win32\bin\Debug"
66 | # PROP Intermediate_Dir "..\win32\tmp\Debug-outline"
67 | # PROP Ignore_Export_Lib 0
68 | # PROP Target_Dir ""
69 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
70 | # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\lib" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
71 | # ADD BASE RSC /l 0x409 /d "_DEBUG"
72 | # ADD RSC /l 0x409 /d "_DEBUG"
73 | BSC32=bscmake.exe
74 | # ADD BASE BSC32 /nologo
75 | # ADD BSC32 /nologo
76 | LINK32=link.exe
77 | # ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
78 | # ADD LINK32 libexpat.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /libpath:"..\win32\bin\Debug" /out:"..\win32\bin\Debug\outline.exe"
79 |
80 | !ENDIF
81 |
82 | # Begin Target
83 |
84 | # Name "outline - Win32 Release"
85 | # Name "outline - Win32 Debug"
86 | # Begin Group "Source Files"
87 |
88 | # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
89 | # Begin Source File
90 |
91 | SOURCE=.\outline.c
92 | # End Source File
93 | # End Group
94 | # Begin Group "Header Files"
95 |
96 | # PROP Default_Filter "h;hpp;hxx;hm;inl"
97 | # End Group
98 | # Begin Group "Resource Files"
99 |
100 | # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
101 | # End Group
102 | # End Target
103 | # End Project
104 |
--------------------------------------------------------------------------------
/android/external/expat/expat.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "elements"=.\examples\elements.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | Begin Project Dependency
15 | Project_Dep_Name expat_static
16 | End Project Dependency
17 | }}}
18 |
19 | ###############################################################################
20 |
21 | Project: "expat"=.\lib\expat.dsp - Package Owner=<4>
22 |
23 | Package=<5>
24 | {{{
25 | }}}
26 |
27 | Package=<4>
28 | {{{
29 | }}}
30 |
31 | ###############################################################################
32 |
33 | Project: "expat_static"=.\lib\expat_static.dsp - Package Owner=<4>
34 |
35 | Package=<5>
36 | {{{
37 | }}}
38 |
39 | Package=<4>
40 | {{{
41 | }}}
42 |
43 | ###############################################################################
44 |
45 | Project: "expatw"=.\lib\expatw.dsp - Package Owner=<4>
46 |
47 | Package=<5>
48 | {{{
49 | }}}
50 |
51 | Package=<4>
52 | {{{
53 | }}}
54 |
55 | ###############################################################################
56 |
57 | Project: "expatw_static"=.\lib\expatw_static.dsp - Package Owner=<4>
58 |
59 | Package=<5>
60 | {{{
61 | }}}
62 |
63 | Package=<4>
64 | {{{
65 | }}}
66 |
67 | ###############################################################################
68 |
69 | Project: "outline"=.\examples\outline.dsp - Package Owner=<4>
70 |
71 | Package=<5>
72 | {{{
73 | }}}
74 |
75 | Package=<4>
76 | {{{
77 | Begin Project Dependency
78 | Project_Dep_Name expat
79 | End Project Dependency
80 | }}}
81 |
82 | ###############################################################################
83 |
84 | Project: "xmlwf"=.\xmlwf\xmlwf.dsp - Package Owner=<4>
85 |
86 | Package=<5>
87 | {{{
88 | }}}
89 |
90 | Package=<4>
91 | {{{
92 | Begin Project Dependency
93 | Project_Dep_Name expat
94 | End Project Dependency
95 | }}}
96 |
97 | ###############################################################################
98 |
99 | Global:
100 |
101 | Package=<5>
102 | {{{
103 | }}}
104 |
105 | Package=<3>
106 | {{{
107 | }}}
108 |
109 | ###############################################################################
110 |
111 |
--------------------------------------------------------------------------------
/android/external/expat/expat.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@
5 |
6 | Name: expat
7 | Version: @PACKAGE_VERSION@
8 | Description: expat XML parser
9 | URL: http://www.libexpat.org
10 | Libs: -L${libdir} -lexpat
11 | Cflags: -I${includedir}
12 |
--------------------------------------------------------------------------------
/android/external/expat/expat_config.h.cmake:
--------------------------------------------------------------------------------
1 | /* expat_config.h.in. Generated from configure.in by autoheader. */
2 |
3 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
4 | #cmakedefine BYTEORDER @BYTEORDER@
5 |
6 | /* Define to 1 if you have the `bcopy' function. */
7 | #cmakedefine HAVE_BCOPY
8 |
9 | /* Define to 1 if you have the header file. */
10 | #cmakedefine HAVE_DLFCN_H
11 |
12 | /* Define to 1 if you have the header file. */
13 | #cmakedefine HAVE_FCNTL_H
14 |
15 | /* Define to 1 if you have the `getpagesize' function. */
16 | #cmakedefine HAVE_GETPAGESIZE
17 |
18 | /* Define to 1 if you have the header file. */
19 | #cmakedefine HAVE_INTTYPES_H
20 |
21 | /* Define to 1 if you have the `memmove' function. */
22 | #cmakedefine HAVE_MEMMOVE
23 |
24 | /* Define to 1 if you have the header file. */
25 | #cmakedefine HAVE_MEMORY_H
26 |
27 | /* Define to 1 if you have a working `mmap' system call. */
28 | #cmakedefine HAVE_MMAP
29 |
30 | /* Define to 1 if you have the header file. */
31 | #cmakedefine HAVE_STDINT_H
32 |
33 | /* Define to 1 if you have the header file. */
34 | #cmakedefine HAVE_STDLIB_H
35 |
36 | /* Define to 1 if you have the header file. */
37 | #cmakedefine HAVE_STRINGS_H
38 |
39 | /* Define to 1 if you have the header file. */
40 | #cmakedefine HAVE_STRING_H
41 |
42 | /* Define to 1 if you have the header file. */
43 | #cmakedefine HAVE_SYS_STAT_H
44 |
45 | /* Define to 1 if you have the header file. */
46 | #cmakedefine HAVE_SYS_TYPES_H
47 |
48 | /* Define to 1 if you have the header file. */
49 | #cmakedefine HAVE_UNISTD_H
50 |
51 | /* Define to the address where bug reports for this package should be sent. */
52 | #cmakedefine PACKAGE_BUGREPORT
53 |
54 | /* Define to the full name of this package. */
55 | #cmakedefine PACKAGE_NAME
56 |
57 | /* Define to the full name and version of this package. */
58 | #cmakedefine PACKAGE_STRING
59 |
60 | /* Define to the one symbol short name of this package. */
61 | #cmakedefine PACKAGE_TARNAME
62 |
63 | /* Define to the version of this package. */
64 | #cmakedefine PACKAGE_VERSION
65 |
66 | /* Define to 1 if you have the ANSI C header files. */
67 | #cmakedefine STDC_HEADERS
68 |
69 | /* whether byteorder is bigendian */
70 | #cmakedefine WORDS_BIGENDIAN
71 |
72 | /* Define to specify how much context to retain around the current parse
73 | point. */
74 | #cmakedefine XML_CONTEXT_BYTES @XML_CONTEXT_BYTES@
75 |
76 | /* Define to make parameter entity parsing functionality available. */
77 | #cmakedefine XML_DTD
78 |
79 | /* Define to make XML Namespaces functionality available. */
80 | #cmakedefine XML_NS
81 |
82 | /* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
83 | #ifdef _MSC_VER
84 | # define __func__ __FUNCTION__
85 | #endif
86 |
87 | /* Define to `long' if does not define. */
88 | #cmakedefine off_t @OFF_T@
89 |
90 | /* Define to `unsigned' if does not define. */
91 | #cmakedefine size_t @SIZE_T@
92 |
--------------------------------------------------------------------------------
/android/external/expat/expat_config.h.in:
--------------------------------------------------------------------------------
1 | /* expat_config.h.in. Generated from configure.in by autoheader. */
2 |
3 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
4 | #undef BYTEORDER
5 |
6 | /* Define to 1 if you have the `bcopy' function. */
7 | #undef HAVE_BCOPY
8 |
9 | /* Define to 1 if you have the header file. */
10 | #undef HAVE_DLFCN_H
11 |
12 | /* Define to 1 if you have the header file. */
13 | #undef HAVE_FCNTL_H
14 |
15 | /* Define to 1 if you have the `getpagesize' function. */
16 | #undef HAVE_GETPAGESIZE
17 |
18 | /* Define to 1 if you have the header file. */
19 | #undef HAVE_INTTYPES_H
20 |
21 | /* Define to 1 if you have the `memmove' function. */
22 | #undef HAVE_MEMMOVE
23 |
24 | /* Define to 1 if you have the header file. */
25 | #undef HAVE_MEMORY_H
26 |
27 | /* Define to 1 if you have a working `mmap' system call. */
28 | #undef HAVE_MMAP
29 |
30 | /* Define to 1 if you have the header file. */
31 | #undef HAVE_STDINT_H
32 |
33 | /* Define to 1 if you have the header file. */
34 | #undef HAVE_STDLIB_H
35 |
36 | /* Define to 1 if you have the header file. */
37 | #undef HAVE_STRINGS_H
38 |
39 | /* Define to 1 if you have the header file. */
40 | #undef HAVE_STRING_H
41 |
42 | /* Define to 1 if you have the header file. */
43 | #undef HAVE_SYS_PARAM_H
44 |
45 | /* Define to 1 if you have the header file. */
46 | #undef HAVE_SYS_STAT_H
47 |
48 | /* Define to 1 if you have the header file. */
49 | #undef HAVE_SYS_TYPES_H
50 |
51 | /* Define to 1 if you have the header file. */
52 | #undef HAVE_UNISTD_H
53 |
54 | /* Define to the sub-directory in which libtool stores uninstalled libraries.
55 | */
56 | #undef LT_OBJDIR
57 |
58 | /* Define to the address where bug reports for this package should be sent. */
59 | #undef PACKAGE_BUGREPORT
60 |
61 | /* Define to the full name of this package. */
62 | #undef PACKAGE_NAME
63 |
64 | /* Define to the full name and version of this package. */
65 | #undef PACKAGE_STRING
66 |
67 | /* Define to the one symbol short name of this package. */
68 | #undef PACKAGE_TARNAME
69 |
70 | /* Define to the home page for this package. */
71 | #undef PACKAGE_URL
72 |
73 | /* Define to the version of this package. */
74 | #undef PACKAGE_VERSION
75 |
76 | /* Define to 1 if you have the ANSI C header files. */
77 | #undef STDC_HEADERS
78 |
79 | /* whether byteorder is bigendian */
80 | #undef WORDS_BIGENDIAN
81 |
82 | /* Define to specify how much context to retain around the current parse
83 | point. */
84 | #undef XML_CONTEXT_BYTES
85 |
86 | /* Define to make parameter entity parsing functionality available. */
87 | #undef XML_DTD
88 |
89 | /* Define to make XML Namespaces functionality available. */
90 | #undef XML_NS
91 |
92 | /* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
93 | #undef __func__
94 |
95 | /* Define to empty if `const' does not conform to ANSI C. */
96 | #undef const
97 |
98 | /* Define to `long int' if does not define. */
99 | #undef off_t
100 |
101 | /* Define to `unsigned int' if does not define. */
102 | #undef size_t
103 |
--------------------------------------------------------------------------------
/android/external/expat/lib/Makefile.MPW:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfatbrowncat/avian-pack/43faa7764cbeef1d97e4483720f4975a7a90af84/android/external/expat/lib/Makefile.MPW
--------------------------------------------------------------------------------
/android/external/expat/lib/amigaconfig.h:
--------------------------------------------------------------------------------
1 | #ifndef AMIGACONFIG_H
2 | #define AMIGACONFIG_H
3 |
4 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
5 | #define BYTEORDER 4321
6 |
7 | /* Define to 1 if you have the `bcopy' function. */
8 | #define HAVE_BCOPY 1
9 |
10 | /* Define to 1 if you have the header file. */
11 | #undef HAVE_CHECK_H
12 |
13 | /* Define to 1 if you have the `memmove' function. */
14 | #define HAVE_MEMMOVE 1
15 |
16 | /* Define to 1 if you have the header file. */
17 | #define HAVE_UNISTD_H 1
18 |
19 | /* whether byteorder is bigendian */
20 | #define WORDS_BIGENDIAN
21 |
22 | /* Define to specify how much context to retain around the current parse
23 | point. */
24 | #define XML_CONTEXT_BYTES 1024
25 |
26 | /* Define to make parameter entity parsing functionality available. */
27 | #define XML_DTD
28 |
29 | /* Define to make XML Namespaces functionality available. */
30 | #define XML_NS
31 |
32 | #endif /* AMIGACONFIG_H */
33 |
--------------------------------------------------------------------------------
/android/external/expat/lib/ascii.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #define ASCII_A 0x41
6 | #define ASCII_B 0x42
7 | #define ASCII_C 0x43
8 | #define ASCII_D 0x44
9 | #define ASCII_E 0x45
10 | #define ASCII_F 0x46
11 | #define ASCII_G 0x47
12 | #define ASCII_H 0x48
13 | #define ASCII_I 0x49
14 | #define ASCII_J 0x4A
15 | #define ASCII_K 0x4B
16 | #define ASCII_L 0x4C
17 | #define ASCII_M 0x4D
18 | #define ASCII_N 0x4E
19 | #define ASCII_O 0x4F
20 | #define ASCII_P 0x50
21 | #define ASCII_Q 0x51
22 | #define ASCII_R 0x52
23 | #define ASCII_S 0x53
24 | #define ASCII_T 0x54
25 | #define ASCII_U 0x55
26 | #define ASCII_V 0x56
27 | #define ASCII_W 0x57
28 | #define ASCII_X 0x58
29 | #define ASCII_Y 0x59
30 | #define ASCII_Z 0x5A
31 |
32 | #define ASCII_a 0x61
33 | #define ASCII_b 0x62
34 | #define ASCII_c 0x63
35 | #define ASCII_d 0x64
36 | #define ASCII_e 0x65
37 | #define ASCII_f 0x66
38 | #define ASCII_g 0x67
39 | #define ASCII_h 0x68
40 | #define ASCII_i 0x69
41 | #define ASCII_j 0x6A
42 | #define ASCII_k 0x6B
43 | #define ASCII_l 0x6C
44 | #define ASCII_m 0x6D
45 | #define ASCII_n 0x6E
46 | #define ASCII_o 0x6F
47 | #define ASCII_p 0x70
48 | #define ASCII_q 0x71
49 | #define ASCII_r 0x72
50 | #define ASCII_s 0x73
51 | #define ASCII_t 0x74
52 | #define ASCII_u 0x75
53 | #define ASCII_v 0x76
54 | #define ASCII_w 0x77
55 | #define ASCII_x 0x78
56 | #define ASCII_y 0x79
57 | #define ASCII_z 0x7A
58 |
59 | #define ASCII_0 0x30
60 | #define ASCII_1 0x31
61 | #define ASCII_2 0x32
62 | #define ASCII_3 0x33
63 | #define ASCII_4 0x34
64 | #define ASCII_5 0x35
65 | #define ASCII_6 0x36
66 | #define ASCII_7 0x37
67 | #define ASCII_8 0x38
68 | #define ASCII_9 0x39
69 |
70 | #define ASCII_TAB 0x09
71 | #define ASCII_SPACE 0x20
72 | #define ASCII_EXCL 0x21
73 | #define ASCII_QUOT 0x22
74 | #define ASCII_AMP 0x26
75 | #define ASCII_APOS 0x27
76 | #define ASCII_MINUS 0x2D
77 | #define ASCII_PERIOD 0x2E
78 | #define ASCII_COLON 0x3A
79 | #define ASCII_SEMI 0x3B
80 | #define ASCII_LT 0x3C
81 | #define ASCII_EQUALS 0x3D
82 | #define ASCII_GT 0x3E
83 | #define ASCII_LSQB 0x5B
84 | #define ASCII_RSQB 0x5D
85 | #define ASCII_UNDERSCORE 0x5F
86 | #define ASCII_LPAREN 0x28
87 | #define ASCII_RPAREN 0x29
88 | #define ASCII_FF 0x0C
89 | #define ASCII_SLASH 0x2F
90 | #define ASCII_HASH 0x23
91 | #define ASCII_PIPE 0x7C
92 | #define ASCII_COMMA 0x2C
93 |
--------------------------------------------------------------------------------
/android/external/expat/lib/asciitab.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | /* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
6 | /* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
7 | /* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML,
8 | /* 0x0C */ BT_NONXML, BT_CR, BT_NONXML, BT_NONXML,
9 | /* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
10 | /* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
11 | /* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
12 | /* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
13 | /* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM,
14 | /* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS,
15 | /* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS,
16 | /* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL,
17 | /* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT,
18 | /* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT,
19 | /* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI,
20 | /* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST,
21 | /* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX,
22 | /* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT,
23 | /* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
24 | /* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
25 | /* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
26 | /* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
27 | /* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB,
28 | /* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT,
29 | /* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX,
30 | /* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT,
31 | /* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
32 | /* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
33 | /* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
34 | /* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
35 | /* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER,
36 | /* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER,
37 |
--------------------------------------------------------------------------------
/android/external/expat/lib/expat_external.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #ifndef Expat_External_INCLUDED
6 | #define Expat_External_INCLUDED 1
7 |
8 | /* External API definitions */
9 |
10 | #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
11 | #define XML_USE_MSC_EXTENSIONS 1
12 | #endif
13 |
14 | /* Expat tries very hard to make the API boundary very specifically
15 | defined. There are two macros defined to control this boundary;
16 | each of these can be defined before including this header to
17 | achieve some different behavior, but doing so it not recommended or
18 | tested frequently.
19 |
20 | XMLCALL - The calling convention to use for all calls across the
21 | "library boundary." This will default to cdecl, and
22 | try really hard to tell the compiler that's what we
23 | want.
24 |
25 | XMLIMPORT - Whatever magic is needed to note that a function is
26 | to be imported from a dynamically loaded library
27 | (.dll, .so, or .sl, depending on your platform).
28 |
29 | The XMLCALL macro was added in Expat 1.95.7. The only one which is
30 | expected to be directly useful in client code is XMLCALL.
31 |
32 | Note that on at least some Unix versions, the Expat library must be
33 | compiled with the cdecl calling convention as the default since
34 | system headers may assume the cdecl convention.
35 | */
36 | #ifndef XMLCALL
37 | #if defined(_MSC_VER)
38 | #define XMLCALL __cdecl
39 | #elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER)
40 | #define XMLCALL __attribute__((cdecl))
41 | #else
42 | /* For any platform which uses this definition and supports more than
43 | one calling convention, we need to extend this definition to
44 | declare the convention used on that platform, if it's possible to
45 | do so.
46 |
47 | If this is the case for your platform, please file a bug report
48 | with information on how to identify your platform via the C
49 | pre-processor and how to specify the same calling convention as the
50 | platform's malloc() implementation.
51 | */
52 | #define XMLCALL
53 | #endif
54 | #endif /* not defined XMLCALL */
55 |
56 |
57 | #if !defined(XML_STATIC) && !defined(XMLIMPORT)
58 | #ifndef XML_BUILDING_EXPAT
59 | /* using Expat from an application */
60 |
61 | #ifdef XML_USE_MSC_EXTENSIONS
62 | #define XMLIMPORT __declspec(dllimport)
63 | #endif
64 |
65 | #endif
66 | #endif /* not defined XML_STATIC */
67 |
68 |
69 | /* If we didn't define it above, define it away: */
70 | #ifndef XMLIMPORT
71 | #define XMLIMPORT
72 | #endif
73 |
74 |
75 | #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
76 |
77 | #ifdef __cplusplus
78 | extern "C" {
79 | #endif
80 |
81 | #ifdef XML_UNICODE_WCHAR_T
82 | #define XML_UNICODE
83 | #endif
84 |
85 | #ifdef XML_UNICODE /* Information is UTF-16 encoded. */
86 | #ifdef XML_UNICODE_WCHAR_T
87 | typedef wchar_t XML_Char;
88 | typedef wchar_t XML_LChar;
89 | #else
90 | typedef unsigned short XML_Char;
91 | typedef char XML_LChar;
92 | #endif /* XML_UNICODE_WCHAR_T */
93 | #else /* Information is UTF-8 encoded. */
94 | typedef char XML_Char;
95 | typedef char XML_LChar;
96 | #endif /* XML_UNICODE */
97 |
98 | #ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
99 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
100 | typedef __int64 XML_Index;
101 | typedef unsigned __int64 XML_Size;
102 | #else
103 | typedef long long XML_Index;
104 | typedef unsigned long long XML_Size;
105 | #endif
106 | #else
107 | typedef long XML_Index;
108 | typedef unsigned long XML_Size;
109 | #endif /* XML_LARGE_SIZE */
110 |
111 | #ifdef __cplusplus
112 | }
113 | #endif
114 |
115 | #endif /* not Expat_External_INCLUDED */
116 |
--------------------------------------------------------------------------------
/android/external/expat/lib/expat_static.dsp:
--------------------------------------------------------------------------------
1 | # Microsoft Developer Studio Project File - Name="expat_static" - Package Owner=<4>
2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00
3 | # ** DO NOT EDIT **
4 |
5 | # TARGTYPE "Win32 (x86) Static Library" 0x0104
6 |
7 | CFG=expat_static - Win32 Debug
8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 | !MESSAGE use the Export Makefile command and run
10 | !MESSAGE
11 | !MESSAGE NMAKE /f "expat_static.mak".
12 | !MESSAGE
13 | !MESSAGE You can specify a configuration when running NMAKE
14 | !MESSAGE by defining the macro CFG on the command line. For example:
15 | !MESSAGE
16 | !MESSAGE NMAKE /f "expat_static.mak" CFG="expat_static - Win32 Debug"
17 | !MESSAGE
18 | !MESSAGE Possible choices for configuration are:
19 | !MESSAGE
20 | !MESSAGE "expat_static - Win32 Release" (based on "Win32 (x86) Static Library")
21 | !MESSAGE "expat_static - Win32 Debug" (based on "Win32 (x86) Static Library")
22 | !MESSAGE
23 |
24 | # Begin Project
25 | # PROP AllowPerConfigDependencies 0
26 | # PROP Scc_ProjName ""
27 | # PROP Scc_LocalPath ""
28 | CPP=cl.exe
29 | RSC=rc.exe
30 |
31 | !IF "$(CFG)" == "expat_static - Win32 Release"
32 |
33 | # PROP BASE Use_MFC 0
34 | # PROP BASE Use_Debug_Libraries 0
35 | # PROP BASE Output_Dir "expat_static___Win32_Release"
36 | # PROP BASE Intermediate_Dir "expat_static___Win32_Release"
37 | # PROP BASE Target_Dir ""
38 | # PROP Use_MFC 0
39 | # PROP Use_Debug_Libraries 0
40 | # PROP Output_Dir "..\win32\bin\Release"
41 | # PROP Intermediate_Dir "..\win32\tmp\Release_static"
42 | # PROP Target_Dir ""
43 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
44 | # ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "COMPILED_FROM_DSP" /FD /c
45 | # SUBTRACT CPP /YX
46 | # ADD BASE RSC /l 0x1009 /d "NDEBUG"
47 | # ADD RSC /l 0x409 /d "NDEBUG"
48 | BSC32=bscmake.exe
49 | # ADD BASE BSC32 /nologo
50 | # ADD BSC32 /nologo
51 | LIB32=link.exe -lib
52 | # ADD BASE LIB32 /nologo
53 | # ADD LIB32 /nologo /out:"..\win32\bin\Release\libexpatMT.lib"
54 |
55 | !ELSEIF "$(CFG)" == "expat_static - Win32 Debug"
56 |
57 | # PROP BASE Use_MFC 0
58 | # PROP BASE Use_Debug_Libraries 1
59 | # PROP BASE Output_Dir "expat_static___Win32_Debug"
60 | # PROP BASE Intermediate_Dir "expat_static___Win32_Debug"
61 | # PROP BASE Target_Dir ""
62 | # PROP Use_MFC 0
63 | # PROP Use_Debug_Libraries 1
64 | # PROP Output_Dir "..\win32\bin\Debug"
65 | # PROP Intermediate_Dir "..\win32\tmp\Debug_static"
66 | # PROP Target_Dir ""
67 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
68 | # ADD CPP /nologo /MTd /W3 /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "COMPILED_FROM_DSP" /D "_MBCS" /D "_LIB" /FR /FD /GZ /c
69 | # SUBTRACT CPP /YX
70 | # ADD BASE RSC /l 0x1009 /d "_DEBUG"
71 | # ADD RSC /l 0x409 /d "_DEBUG"
72 | BSC32=bscmake.exe
73 | # ADD BASE BSC32 /nologo
74 | # ADD BSC32 /nologo
75 | LIB32=link.exe -lib
76 | # ADD BASE LIB32 /nologo
77 | # ADD LIB32 /nologo /out:"..\win32\bin\Debug\libexpatMT.lib"
78 |
79 | !ENDIF
80 |
81 | # Begin Target
82 |
83 | # Name "expat_static - Win32 Release"
84 | # Name "expat_static - Win32 Debug"
85 | # Begin Group "Source Files"
86 |
87 | # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
88 | # Begin Source File
89 |
90 | SOURCE=.\xmlparse.c
91 | # End Source File
92 | # Begin Source File
93 |
94 | SOURCE=.\xmlrole.c
95 | # End Source File
96 | # Begin Source File
97 |
98 | SOURCE=.\xmltok.c
99 | # End Source File
100 | # Begin Source File
101 |
102 | SOURCE=.\xmltok_impl.c
103 | # End Source File
104 | # Begin Source File
105 |
106 | SOURCE=.\xmltok_ns.c
107 | # End Source File
108 | # End Group
109 | # Begin Group "Header Files"
110 |
111 | # PROP Default_Filter "h;hpp;hxx;hm;inl"
112 | # Begin Source File
113 |
114 | SOURCE=.\ascii.h
115 | # End Source File
116 | # Begin Source File
117 |
118 | SOURCE=.\asciitab.h
119 | # End Source File
120 | # Begin Source File
121 |
122 | SOURCE=.\expat.h
123 | # End Source File
124 | # Begin Source File
125 |
126 | SOURCE=.\expat_external.h
127 | # End Source File
128 | # Begin Source File
129 |
130 | SOURCE=.\iasciitab.h
131 | # End Source File
132 | # Begin Source File
133 |
134 | SOURCE=.\internal.h
135 | # End Source File
136 | # Begin Source File
137 |
138 | SOURCE=.\latin1tab.h
139 | # End Source File
140 | # Begin Source File
141 |
142 | SOURCE=.\nametab.h
143 | # End Source File
144 | # Begin Source File
145 |
146 | SOURCE=.\utf8tab.h
147 | # End Source File
148 | # Begin Source File
149 |
150 | SOURCE=.\xmlrole.h
151 | # End Source File
152 | # Begin Source File
153 |
154 | SOURCE=.\xmltok.h
155 | # End Source File
156 | # Begin Source File
157 |
158 | SOURCE=.\xmltok_impl.h
159 | # End Source File
160 | # End Group
161 | # End Target
162 | # End Project
163 |
--------------------------------------------------------------------------------
/android/external/expat/lib/expatw_static.dsp:
--------------------------------------------------------------------------------
1 | # Microsoft Developer Studio Project File - Name="expatw_static" - Package Owner=<4>
2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00
3 | # ** DO NOT EDIT **
4 |
5 | # TARGTYPE "Win32 (x86) Static Library" 0x0104
6 |
7 | CFG=expatw_static - Win32 Debug
8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 | !MESSAGE use the Export Makefile command and run
10 | !MESSAGE
11 | !MESSAGE NMAKE /f "expatw_static.mak".
12 | !MESSAGE
13 | !MESSAGE You can specify a configuration when running NMAKE
14 | !MESSAGE by defining the macro CFG on the command line. For example:
15 | !MESSAGE
16 | !MESSAGE NMAKE /f "expatw_static.mak" CFG="expatw_static - Win32 Debug"
17 | !MESSAGE
18 | !MESSAGE Possible choices for configuration are:
19 | !MESSAGE
20 | !MESSAGE "expatw_static - Win32 Release" (based on "Win32 (x86) Static Library")
21 | !MESSAGE "expatw_static - Win32 Debug" (based on "Win32 (x86) Static Library")
22 | !MESSAGE
23 |
24 | # Begin Project
25 | # PROP AllowPerConfigDependencies 0
26 | # PROP Scc_ProjName ""
27 | # PROP Scc_LocalPath ""
28 | CPP=cl.exe
29 | RSC=rc.exe
30 |
31 | !IF "$(CFG)" == "expatw_static - Win32 Release"
32 |
33 | # PROP BASE Use_MFC 0
34 | # PROP BASE Use_Debug_Libraries 0
35 | # PROP BASE Output_Dir "expatw_static___Win32_Release"
36 | # PROP BASE Intermediate_Dir "expatw_static___Win32_Release"
37 | # PROP BASE Target_Dir ""
38 | # PROP Use_MFC 0
39 | # PROP Use_Debug_Libraries 0
40 | # PROP Output_Dir "..\win32\bin\Release"
41 | # PROP Intermediate_Dir "..\win32\tmp\Release-w_static"
42 | # PROP Target_Dir ""
43 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
44 | # ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "COMPILED_FROM_DSP" /D "XML_UNICODE_WCHAR_T" /FD /c
45 | # SUBTRACT CPP /YX
46 | # ADD BASE RSC /l 0x1009 /d "NDEBUG"
47 | # ADD RSC /l 0x409 /d "NDEBUG"
48 | BSC32=bscmake.exe
49 | # ADD BASE BSC32 /nologo
50 | # ADD BSC32 /nologo
51 | LIB32=link.exe -lib
52 | # ADD BASE LIB32 /nologo
53 | # ADD LIB32 /nologo /out:"..\win32\bin\Release\libexpatwMT.lib"
54 |
55 | !ELSEIF "$(CFG)" == "expatw_static - Win32 Debug"
56 |
57 | # PROP BASE Use_MFC 0
58 | # PROP BASE Use_Debug_Libraries 1
59 | # PROP BASE Output_Dir "expatw_static___Win32_Debug"
60 | # PROP BASE Intermediate_Dir "expatw_static___Win32_Debug"
61 | # PROP BASE Target_Dir ""
62 | # PROP Use_MFC 0
63 | # PROP Use_Debug_Libraries 1
64 | # PROP Output_Dir "..\win32\bin\Debug"
65 | # PROP Intermediate_Dir "..\win32\tmp\Debug-w_static"
66 | # PROP Target_Dir ""
67 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
68 | # ADD CPP /nologo /MTd /W3 /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_LIB" /D "COMPILED_FROM_DSP" /D "XML_UNICODE_WCHAR_T" /FR /FD /GZ /c
69 | # SUBTRACT CPP /YX
70 | # ADD BASE RSC /l 0x1009 /d "_DEBUG"
71 | # ADD RSC /l 0x409 /d "_DEBUG"
72 | BSC32=bscmake.exe
73 | # ADD BASE BSC32 /nologo
74 | # ADD BSC32 /nologo
75 | LIB32=link.exe -lib
76 | # ADD BASE LIB32 /nologo
77 | # ADD LIB32 /nologo /out:"..\win32\bin\Debug\libexpatwMT.lib"
78 |
79 | !ENDIF
80 |
81 | # Begin Target
82 |
83 | # Name "expatw_static - Win32 Release"
84 | # Name "expatw_static - Win32 Debug"
85 | # Begin Group "Source Files"
86 |
87 | # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
88 | # Begin Source File
89 |
90 | SOURCE=.\xmlparse.c
91 | # End Source File
92 | # Begin Source File
93 |
94 | SOURCE=.\xmlrole.c
95 | # End Source File
96 | # Begin Source File
97 |
98 | SOURCE=.\xmltok.c
99 | # End Source File
100 | # Begin Source File
101 |
102 | SOURCE=.\xmltok_impl.c
103 | # End Source File
104 | # Begin Source File
105 |
106 | SOURCE=.\xmltok_ns.c
107 | # End Source File
108 | # End Group
109 | # Begin Group "Header Files"
110 |
111 | # PROP Default_Filter "h;hpp;hxx;hm;inl"
112 | # Begin Source File
113 |
114 | SOURCE=.\ascii.h
115 | # End Source File
116 | # Begin Source File
117 |
118 | SOURCE=.\asciitab.h
119 | # End Source File
120 | # Begin Source File
121 |
122 | SOURCE=.\expat.h
123 | # End Source File
124 | # Begin Source File
125 |
126 | SOURCE=.\expat_external.h
127 | # End Source File
128 | # Begin Source File
129 |
130 | SOURCE=.\iasciitab.h
131 | # End Source File
132 | # Begin Source File
133 |
134 | SOURCE=.\internal.h
135 | # End Source File
136 | # Begin Source File
137 |
138 | SOURCE=.\latin1tab.h
139 | # End Source File
140 | # Begin Source File
141 |
142 | SOURCE=.\nametab.h
143 | # End Source File
144 | # Begin Source File
145 |
146 | SOURCE=.\utf8tab.h
147 | # End Source File
148 | # Begin Source File
149 |
150 | SOURCE=.\xmlrole.h
151 | # End Source File
152 | # Begin Source File
153 |
154 | SOURCE=.\xmltok.h
155 | # End Source File
156 | # Begin Source File
157 |
158 | SOURCE=.\xmltok_impl.h
159 | # End Source File
160 | # End Group
161 | # End Target
162 | # End Project
163 |
--------------------------------------------------------------------------------
/android/external/expat/lib/iasciitab.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | /* Like asciitab.h, except that 0xD has code BT_S rather than BT_CR */
6 | /* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
7 | /* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
8 | /* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML,
9 | /* 0x0C */ BT_NONXML, BT_S, BT_NONXML, BT_NONXML,
10 | /* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
11 | /* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
12 | /* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
13 | /* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
14 | /* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM,
15 | /* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS,
16 | /* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS,
17 | /* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL,
18 | /* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT,
19 | /* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT,
20 | /* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI,
21 | /* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST,
22 | /* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX,
23 | /* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT,
24 | /* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
25 | /* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
26 | /* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
27 | /* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
28 | /* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB,
29 | /* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT,
30 | /* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX,
31 | /* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT,
32 | /* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
33 | /* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
34 | /* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
35 | /* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
36 | /* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER,
37 | /* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER,
38 |
--------------------------------------------------------------------------------
/android/external/expat/lib/internal.h:
--------------------------------------------------------------------------------
1 | /* internal.h
2 |
3 | Internal definitions used by Expat. This is not needed to compile
4 | client code.
5 |
6 | The following calling convention macros are defined for frequently
7 | called functions:
8 |
9 | FASTCALL - Used for those internal functions that have a simple
10 | body and a low number of arguments and local variables.
11 |
12 | PTRCALL - Used for functions called though function pointers.
13 |
14 | PTRFASTCALL - Like PTRCALL, but for low number of arguments.
15 |
16 | inline - Used for selected internal functions for which inlining
17 | may improve performance on some platforms.
18 |
19 | Note: Use of these macros is based on judgement, not hard rules,
20 | and therefore subject to change.
21 | */
22 |
23 | #if defined(__GNUC__) && defined(__i386__) && !defined(__MINGW32__)
24 | /* We'll use this version by default only where we know it helps.
25 |
26 | regparm() generates warnings on Solaris boxes. See SF bug #692878.
27 |
28 | Instability reported with egcs on a RedHat Linux 7.3.
29 | Let's comment out:
30 | #define FASTCALL __attribute__((stdcall, regparm(3)))
31 | and let's try this:
32 | */
33 | #define FASTCALL __attribute__((regparm(3)))
34 | #define PTRFASTCALL __attribute__((regparm(3)))
35 | #endif
36 |
37 | /* Using __fastcall seems to have an unexpected negative effect under
38 | MS VC++, especially for function pointers, so we won't use it for
39 | now on that platform. It may be reconsidered for a future release
40 | if it can be made more effective.
41 | Likely reason: __fastcall on Windows is like stdcall, therefore
42 | the compiler cannot perform stack optimizations for call clusters.
43 | */
44 |
45 | /* Make sure all of these are defined if they aren't already. */
46 |
47 | #ifndef FASTCALL
48 | #define FASTCALL
49 | #endif
50 |
51 | #ifndef PTRCALL
52 | #define PTRCALL
53 | #endif
54 |
55 | #ifndef PTRFASTCALL
56 | #define PTRFASTCALL
57 | #endif
58 |
59 | #ifndef XML_MIN_SIZE
60 | #if !defined(__cplusplus) && !defined(inline)
61 | #ifdef __GNUC__
62 | #define inline __inline
63 | #endif /* __GNUC__ */
64 | #endif
65 | #endif /* XML_MIN_SIZE */
66 |
67 | #ifdef __cplusplus
68 | #define inline inline
69 | #else
70 | #ifndef inline
71 | #define inline
72 | #endif
73 | #endif
74 |
--------------------------------------------------------------------------------
/android/external/expat/lib/latin1tab.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | /* 0x80 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
6 | /* 0x84 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
7 | /* 0x88 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
8 | /* 0x8C */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
9 | /* 0x90 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
10 | /* 0x94 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
11 | /* 0x98 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
12 | /* 0x9C */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
13 | /* 0xA0 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
14 | /* 0xA4 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
15 | /* 0xA8 */ BT_OTHER, BT_OTHER, BT_NMSTRT, BT_OTHER,
16 | /* 0xAC */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
17 | /* 0xB0 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
18 | /* 0xB4 */ BT_OTHER, BT_NMSTRT, BT_OTHER, BT_NAME,
19 | /* 0xB8 */ BT_OTHER, BT_OTHER, BT_NMSTRT, BT_OTHER,
20 | /* 0xBC */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
21 | /* 0xC0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
22 | /* 0xC4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
23 | /* 0xC8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
24 | /* 0xCC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
25 | /* 0xD0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
26 | /* 0xD4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER,
27 | /* 0xD8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
28 | /* 0xDC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
29 | /* 0xE0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
30 | /* 0xE4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
31 | /* 0xE8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
32 | /* 0xEC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
33 | /* 0xF0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
34 | /* 0xF4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER,
35 | /* 0xF8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
36 | /* 0xFC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
37 |
--------------------------------------------------------------------------------
/android/external/expat/lib/libexpat.def:
--------------------------------------------------------------------------------
1 | ; DEF file for MS VC++
2 |
3 | LIBRARY
4 | EXPORTS
5 | XML_DefaultCurrent @1
6 | XML_ErrorString @2
7 | XML_ExpatVersion @3
8 | XML_ExpatVersionInfo @4
9 | XML_ExternalEntityParserCreate @5
10 | XML_GetBase @6
11 | XML_GetBuffer @7
12 | XML_GetCurrentByteCount @8
13 | XML_GetCurrentByteIndex @9
14 | XML_GetCurrentColumnNumber @10
15 | XML_GetCurrentLineNumber @11
16 | XML_GetErrorCode @12
17 | XML_GetIdAttributeIndex @13
18 | XML_GetInputContext @14
19 | XML_GetSpecifiedAttributeCount @15
20 | XML_Parse @16
21 | XML_ParseBuffer @17
22 | XML_ParserCreate @18
23 | XML_ParserCreateNS @19
24 | XML_ParserCreate_MM @20
25 | XML_ParserFree @21
26 | XML_SetAttlistDeclHandler @22
27 | XML_SetBase @23
28 | XML_SetCdataSectionHandler @24
29 | XML_SetCharacterDataHandler @25
30 | XML_SetCommentHandler @26
31 | XML_SetDefaultHandler @27
32 | XML_SetDefaultHandlerExpand @28
33 | XML_SetDoctypeDeclHandler @29
34 | XML_SetElementDeclHandler @30
35 | XML_SetElementHandler @31
36 | XML_SetEncoding @32
37 | XML_SetEndCdataSectionHandler @33
38 | XML_SetEndDoctypeDeclHandler @34
39 | XML_SetEndElementHandler @35
40 | XML_SetEndNamespaceDeclHandler @36
41 | XML_SetEntityDeclHandler @37
42 | XML_SetExternalEntityRefHandler @38
43 | XML_SetExternalEntityRefHandlerArg @39
44 | XML_SetNamespaceDeclHandler @40
45 | XML_SetNotStandaloneHandler @41
46 | XML_SetNotationDeclHandler @42
47 | XML_SetParamEntityParsing @43
48 | XML_SetProcessingInstructionHandler @44
49 | XML_SetReturnNSTriplet @45
50 | XML_SetStartCdataSectionHandler @46
51 | XML_SetStartDoctypeDeclHandler @47
52 | XML_SetStartElementHandler @48
53 | XML_SetStartNamespaceDeclHandler @49
54 | XML_SetUnknownEncodingHandler @50
55 | XML_SetUnparsedEntityDeclHandler @51
56 | XML_SetUserData @52
57 | XML_SetXmlDeclHandler @53
58 | XML_UseParserAsHandlerArg @54
59 | ; added with version 1.95.3
60 | XML_ParserReset @55
61 | XML_SetSkippedEntityHandler @56
62 | ; added with version 1.95.5
63 | XML_GetFeatureList @57
64 | XML_UseForeignDTD @58
65 | ; added with version 1.95.6
66 | XML_FreeContentModel @59
67 | XML_MemMalloc @60
68 | XML_MemRealloc @61
69 | XML_MemFree @62
70 | ; added with version 1.95.8
71 | XML_StopParser @63
72 | XML_ResumeParser @64
73 | XML_GetParsingStatus @65
74 |
--------------------------------------------------------------------------------
/android/external/expat/lib/libexpatw.def:
--------------------------------------------------------------------------------
1 | ; DEF file for MS VC++
2 |
3 | LIBRARY
4 | EXPORTS
5 | XML_DefaultCurrent @1
6 | XML_ErrorString @2
7 | XML_ExpatVersion @3
8 | XML_ExpatVersionInfo @4
9 | XML_ExternalEntityParserCreate @5
10 | XML_GetBase @6
11 | XML_GetBuffer @7
12 | XML_GetCurrentByteCount @8
13 | XML_GetCurrentByteIndex @9
14 | XML_GetCurrentColumnNumber @10
15 | XML_GetCurrentLineNumber @11
16 | XML_GetErrorCode @12
17 | XML_GetIdAttributeIndex @13
18 | XML_GetInputContext @14
19 | XML_GetSpecifiedAttributeCount @15
20 | XML_Parse @16
21 | XML_ParseBuffer @17
22 | XML_ParserCreate @18
23 | XML_ParserCreateNS @19
24 | XML_ParserCreate_MM @20
25 | XML_ParserFree @21
26 | XML_SetAttlistDeclHandler @22
27 | XML_SetBase @23
28 | XML_SetCdataSectionHandler @24
29 | XML_SetCharacterDataHandler @25
30 | XML_SetCommentHandler @26
31 | XML_SetDefaultHandler @27
32 | XML_SetDefaultHandlerExpand @28
33 | XML_SetDoctypeDeclHandler @29
34 | XML_SetElementDeclHandler @30
35 | XML_SetElementHandler @31
36 | XML_SetEncoding @32
37 | XML_SetEndCdataSectionHandler @33
38 | XML_SetEndDoctypeDeclHandler @34
39 | XML_SetEndElementHandler @35
40 | XML_SetEndNamespaceDeclHandler @36
41 | XML_SetEntityDeclHandler @37
42 | XML_SetExternalEntityRefHandler @38
43 | XML_SetExternalEntityRefHandlerArg @39
44 | XML_SetNamespaceDeclHandler @40
45 | XML_SetNotStandaloneHandler @41
46 | XML_SetNotationDeclHandler @42
47 | XML_SetParamEntityParsing @43
48 | XML_SetProcessingInstructionHandler @44
49 | XML_SetReturnNSTriplet @45
50 | XML_SetStartCdataSectionHandler @46
51 | XML_SetStartDoctypeDeclHandler @47
52 | XML_SetStartElementHandler @48
53 | XML_SetStartNamespaceDeclHandler @49
54 | XML_SetUnknownEncodingHandler @50
55 | XML_SetUnparsedEntityDeclHandler @51
56 | XML_SetUserData @52
57 | XML_SetXmlDeclHandler @53
58 | XML_UseParserAsHandlerArg @54
59 | ; added with version 1.95.3
60 | XML_ParserReset @55
61 | XML_SetSkippedEntityHandler @56
62 | ; added with version 1.95.5
63 | XML_GetFeatureList @57
64 | XML_UseForeignDTD @58
65 | ; added with version 1.95.6
66 | XML_FreeContentModel @59
67 | XML_MemMalloc @60
68 | XML_MemRealloc @61
69 | XML_MemFree @62
70 | ; added with version 1.95.8
71 | XML_StopParser @63
72 | XML_ResumeParser @64
73 | XML_GetParsingStatus @65
74 |
--------------------------------------------------------------------------------
/android/external/expat/lib/macconfig.h:
--------------------------------------------------------------------------------
1 | /*================================================================
2 | ** Copyright 2000, Clark Cooper
3 | ** All rights reserved.
4 | **
5 | ** This is free software. You are permitted to copy, distribute, or modify
6 | ** it under the terms of the MIT/X license (contained in the COPYING file
7 | ** with this distribution.)
8 | **
9 | */
10 |
11 | #ifndef MACCONFIG_H
12 | #define MACCONFIG_H
13 |
14 |
15 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
16 | #define BYTEORDER 4321
17 |
18 | /* Define to 1 if you have the `bcopy' function. */
19 | #undef HAVE_BCOPY
20 |
21 | /* Define to 1 if you have the `memmove' function. */
22 | #define HAVE_MEMMOVE
23 |
24 | /* Define to 1 if you have a working `mmap' system call. */
25 | #undef HAVE_MMAP
26 |
27 | /* Define to 1 if you have the header file. */
28 | #undef HAVE_UNISTD_H
29 |
30 | /* whether byteorder is bigendian */
31 | #define WORDS_BIGENDIAN
32 |
33 | /* Define to specify how much context to retain around the current parse
34 | point. */
35 | #undef XML_CONTEXT_BYTES
36 |
37 | /* Define to make parameter entity parsing functionality available. */
38 | #define XML_DTD
39 |
40 | /* Define to make XML Namespaces functionality available. */
41 | #define XML_NS
42 |
43 | /* Define to empty if `const' does not conform to ANSI C. */
44 | #undef const
45 |
46 | /* Define to `long' if does not define. */
47 | #define off_t long
48 |
49 | /* Define to `unsigned' if does not define. */
50 | #undef size_t
51 |
52 |
53 | #endif /* ifndef MACCONFIG_H */
54 |
--------------------------------------------------------------------------------
/android/external/expat/lib/utf8tab.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 |
6 | /* 0x80 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
7 | /* 0x84 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
8 | /* 0x88 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
9 | /* 0x8C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
10 | /* 0x90 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
11 | /* 0x94 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
12 | /* 0x98 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
13 | /* 0x9C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
14 | /* 0xA0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
15 | /* 0xA4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
16 | /* 0xA8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
17 | /* 0xAC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
18 | /* 0xB0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
19 | /* 0xB4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
20 | /* 0xB8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
21 | /* 0xBC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL,
22 | /* 0xC0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
23 | /* 0xC4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
24 | /* 0xC8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
25 | /* 0xCC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
26 | /* 0xD0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
27 | /* 0xD4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
28 | /* 0xD8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
29 | /* 0xDC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2,
30 | /* 0xE0 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3,
31 | /* 0xE4 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3,
32 | /* 0xE8 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3,
33 | /* 0xEC */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3,
34 | /* 0xF0 */ BT_LEAD4, BT_LEAD4, BT_LEAD4, BT_LEAD4,
35 | /* 0xF4 */ BT_LEAD4, BT_NONXML, BT_NONXML, BT_NONXML,
36 | /* 0xF8 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
37 | /* 0xFC */ BT_NONXML, BT_NONXML, BT_MALFORM, BT_MALFORM,
38 |
--------------------------------------------------------------------------------
/android/external/expat/lib/winconfig.h:
--------------------------------------------------------------------------------
1 | /*================================================================
2 | ** Copyright 2000, Clark Cooper
3 | ** All rights reserved.
4 | **
5 | ** This is free software. You are permitted to copy, distribute, or modify
6 | ** it under the terms of the MIT/X license (contained in the COPYING file
7 | ** with this distribution.)
8 | */
9 |
10 | #ifndef WINCONFIG_H
11 | #define WINCONFIG_H
12 |
13 | #define WIN32_LEAN_AND_MEAN
14 | #include
15 | #undef WIN32_LEAN_AND_MEAN
16 |
17 | #include
18 | #include
19 |
20 | #define XML_NS 1
21 | #define XML_DTD 1
22 | #define XML_CONTEXT_BYTES 1024
23 |
24 | /* we will assume all Windows platforms are little endian */
25 | #define BYTEORDER 1234
26 |
27 | /* Windows has memmove() available. */
28 | #define HAVE_MEMMOVE
29 |
30 | #endif /* ndef WINCONFIG_H */
31 |
--------------------------------------------------------------------------------
/android/external/expat/lib/xmlrole.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #ifndef XmlRole_INCLUDED
6 | #define XmlRole_INCLUDED 1
7 |
8 | #ifdef __VMS
9 | /* 0 1 2 3 0 1 2 3
10 | 1234567890123456789012345678901 1234567890123456789012345678901 */
11 | #define XmlPrologStateInitExternalEntity XmlPrologStateInitExternalEnt
12 | #endif
13 |
14 | #include "xmltok.h"
15 |
16 | #ifdef __cplusplus
17 | extern "C" {
18 | #endif
19 |
20 | enum {
21 | XML_ROLE_ERROR = -1,
22 | XML_ROLE_NONE = 0,
23 | XML_ROLE_XML_DECL,
24 | XML_ROLE_INSTANCE_START,
25 | XML_ROLE_DOCTYPE_NONE,
26 | XML_ROLE_DOCTYPE_NAME,
27 | XML_ROLE_DOCTYPE_SYSTEM_ID,
28 | XML_ROLE_DOCTYPE_PUBLIC_ID,
29 | XML_ROLE_DOCTYPE_INTERNAL_SUBSET,
30 | XML_ROLE_DOCTYPE_CLOSE,
31 | XML_ROLE_GENERAL_ENTITY_NAME,
32 | XML_ROLE_PARAM_ENTITY_NAME,
33 | XML_ROLE_ENTITY_NONE,
34 | XML_ROLE_ENTITY_VALUE,
35 | XML_ROLE_ENTITY_SYSTEM_ID,
36 | XML_ROLE_ENTITY_PUBLIC_ID,
37 | XML_ROLE_ENTITY_COMPLETE,
38 | XML_ROLE_ENTITY_NOTATION_NAME,
39 | XML_ROLE_NOTATION_NONE,
40 | XML_ROLE_NOTATION_NAME,
41 | XML_ROLE_NOTATION_SYSTEM_ID,
42 | XML_ROLE_NOTATION_NO_SYSTEM_ID,
43 | XML_ROLE_NOTATION_PUBLIC_ID,
44 | XML_ROLE_ATTRIBUTE_NAME,
45 | XML_ROLE_ATTRIBUTE_TYPE_CDATA,
46 | XML_ROLE_ATTRIBUTE_TYPE_ID,
47 | XML_ROLE_ATTRIBUTE_TYPE_IDREF,
48 | XML_ROLE_ATTRIBUTE_TYPE_IDREFS,
49 | XML_ROLE_ATTRIBUTE_TYPE_ENTITY,
50 | XML_ROLE_ATTRIBUTE_TYPE_ENTITIES,
51 | XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN,
52 | XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS,
53 | XML_ROLE_ATTRIBUTE_ENUM_VALUE,
54 | XML_ROLE_ATTRIBUTE_NOTATION_VALUE,
55 | XML_ROLE_ATTLIST_NONE,
56 | XML_ROLE_ATTLIST_ELEMENT_NAME,
57 | XML_ROLE_IMPLIED_ATTRIBUTE_VALUE,
58 | XML_ROLE_REQUIRED_ATTRIBUTE_VALUE,
59 | XML_ROLE_DEFAULT_ATTRIBUTE_VALUE,
60 | XML_ROLE_FIXED_ATTRIBUTE_VALUE,
61 | XML_ROLE_ELEMENT_NONE,
62 | XML_ROLE_ELEMENT_NAME,
63 | XML_ROLE_CONTENT_ANY,
64 | XML_ROLE_CONTENT_EMPTY,
65 | XML_ROLE_CONTENT_PCDATA,
66 | XML_ROLE_GROUP_OPEN,
67 | XML_ROLE_GROUP_CLOSE,
68 | XML_ROLE_GROUP_CLOSE_REP,
69 | XML_ROLE_GROUP_CLOSE_OPT,
70 | XML_ROLE_GROUP_CLOSE_PLUS,
71 | XML_ROLE_GROUP_CHOICE,
72 | XML_ROLE_GROUP_SEQUENCE,
73 | XML_ROLE_CONTENT_ELEMENT,
74 | XML_ROLE_CONTENT_ELEMENT_REP,
75 | XML_ROLE_CONTENT_ELEMENT_OPT,
76 | XML_ROLE_CONTENT_ELEMENT_PLUS,
77 | XML_ROLE_PI,
78 | XML_ROLE_COMMENT,
79 | #ifdef XML_DTD
80 | XML_ROLE_TEXT_DECL,
81 | XML_ROLE_IGNORE_SECT,
82 | XML_ROLE_INNER_PARAM_ENTITY_REF,
83 | #endif /* XML_DTD */
84 | XML_ROLE_PARAM_ENTITY_REF
85 | };
86 |
87 | typedef struct prolog_state {
88 | int (PTRCALL *handler) (struct prolog_state *state,
89 | int tok,
90 | const char *ptr,
91 | const char *end,
92 | const ENCODING *enc);
93 | unsigned level;
94 | int role_none;
95 | #ifdef XML_DTD
96 | unsigned includeLevel;
97 | int documentEntity;
98 | int inEntityValue;
99 | #endif /* XML_DTD */
100 | } PROLOG_STATE;
101 |
102 | void XmlPrologStateInit(PROLOG_STATE *);
103 | #ifdef XML_DTD
104 | void XmlPrologStateInitExternalEntity(PROLOG_STATE *);
105 | #endif /* XML_DTD */
106 |
107 | #define XmlTokenRole(state, tok, ptr, end, enc) \
108 | (((state)->handler)(state, tok, ptr, end, enc))
109 |
110 | #ifdef __cplusplus
111 | }
112 | #endif
113 |
114 | #endif /* not XmlRole_INCLUDED */
115 |
--------------------------------------------------------------------------------
/android/external/expat/lib/xmltok_impl.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3 | See the file COPYING for copying permission.
4 | */
5 |
6 | enum {
7 | BT_NONXML,
8 | BT_MALFORM,
9 | BT_LT,
10 | BT_AMP,
11 | BT_RSQB,
12 | BT_LEAD2,
13 | BT_LEAD3,
14 | BT_LEAD4,
15 | BT_TRAIL,
16 | BT_CR,
17 | BT_LF,
18 | BT_GT,
19 | BT_QUOT,
20 | BT_APOS,
21 | BT_EQUALS,
22 | BT_QUEST,
23 | BT_EXCL,
24 | BT_SOL,
25 | BT_SEMI,
26 | BT_NUM,
27 | BT_LSQB,
28 | BT_S,
29 | BT_NMSTRT,
30 | BT_COLON,
31 | BT_HEX,
32 | BT_DIGIT,
33 | BT_NAME,
34 | BT_MINUS,
35 | BT_OTHER, /* known not to be a name or name start character */
36 | BT_NONASCII, /* might be a name or name start character */
37 | BT_PERCNT,
38 | BT_LPAR,
39 | BT_RPAR,
40 | BT_AST,
41 | BT_PLUS,
42 | BT_COMMA,
43 | BT_VERBAR
44 | };
45 |
46 | #include
47 |
--------------------------------------------------------------------------------
/android/external/expat/lib/xmltok_ns.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | /* This file is included! */
6 | #ifdef XML_TOK_NS_C
7 |
8 | const ENCODING *
9 | NS(XmlGetUtf8InternalEncoding)(void)
10 | {
11 | return &ns(internal_utf8_encoding).enc;
12 | }
13 |
14 | const ENCODING *
15 | NS(XmlGetUtf16InternalEncoding)(void)
16 | {
17 | #if BYTEORDER == 1234
18 | return &ns(internal_little2_encoding).enc;
19 | #elif BYTEORDER == 4321
20 | return &ns(internal_big2_encoding).enc;
21 | #else
22 | const short n = 1;
23 | return (*(const char *)&n
24 | ? &ns(internal_little2_encoding).enc
25 | : &ns(internal_big2_encoding).enc);
26 | #endif
27 | }
28 |
29 | static const ENCODING * const NS(encodings)[] = {
30 | &ns(latin1_encoding).enc,
31 | &ns(ascii_encoding).enc,
32 | &ns(utf8_encoding).enc,
33 | &ns(big2_encoding).enc,
34 | &ns(big2_encoding).enc,
35 | &ns(little2_encoding).enc,
36 | &ns(utf8_encoding).enc /* NO_ENC */
37 | };
38 |
39 | static int PTRCALL
40 | NS(initScanProlog)(const ENCODING *enc, const char *ptr, const char *end,
41 | const char **nextTokPtr)
42 | {
43 | return initScan(NS(encodings), (const INIT_ENCODING *)enc,
44 | XML_PROLOG_STATE, ptr, end, nextTokPtr);
45 | }
46 |
47 | static int PTRCALL
48 | NS(initScanContent)(const ENCODING *enc, const char *ptr, const char *end,
49 | const char **nextTokPtr)
50 | {
51 | return initScan(NS(encodings), (const INIT_ENCODING *)enc,
52 | XML_CONTENT_STATE, ptr, end, nextTokPtr);
53 | }
54 |
55 | int
56 | NS(XmlInitEncoding)(INIT_ENCODING *p, const ENCODING **encPtr,
57 | const char *name)
58 | {
59 | int i = getEncodingIndex(name);
60 | if (i == UNKNOWN_ENC)
61 | return 0;
62 | SET_INIT_ENC_INDEX(p, i);
63 | p->initEnc.scanners[XML_PROLOG_STATE] = NS(initScanProlog);
64 | p->initEnc.scanners[XML_CONTENT_STATE] = NS(initScanContent);
65 | p->initEnc.updatePosition = initUpdatePosition;
66 | p->encPtr = encPtr;
67 | *encPtr = &(p->initEnc);
68 | return 1;
69 | }
70 |
71 | static const ENCODING *
72 | NS(findEncoding)(const ENCODING *enc, const char *ptr, const char *end)
73 | {
74 | #define ENCODING_MAX 128
75 | char buf[ENCODING_MAX];
76 | char *p = buf;
77 | int i;
78 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
79 | if (ptr != end)
80 | return 0;
81 | *p = 0;
82 | if (streqci(buf, KW_UTF_16) && enc->minBytesPerChar == 2)
83 | return enc;
84 | i = getEncodingIndex(buf);
85 | if (i == UNKNOWN_ENC)
86 | return 0;
87 | return NS(encodings)[i];
88 | }
89 |
90 | int
91 | NS(XmlParseXmlDecl)(int isGeneralTextEntity,
92 | const ENCODING *enc,
93 | const char *ptr,
94 | const char *end,
95 | const char **badPtr,
96 | const char **versionPtr,
97 | const char **versionEndPtr,
98 | const char **encodingName,
99 | const ENCODING **encoding,
100 | int *standalone)
101 | {
102 | return doParseXmlDecl(NS(findEncoding),
103 | isGeneralTextEntity,
104 | enc,
105 | ptr,
106 | end,
107 | badPtr,
108 | versionPtr,
109 | versionEndPtr,
110 | encodingName,
111 | encoding,
112 | standalone);
113 | }
114 |
115 | #endif /* XML_TOK_NS_C */
116 |
--------------------------------------------------------------------------------
/android/external/expat/m4/ltsugar.m4:
--------------------------------------------------------------------------------
1 | # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
2 | #
3 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
4 | # Written by Gary V. Vaughan, 2004
5 | #
6 | # This file is free software; the Free Software Foundation gives
7 | # unlimited permission to copy and/or distribute it, with or without
8 | # modifications, as long as this notice is preserved.
9 |
10 | # serial 6 ltsugar.m4
11 |
12 | # This is to help aclocal find these macros, as it can't see m4_define.
13 | AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
14 |
15 |
16 | # lt_join(SEP, ARG1, [ARG2...])
17 | # -----------------------------
18 | # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
19 | # associated separator.
20 | # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
21 | # versions in m4sugar had bugs.
22 | m4_define([lt_join],
23 | [m4_if([$#], [1], [],
24 | [$#], [2], [[$2]],
25 | [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
26 | m4_define([_lt_join],
27 | [m4_if([$#$2], [2], [],
28 | [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
29 |
30 |
31 | # lt_car(LIST)
32 | # lt_cdr(LIST)
33 | # ------------
34 | # Manipulate m4 lists.
35 | # These macros are necessary as long as will still need to support
36 | # Autoconf-2.59 which quotes differently.
37 | m4_define([lt_car], [[$1]])
38 | m4_define([lt_cdr],
39 | [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
40 | [$#], 1, [],
41 | [m4_dquote(m4_shift($@))])])
42 | m4_define([lt_unquote], $1)
43 |
44 |
45 | # lt_append(MACRO-NAME, STRING, [SEPARATOR])
46 | # ------------------------------------------
47 | # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
48 | # Note that neither SEPARATOR nor STRING are expanded; they are appended
49 | # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
50 | # No SEPARATOR is output if MACRO-NAME was previously undefined (different
51 | # than defined and empty).
52 | #
53 | # This macro is needed until we can rely on Autoconf 2.62, since earlier
54 | # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
55 | m4_define([lt_append],
56 | [m4_define([$1],
57 | m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
58 |
59 |
60 |
61 | # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
62 | # ----------------------------------------------------------
63 | # Produce a SEP delimited list of all paired combinations of elements of
64 | # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
65 | # has the form PREFIXmINFIXSUFFIXn.
66 | # Needed until we can rely on m4_combine added in Autoconf 2.62.
67 | m4_define([lt_combine],
68 | [m4_if(m4_eval([$# > 3]), [1],
69 | [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
70 | [[m4_foreach([_Lt_prefix], [$2],
71 | [m4_foreach([_Lt_suffix],
72 | ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
73 | [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
74 |
75 |
76 | # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
77 | # -----------------------------------------------------------------------
78 | # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
79 | # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
80 | m4_define([lt_if_append_uniq],
81 | [m4_ifdef([$1],
82 | [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
83 | [lt_append([$1], [$2], [$3])$4],
84 | [$5])],
85 | [lt_append([$1], [$2], [$3])$4])])
86 |
87 |
88 | # lt_dict_add(DICT, KEY, VALUE)
89 | # -----------------------------
90 | m4_define([lt_dict_add],
91 | [m4_define([$1($2)], [$3])])
92 |
93 |
94 | # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
95 | # --------------------------------------------
96 | m4_define([lt_dict_add_subkey],
97 | [m4_define([$1($2:$3)], [$4])])
98 |
99 |
100 | # lt_dict_fetch(DICT, KEY, [SUBKEY])
101 | # ----------------------------------
102 | m4_define([lt_dict_fetch],
103 | [m4_ifval([$3],
104 | m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
105 | m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
106 |
107 |
108 | # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
109 | # -----------------------------------------------------------------
110 | m4_define([lt_if_dict_fetch],
111 | [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
112 | [$5],
113 | [$6])])
114 |
115 |
116 | # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
117 | # --------------------------------------------------------------
118 | m4_define([lt_dict_filter],
119 | [m4_if([$5], [], [],
120 | [lt_join(m4_quote(m4_default([$4], [[, ]])),
121 | lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
122 | [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
123 | ])
124 |
--------------------------------------------------------------------------------
/android/external/expat/m4/ltversion.m4:
--------------------------------------------------------------------------------
1 | # ltversion.m4 -- version numbers -*- Autoconf -*-
2 | #
3 | # Copyright (C) 2004 Free Software Foundation, Inc.
4 | # Written by Scott James Remnant, 2004
5 | #
6 | # This file is free software; the Free Software Foundation gives
7 | # unlimited permission to copy and/or distribute it, with or without
8 | # modifications, as long as this notice is preserved.
9 |
10 | # @configure_input@
11 |
12 | # serial 3293 ltversion.m4
13 | # This file is part of GNU Libtool
14 |
15 | m4_define([LT_PACKAGE_VERSION], [2.4])
16 | m4_define([LT_PACKAGE_REVISION], [1.3293])
17 |
18 | AC_DEFUN([LTVERSION_VERSION],
19 | [macro_version='2.4'
20 | macro_revision='1.3293'
21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
22 | _LT_DECL(, macro_revision, 0)
23 | ])
24 |
--------------------------------------------------------------------------------
/android/external/expat/tests/README.txt:
--------------------------------------------------------------------------------
1 | This directory contains the (fledgling) test suite for Expat. The
2 | tests provide general unit testing and regression coverage. The tests
3 | are not expected to be useful examples of Expat usage; see the
4 | examples/ directory for that.
5 |
6 | The Expat tests use a partial internal implementation of the "Check"
7 | unit testing framework for C. More information on Check can be found at:
8 |
9 | http://check.sourceforge.net/
10 |
11 | Expat must be built and, depending on platform, must be installed, before "make check" can be executed.
12 |
13 | This test suite can all change in a later version.
14 |
--------------------------------------------------------------------------------
/android/external/expat/tests/benchmark/README.txt:
--------------------------------------------------------------------------------
1 | Use this benchmark command line utility as follows:
2 |
3 | benchmark [-n] <# iterations>
4 |
5 | The command line arguments are:
6 |
7 | -n ... optional; if supplied, namespace processing is turned on
8 | ... name/path of test xml file
9 | ... size of processing buffer;
10 | the file is parsed in chunks of this size
11 | <# iterations> ... how often will the file be parsed
12 |
13 | Returns:
14 |
15 | The time (in seconds) it takes to parse the test file,
16 | averaged over the number of iterations.
--------------------------------------------------------------------------------
/android/external/expat/tests/benchmark/benchmark.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 | #include "expat.h"
6 |
7 | #if defined(__amigaos__) && defined(__USE_INLINE__)
8 | #include
9 | #endif
10 |
11 | #ifdef XML_LARGE_SIZE
12 | #define XML_FMT_INT_MOD "ll"
13 | #else
14 | #define XML_FMT_INT_MOD "l"
15 | #endif
16 |
17 | static void
18 | usage(const char *prog, int rc)
19 | {
20 | fprintf(stderr,
21 | "usage: %s [-n] filename bufferSize nr_of_loops\n", prog);
22 | exit(rc);
23 | }
24 |
25 | int main (int argc, char *argv[])
26 | {
27 | XML_Parser parser;
28 | char *XMLBuf, *XMLBufEnd, *XMLBufPtr;
29 | FILE *fd;
30 | struct stat fileAttr;
31 | int nrOfLoops, bufferSize, fileSize, i, isFinal;
32 | int j = 0, ns = 0;
33 | clock_t tstart, tend;
34 | double cpuTime = 0.0;
35 |
36 | if (argc > 1) {
37 | if (argv[1][0] == '-') {
38 | if (argv[1][1] == 'n' && argv[1][2] == '\0') {
39 | ns = 1;
40 | j = 1;
41 | }
42 | else
43 | usage(argv[0], 1);
44 | }
45 | }
46 |
47 | if (argc != j + 4)
48 | usage(argv[0], 1);
49 |
50 | if (stat (argv[j + 1], &fileAttr) != 0) {
51 | fprintf (stderr, "could not access file '%s'\n", argv[j + 1]);
52 | return 2;
53 | }
54 |
55 | fd = fopen (argv[j + 1], "r");
56 | if (!fd) {
57 | fprintf (stderr, "could not open file '%s'\n", argv[j + 1]);
58 | exit(2);
59 | }
60 |
61 | bufferSize = atoi (argv[j + 2]);
62 | nrOfLoops = atoi (argv[j + 3]);
63 | if (bufferSize <= 0 || nrOfLoops <= 0) {
64 | fprintf (stderr,
65 | "buffer size and nr of loops must be greater than zero.\n");
66 | exit(3);
67 | }
68 |
69 | XMLBuf = malloc (fileAttr.st_size);
70 | fileSize = fread (XMLBuf, sizeof (char), fileAttr.st_size, fd);
71 | fclose (fd);
72 |
73 | if (ns)
74 | parser = XML_ParserCreateNS(NULL, '!');
75 | else
76 | parser = XML_ParserCreate(NULL);
77 |
78 | i = 0;
79 | XMLBufEnd = XMLBuf + fileSize;
80 | while (i < nrOfLoops) {
81 | XMLBufPtr = XMLBuf;
82 | isFinal = 0;
83 | tstart = clock();
84 | do {
85 | int parseBufferSize = XMLBufEnd - XMLBufPtr;
86 | if (parseBufferSize <= bufferSize)
87 | isFinal = 1;
88 | else
89 | parseBufferSize = bufferSize;
90 | if (!XML_Parse (parser, XMLBufPtr, parseBufferSize, isFinal)) {
91 | fprintf (stderr, "error '%s' at line %" XML_FMT_INT_MOD \
92 | "u character %" XML_FMT_INT_MOD "u\n",
93 | XML_ErrorString (XML_GetErrorCode (parser)),
94 | XML_GetCurrentLineNumber (parser),
95 | XML_GetCurrentColumnNumber (parser));
96 | free (XMLBuf);
97 | XML_ParserFree (parser);
98 | exit (4);
99 | }
100 | XMLBufPtr += bufferSize;
101 | } while (!isFinal);
102 | tend = clock();
103 | cpuTime += ((double) (tend - tstart)) / CLOCKS_PER_SEC;
104 | XML_ParserReset(parser, NULL);
105 | i++;
106 | }
107 |
108 | XML_ParserFree (parser);
109 | free (XMLBuf);
110 |
111 | printf ("%d loops, with buffer size %d. Average time per loop: %f\n",
112 | nrOfLoops, bufferSize, cpuTime / (double) nrOfLoops);
113 | return 0;
114 | }
115 |
--------------------------------------------------------------------------------
/android/external/expat/tests/benchmark/benchmark.dsp:
--------------------------------------------------------------------------------
1 | # Microsoft Developer Studio Project File - Name="benchmark" - Package Owner=<4>
2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00
3 | # ** DO NOT EDIT **
4 |
5 | # TARGTYPE "Win32 (x86) Console Application" 0x0103
6 |
7 | CFG=benchmark - Win32 Debug
8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 | !MESSAGE use the Export Makefile command and run
10 | !MESSAGE
11 | !MESSAGE NMAKE /f "benchmark.mak".
12 | !MESSAGE
13 | !MESSAGE You can specify a configuration when running NMAKE
14 | !MESSAGE by defining the macro CFG on the command line. For example:
15 | !MESSAGE
16 | !MESSAGE NMAKE /f "benchmark.mak" CFG="benchmark - Win32 Debug"
17 | !MESSAGE
18 | !MESSAGE Possible choices for configuration are:
19 | !MESSAGE
20 | !MESSAGE "benchmark - Win32 Release" (based on "Win32 (x86) Console Application")
21 | !MESSAGE "benchmark - Win32 Debug" (based on "Win32 (x86) Console Application")
22 | !MESSAGE
23 |
24 | # Begin Project
25 | # PROP AllowPerConfigDependencies 0
26 | # PROP Scc_ProjName ""
27 | # PROP Scc_LocalPath ""
28 | CPP=cl.exe
29 | RSC=rc.exe
30 |
31 | !IF "$(CFG)" == "benchmark - Win32 Release"
32 |
33 | # PROP BASE Use_MFC 0
34 | # PROP BASE Use_Debug_Libraries 0
35 | # PROP BASE Output_Dir "Release"
36 | # PROP BASE Intermediate_Dir "Release"
37 | # PROP BASE Target_Dir ""
38 | # PROP Use_MFC 0
39 | # PROP Use_Debug_Libraries 0
40 | # PROP Output_Dir "Release"
41 | # PROP Intermediate_Dir "Release"
42 | # PROP Target_Dir ""
43 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
44 | # ADD CPP /nologo /W3 /GX /O2 /I "..\..\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
45 | # ADD BASE RSC /l 0x1009 /d "NDEBUG"
46 | # ADD RSC /l 0x1009 /d "NDEBUG"
47 | BSC32=bscmake.exe
48 | # ADD BASE BSC32 /nologo
49 | # ADD BSC32 /nologo
50 | LINK32=link.exe
51 | # ADD BASE LINK32 /nologo /subsystem:console /machine:I386
52 | # ADD LINK32 libexpat.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\win32\bin\Release"
53 |
54 | !ELSEIF "$(CFG)" == "benchmark - Win32 Debug"
55 |
56 | # PROP BASE Use_MFC 0
57 | # PROP BASE Use_Debug_Libraries 1
58 | # PROP BASE Output_Dir "Debug"
59 | # PROP BASE Intermediate_Dir "Debug"
60 | # PROP BASE Target_Dir ""
61 | # PROP Use_MFC 0
62 | # PROP Use_Debug_Libraries 1
63 | # PROP Output_Dir "Debug"
64 | # PROP Intermediate_Dir "Debug"
65 | # PROP Target_Dir ""
66 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
67 | # ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\..\lib" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
68 | # ADD BASE RSC /l 0x1009 /d "_DEBUG"
69 | # ADD RSC /l 0x1009 /d "_DEBUG"
70 | BSC32=bscmake.exe
71 | # ADD BASE BSC32 /nologo
72 | # ADD BSC32 /nologo
73 | LINK32=link.exe
74 | # ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
75 | # ADD LINK32 libexpat.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\win32\bin\Debug"
76 |
77 | !ENDIF
78 |
79 | # Begin Target
80 |
81 | # Name "benchmark - Win32 Release"
82 | # Name "benchmark - Win32 Debug"
83 | # Begin Source File
84 |
85 | SOURCE=.\benchmark.c
86 | # End Source File
87 | # End Target
88 | # End Project
89 |
--------------------------------------------------------------------------------
/android/external/expat/tests/benchmark/benchmark.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "benchmark"=.\benchmark.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | Begin Project Dependency
15 | Project_Dep_Name expat
16 | End Project Dependency
17 | }}}
18 |
19 | ###############################################################################
20 |
21 | Project: "expat"=..\..\lib\expat.dsp - Package Owner=<4>
22 |
23 | Package=<5>
24 | {{{
25 | }}}
26 |
27 | Package=<4>
28 | {{{
29 | }}}
30 |
31 | ###############################################################################
32 |
33 | Global:
34 |
35 | Package=<5>
36 | {{{
37 | }}}
38 |
39 | Package=<3>
40 | {{{
41 | }}}
42 |
43 | ###############################################################################
44 |
45 |
--------------------------------------------------------------------------------
/android/external/expat/tests/chardata.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998-2003 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 |
4 | chardata.c
5 | */
6 |
7 | #ifdef HAVE_EXPAT_CONFIG_H
8 | #include
9 | #endif
10 | #ifdef HAVE_CHECK_H
11 | #include
12 | #else
13 | #include "minicheck.h"
14 | #endif
15 |
16 | #include
17 | #include
18 | #include
19 |
20 | #include "chardata.h"
21 |
22 |
23 | static int
24 | xmlstrlen(const XML_Char *s)
25 | {
26 | int len = 0;
27 | assert(s != NULL);
28 | while (s[len] != 0)
29 | ++len;
30 | return len;
31 | }
32 |
33 |
34 | void
35 | CharData_Init(CharData *storage)
36 | {
37 | assert(storage != NULL);
38 | storage->count = -1;
39 | }
40 |
41 | void
42 | CharData_AppendString(CharData *storage, const char *s)
43 | {
44 | int maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
45 | int len;
46 |
47 | assert(s != NULL);
48 | len = strlen(s);
49 | if (storage->count < 0)
50 | storage->count = 0;
51 | if ((len + storage->count) > maxchars) {
52 | len = (maxchars - storage->count);
53 | }
54 | if (len + storage->count < sizeof(storage->data)) {
55 | memcpy(storage->data + storage->count, s, len);
56 | storage->count += len;
57 | }
58 | }
59 |
60 | void
61 | CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len)
62 | {
63 | int maxchars;
64 |
65 | assert(storage != NULL);
66 | assert(s != NULL);
67 | maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
68 | if (storage->count < 0)
69 | storage->count = 0;
70 | if (len < 0)
71 | len = xmlstrlen(s);
72 | if ((len + storage->count) > maxchars) {
73 | len = (maxchars - storage->count);
74 | }
75 | if (len + storage->count < sizeof(storage->data)) {
76 | memcpy(storage->data + storage->count, s,
77 | len * sizeof(storage->data[0]));
78 | storage->count += len;
79 | }
80 | }
81 |
82 | int
83 | CharData_CheckString(CharData *storage, const char *expected)
84 | {
85 | char buffer[1280];
86 | int len;
87 | int count;
88 |
89 | assert(storage != NULL);
90 | assert(expected != NULL);
91 | count = (storage->count < 0) ? 0 : storage->count;
92 | len = strlen(expected);
93 | if (len != count) {
94 | if (sizeof(XML_Char) == 1)
95 | sprintf(buffer, "wrong number of data characters:"
96 | " got %d, expected %d:\n%s", count, len, storage->data);
97 | else
98 | sprintf(buffer,
99 | "wrong number of data characters: got %d, expected %d",
100 | count, len);
101 | fail(buffer);
102 | return 0;
103 | }
104 | if (memcmp(expected, storage->data, len) != 0) {
105 | fail("got bad data bytes");
106 | return 0;
107 | }
108 | return 1;
109 | }
110 |
111 | int
112 | CharData_CheckXMLChars(CharData *storage, const XML_Char *expected)
113 | {
114 | char buffer[1024];
115 | int len = xmlstrlen(expected);
116 | int count;
117 |
118 | assert(storage != NULL);
119 | count = (storage->count < 0) ? 0 : storage->count;
120 | if (len != count) {
121 | sprintf(buffer, "wrong number of data characters: got %d, expected %d",
122 | count, len);
123 | fail(buffer);
124 | return 0;
125 | }
126 | if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) {
127 | fail("got bad data bytes");
128 | return 0;
129 | }
130 | return 1;
131 | }
132 |
--------------------------------------------------------------------------------
/android/external/expat/tests/chardata.h:
--------------------------------------------------------------------------------
1 | /* chardata.h
2 |
3 | Interface to some helper routines used to accumulate and check text
4 | and attribute content.
5 | */
6 |
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 |
11 | #ifndef XML_CHARDATA_H
12 | #define XML_CHARDATA_H 1
13 |
14 | #ifndef XML_VERSION
15 | #include "expat.h" /* need XML_Char */
16 | #endif
17 |
18 |
19 | typedef struct {
20 | int count; /* # of chars, < 0 if not set */
21 | XML_Char data[1024];
22 | } CharData;
23 |
24 |
25 | void CharData_Init(CharData *storage);
26 |
27 | void CharData_AppendString(CharData *storage, const char *s);
28 |
29 | void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
30 |
31 | int CharData_CheckString(CharData *storage, const char *s);
32 |
33 | int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
34 |
35 |
36 | #endif /* XML_CHARDATA_H */
37 |
38 | #ifdef __cplusplus
39 | }
40 | #endif
41 |
--------------------------------------------------------------------------------
/android/external/expat/tests/minicheck.c:
--------------------------------------------------------------------------------
1 | /* Miniature re-implementation of the "check" library.
2 | *
3 | * This is intended to support just enough of check to run the Expat
4 | * tests. This interface is based entirely on the portion of the
5 | * check library being used.
6 | */
7 |
8 | #include
9 | #include
10 | #include
11 | #include
12 |
13 | #include "minicheck.h"
14 |
15 | Suite *
16 | suite_create(char *name)
17 | {
18 | Suite *suite = (Suite *) calloc(1, sizeof(Suite));
19 | if (suite != NULL) {
20 | suite->name = name;
21 | }
22 | return suite;
23 | }
24 |
25 | TCase *
26 | tcase_create(char *name)
27 | {
28 | TCase *tc = (TCase *) calloc(1, sizeof(TCase));
29 | if (tc != NULL) {
30 | tc->name = name;
31 | }
32 | return tc;
33 | }
34 |
35 | void
36 | suite_add_tcase(Suite *suite, TCase *tc)
37 | {
38 | assert(suite != NULL);
39 | assert(tc != NULL);
40 | assert(tc->next_tcase == NULL);
41 |
42 | tc->next_tcase = suite->tests;
43 | suite->tests = tc;
44 | }
45 |
46 | void
47 | tcase_add_checked_fixture(TCase *tc,
48 | tcase_setup_function setup,
49 | tcase_teardown_function teardown)
50 | {
51 | assert(tc != NULL);
52 | tc->setup = setup;
53 | tc->teardown = teardown;
54 | }
55 |
56 | void
57 | tcase_add_test(TCase *tc, tcase_test_function test)
58 | {
59 | assert(tc != NULL);
60 | if (tc->allocated == tc->ntests) {
61 | int nalloc = tc->allocated + 100;
62 | size_t new_size = sizeof(tcase_test_function) * nalloc;
63 | tcase_test_function *new_tests = realloc(tc->tests, new_size);
64 | assert(new_tests != NULL);
65 | if (new_tests != tc->tests) {
66 | free(tc->tests);
67 | tc->tests = new_tests;
68 | }
69 | tc->allocated = nalloc;
70 | }
71 | tc->tests[tc->ntests] = test;
72 | tc->ntests++;
73 | }
74 |
75 | SRunner *
76 | srunner_create(Suite *suite)
77 | {
78 | SRunner *runner = calloc(1, sizeof(SRunner));
79 | if (runner != NULL) {
80 | runner->suite = suite;
81 | }
82 | return runner;
83 | }
84 |
85 | static jmp_buf env;
86 |
87 | static char const *_check_current_function = NULL;
88 | static int _check_current_lineno = -1;
89 | static char const *_check_current_filename = NULL;
90 |
91 | void
92 | _check_set_test_info(char const *function, char const *filename, int lineno)
93 | {
94 | _check_current_function = function;
95 | _check_current_lineno = lineno;
96 | _check_current_filename = filename;
97 | }
98 |
99 |
100 | static void
101 | add_failure(SRunner *runner, int verbosity)
102 | {
103 | runner->nfailures++;
104 | if (verbosity >= CK_VERBOSE) {
105 | printf("%s:%d: %s\n", _check_current_filename,
106 | _check_current_lineno, _check_current_function);
107 | }
108 | }
109 |
110 | void
111 | srunner_run_all(SRunner *runner, int verbosity)
112 | {
113 | Suite *suite;
114 | TCase *tc;
115 | assert(runner != NULL);
116 | suite = runner->suite;
117 | tc = suite->tests;
118 | while (tc != NULL) {
119 | int i;
120 | for (i = 0; i < tc->ntests; ++i) {
121 | runner->nchecks++;
122 |
123 | if (tc->setup != NULL) {
124 | /* setup */
125 | if (setjmp(env)) {
126 | add_failure(runner, verbosity);
127 | continue;
128 | }
129 | tc->setup();
130 | }
131 | /* test */
132 | if (setjmp(env)) {
133 | add_failure(runner, verbosity);
134 | continue;
135 | }
136 | (tc->tests[i])();
137 |
138 | /* teardown */
139 | if (tc->teardown != NULL) {
140 | if (setjmp(env)) {
141 | add_failure(runner, verbosity);
142 | continue;
143 | }
144 | tc->teardown();
145 | }
146 | }
147 | tc = tc->next_tcase;
148 | }
149 | if (verbosity) {
150 | int passed = runner->nchecks - runner->nfailures;
151 | double percentage = ((double) passed) / runner->nchecks;
152 | int display = (int) (percentage * 100);
153 | printf("%d%%: Checks: %d, Failed: %d\n",
154 | display, runner->nchecks, runner->nfailures);
155 | }
156 | }
157 |
158 | void
159 | _fail_unless(int condition, const char *file, int line, char *msg)
160 | {
161 | /* Always print the error message so it isn't lost. In this case,
162 | we have a failure, so there's no reason to be quiet about what
163 | it is.
164 | */
165 | if (msg != NULL)
166 | printf("%s", msg);
167 | longjmp(env, 1);
168 | }
169 |
170 | int
171 | srunner_ntests_failed(SRunner *runner)
172 | {
173 | assert(runner != NULL);
174 | return runner->nfailures;
175 | }
176 |
177 | void
178 | srunner_free(SRunner *runner)
179 | {
180 | free(runner->suite);
181 | free(runner);
182 | }
183 |
--------------------------------------------------------------------------------
/android/external/expat/tests/minicheck.h:
--------------------------------------------------------------------------------
1 | /* Miniature re-implementation of the "check" library.
2 | *
3 | * This is intended to support just enough of check to run the Expat
4 | * tests. This interface is based entirely on the portion of the
5 | * check library being used.
6 | *
7 | * This is *source* compatible, but not necessary *link* compatible.
8 | */
9 |
10 | #ifdef __cplusplus
11 | extern "C" {
12 | #endif
13 |
14 | #define CK_NOFORK 0
15 | #define CK_FORK 1
16 |
17 | #define CK_SILENT 0
18 | #define CK_NORMAL 1
19 | #define CK_VERBOSE 2
20 |
21 | /* Workaround for Microsoft's compiler and Tru64 Unix systems where the
22 | C compiler has a working __func__, but the C++ compiler only has a
23 | working __FUNCTION__. This could be fixed in configure.in, but it's
24 | not worth it right now. */
25 | #if defined (_MSC_VER) || (defined(__osf__) && defined(__cplusplus))
26 | #define __func__ __FUNCTION__
27 | #endif
28 |
29 | #define START_TEST(testname) static void testname(void) { \
30 | _check_set_test_info(__func__, __FILE__, __LINE__); \
31 | {
32 | #define END_TEST } }
33 |
34 | #define fail(msg) _fail_unless(0, __FILE__, __LINE__, msg)
35 |
36 | typedef void (*tcase_setup_function)(void);
37 | typedef void (*tcase_teardown_function)(void);
38 | typedef void (*tcase_test_function)(void);
39 |
40 | typedef struct SRunner SRunner;
41 | typedef struct Suite Suite;
42 | typedef struct TCase TCase;
43 |
44 | struct SRunner {
45 | Suite *suite;
46 | int nchecks;
47 | int nfailures;
48 | };
49 |
50 | struct Suite {
51 | char *name;
52 | TCase *tests;
53 | };
54 |
55 | struct TCase {
56 | char *name;
57 | tcase_setup_function setup;
58 | tcase_teardown_function teardown;
59 | tcase_test_function *tests;
60 | int ntests;
61 | int allocated;
62 | TCase *next_tcase;
63 | };
64 |
65 |
66 | /* Internal helper. */
67 | void _check_set_test_info(char const *function,
68 | char const *filename, int lineno);
69 |
70 |
71 | /*
72 | * Prototypes for the actual implementation.
73 | */
74 |
75 | void _fail_unless(int condition, const char *file, int line, char *msg);
76 | Suite *suite_create(char *name);
77 | TCase *tcase_create(char *name);
78 | void suite_add_tcase(Suite *suite, TCase *tc);
79 | void tcase_add_checked_fixture(TCase *,
80 | tcase_setup_function,
81 | tcase_teardown_function);
82 | void tcase_add_test(TCase *tc, tcase_test_function test);
83 | SRunner *srunner_create(Suite *suite);
84 | void srunner_run_all(SRunner *runner, int verbosity);
85 | int srunner_ntests_failed(SRunner *runner);
86 | void srunner_free(SRunner *runner);
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
--------------------------------------------------------------------------------
/android/external/expat/tests/runtestspp.cpp:
--------------------------------------------------------------------------------
1 | // C++ compilation harness for the test suite.
2 | //
3 | // This is used to ensure the Expat headers can be included from C++
4 | // and have everything work as expected.
5 | //
6 | #include "runtests.c"
7 |
--------------------------------------------------------------------------------
/android/external/expat/tests/xmltest.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | # EXPAT TEST SCRIPT FOR W3C XML TEST SUITE
4 |
5 | # This script can be used to exercise Expat against the
6 | # w3c.org xml test suite, available from
7 | # http://www.w3.org/XML/Test/xmlts20020606.zip.
8 |
9 | # To run this script, first set XMLWF below so that xmlwf can be
10 | # found, then set the output directory with OUTPUT.
11 |
12 | # The script lists all test cases where Expat shows a discrepancy
13 | # from the expected result. Test cases where only the canonical
14 | # output differs are prefixed with "Output differs:", and a diff file
15 | # is generated in the appropriate subdirectory under $OUTPUT.
16 |
17 | # If there are output files provided, the script will use
18 | # output from xmlwf and compare the desired output against it.
19 | # However, one has to take into account that the canonical output
20 | # produced by xmlwf conforms to an older definition of canonical XML
21 | # and does not generate notation declarations.
22 |
23 | MYDIR="`dirname \"$0\"`"
24 | cd "$MYDIR"
25 | MYDIR="`pwd`"
26 | XMLWF="`dirname \"$MYDIR\"`/xmlwf/xmlwf"
27 | # XMLWF=/usr/local/bin/xmlwf
28 | TS="$MYDIR/XML-Test-Suite"
29 | # OUTPUT must terminate with the directory separator.
30 | OUTPUT="$TS/out/"
31 | # OUTPUT=/home/tmp/xml-testsuite-out/
32 |
33 |
34 | # RunXmlwfNotWF file reldir
35 | # reldir includes trailing slash
36 | RunXmlwfNotWF() {
37 | file="$1"
38 | reldir="$2"
39 | $XMLWF -p "$file" > outfile || return $?
40 | read outdata < outfile
41 | if test "$outdata" = "" ; then
42 | echo "Expected not well-formed: $reldir$file"
43 | return 1
44 | else
45 | return 0
46 | fi
47 | }
48 |
49 | # RunXmlwfWF file reldir
50 | # reldir includes trailing slash
51 | RunXmlwfWF() {
52 | file="$1"
53 | reldir="$2"
54 | $XMLWF -p -d "$OUTPUT$reldir" "$file" > outfile || return $?
55 | read outdata < outfile
56 | if test "$outdata" = "" ; then
57 | if [ -f "out/$file" ] ; then
58 | diff -u "$OUTPUT$reldir$file" "out/$file" > outfile
59 | if [ -s outfile ] ; then
60 | cp outfile "$OUTPUT$reldir$file.diff"
61 | echo "Output differs: $reldir$file"
62 | return 1
63 | fi
64 | fi
65 | return 0
66 | else
67 | echo "In $reldir: $outdata"
68 | return 1
69 | fi
70 | }
71 |
72 | SUCCESS=0
73 | ERROR=0
74 |
75 | UpdateStatus() {
76 | if [ "$1" -eq 0 ] ; then
77 | SUCCESS=`expr $SUCCESS + 1`
78 | else
79 | ERROR=`expr $ERROR + 1`
80 | fi
81 | }
82 |
83 | ##########################
84 | # well-formed test cases #
85 | ##########################
86 |
87 | cd "$TS/xmlconf"
88 | for xmldir in ibm/valid/P* \
89 | ibm/invalid/P* \
90 | xmltest/valid/ext-sa \
91 | xmltest/valid/not-sa \
92 | xmltest/invalid \
93 | xmltest/invalid/not-sa \
94 | xmltest/valid/sa \
95 | sun/valid \
96 | sun/invalid ; do
97 | cd "$TS/xmlconf/$xmldir"
98 | mkdir -p "$OUTPUT$xmldir"
99 | for xmlfile in *.xml ; do
100 | RunXmlwfWF "$xmlfile" "$xmldir/"
101 | UpdateStatus $?
102 | done
103 | rm outfile
104 | done
105 |
106 | cd "$TS/xmlconf/oasis"
107 | mkdir -p "$OUTPUT"oasis
108 | for xmlfile in *pass*.xml ; do
109 | RunXmlwfWF "$xmlfile" "oasis/"
110 | UpdateStatus $?
111 | done
112 | rm outfile
113 |
114 | ##############################
115 | # not well-formed test cases #
116 | ##############################
117 |
118 | cd "$TS/xmlconf"
119 | for xmldir in ibm/not-wf/P* \
120 | ibm/not-wf/p28a \
121 | ibm/not-wf/misc \
122 | xmltest/not-wf/ext-sa \
123 | xmltest/not-wf/not-sa \
124 | xmltest/not-wf/sa \
125 | sun/not-wf ; do
126 | cd "$TS/xmlconf/$xmldir"
127 | for xmlfile in *.xml ; do
128 | RunXmlwfNotWF "$xmlfile" "$xmldir/"
129 | UpdateStatus $?
130 | done
131 | rm outfile
132 | done
133 |
134 | cd "$TS/xmlconf/oasis"
135 | for xmlfile in *fail*.xml ; do
136 | RunXmlwfNotWF "$xmlfile" "oasis/"
137 | UpdateStatus $?
138 | done
139 | rm outfile
140 |
141 | echo "Passed: $SUCCESS"
142 | echo "Failed: $ERROR"
143 |
--------------------------------------------------------------------------------
/android/external/expat/vms/README.vms:
--------------------------------------------------------------------------------
1 | 4-jun-2002 Craig A. Berry
2 | Added rudimentary build procedures for
3 | OpenVMS based on work by Martin Vorlaender.
4 |
5 |
6 | You'll need MMS or its freeware equivalent MMK. Just go to the
7 | top-level directory and type
8 |
9 | $ MMS/DESCRIPTION=[.vms]
10 |
11 | or
12 |
13 | $ MMK/DESCRIPTION=[.vms]
14 |
15 | You'll end up with the object library expat.olb. For now, installation
16 | consists merely of copying the object library, include files, and
17 | documentation to a suitable location.
18 |
19 | To-do list:
20 |
21 | -- create a shareable image
22 | -- build and run the tests and build the xmlwf utility
23 | -- create an install target
24 |
--------------------------------------------------------------------------------
/android/external/expat/vms/descrip.mms:
--------------------------------------------------------------------------------
1 | # Bare bones description file (Makefile) for OpenVMS
2 |
3 | PACKAGE = expat
4 | VERSION = 1.95.8
5 | EXPAT_MAJOR_VERSION=1
6 | EXPAT_MINOR_VERSION=95
7 | EXPAT_EDIT=8
8 |
9 | O = .obj
10 | OLB = .olb
11 |
12 | LIBRARY = expat$(OLB)
13 | LIBDIR = [.lib]
14 | SOURCES = $(LIBDIR)xmlparse.c $(LIBDIR)xmltok.c $(LIBDIR)xmlrole.c
15 | OBJECTS = xmlparse$(O) xmltok$(O) xmlrole$(O)
16 |
17 | TEMPLATES = xmltok_impl.c xmltok_ns.c
18 | APIHEADER = $(LIBDIR)expat.h
19 | HEADERS = $(LIBDIR)ascii.h $(LIBDIR)iasciitab.h $(LIBDIR)utf8tab.h $(LIBDIR)xmltok.h \
20 | $(LIBDIR)asciitab.h $(LIBDIR)latin1tab.h \
21 | $(LIBDIR)nametab.h $(LIBDIR)xmldef.h $(LIBDIR)xmlrole.h $(LIBDIR)xmltok_impl.h
22 |
23 | CONFIG_HEADER = expat_config.h
24 | INCLUDES = /INCLUDE=([],[.lib])
25 | DEFS = /DEFINE=(PACKAGE="""$(PACKAGE)""",VERSION="""$(PACKAGE)_$(VERSION)""",HAVE_EXPAT_CONFIG_H)
26 | LIBREVISION = 0
27 | LIBCURRENT = 1
28 | LIBAGE = 0
29 | #
30 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
31 | #
32 | # DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
33 | #
34 | # TAR = gtar
35 | # GZIP_ENV = --best
36 | #
37 | .FIRST :
38 | IF F$SEARCH("$(LIBRARY)") .EQS. "" THEN $(LIBR) /CREATE /OBJECT $(LIBRARY)
39 |
40 | all : $(LIBRARY)
41 | @ write sys$output "All made."
42 |
43 | .SUFFIXES :
44 | .SUFFIXES : $(OLB) $(O) .C .H
45 |
46 | .c$(O) :
47 | $(COMPILE) $(MMS$SOURCE)
48 |
49 | $(O)$(OLB) :
50 | @ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" -
51 | THEN LIBRARY/CREATE/LOG $(MMS$TARGET)
52 | @ LIBRARY /REPLACE /LOG $(MMS$TARGET) $(MMS$SOURCE)
53 |
54 | clean :
55 | DELETE $(LIBRARY);*,*$(O);*
56 |
57 | $(LIBRARY) : $(LIBRARY)( $(OBJECTS) )
58 | $(LIBR) /COMPRESS $(MMS$TARGET)
59 |
60 | $(CONFIG_HEADER) : [.vms]expat_config.h
61 | COPY/LOG $(MMS$SOURCE) $(MMS$TARGET)
62 |
63 | xmlparse$(O) : $(LIBDIR)xmlparse.c $(LIBDIR)expat.h $(LIBDIR)xmlrole.h $(LIBDIR)xmltok.h $(CONFIG_HEADER)
64 |
65 | xmlrole$(O) : $(LIBDIR)xmlrole.c $(LIBDIR)ascii.h $(LIBDIR)xmlrole.h $(CONFIG_HEADER)
66 |
67 | xmltok$(O) : $(LIBDIR)xmltok.c $(LIBDIR)xmltok_impl.c $(LIBDIR)xmltok_ns.c \
68 | $(LIBDIR)ascii.h $(LIBDIR)asciitab.h $(LIBDIR)iasciitab.h $(LIBDIR)latin1tab.h \
69 | $(LIBDIR)nametab.h $(LIBDIR)utf8tab.h $(LIBDIR)xmltok.h $(LIBDIR)xmltok_impl.h $(CONFIG_HEADER)
70 |
71 |
--------------------------------------------------------------------------------
/android/external/expat/vms/expat_config.h:
--------------------------------------------------------------------------------
1 | /* Copyright 2000, Clark Cooper
2 | All rights reserved.
3 |
4 | This is free software. You are permitted to copy, distribute, or modify
5 | it under the terms of the MIT/X license (contained in the COPYING file
6 | with this distribution.)
7 | */
8 |
9 | /* Define to empty if the keyword does not work. */
10 | #undef const
11 |
12 | /* Define if you have a working `mmap' system call. */
13 | #undef HAVE_MMAP
14 |
15 | /* Define to `long' if doesn't define. */
16 | #undef off_t
17 |
18 | /* Define to `unsigned' if doesn't define. */
19 | #undef size_t
20 |
21 | /* Define if your processor stores words with the most significant
22 | byte first (like Motorola and SPARC, unlike Intel and VAX). */
23 | #undef WORDS_BIGENDIAN
24 |
25 | /* Define if you have the bcopy function. */
26 | #undef HAVE_BCOPY
27 |
28 | /* Define if you have the memmove function. */
29 | #define HAVE_MEMMOVE 1
30 |
31 | /* Define if you have the header file. */
32 | #define HAVE_UNISTD_H 1
33 |
34 | #define XML_NS
35 | #define XML_DTD
36 |
37 | #ifdef WORDS_BIGENDIAN
38 | #define XML_BYTE_ORDER 21
39 | #else
40 | #define XML_BYTE_ORDER 12
41 | #endif
42 |
43 | #define XML_CONTEXT_BYTES 1024
44 |
45 | #ifndef HAVE_MEMMOVE
46 | #ifdef HAVE_BCOPY
47 | #define memmove(d,s,l) bcopy((s),(d),(l))
48 | #else
49 | #define memmove(d,s,l) ;punting on memmove;
50 | #endif
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/android/external/expat/win32/MANIFEST.txt:
--------------------------------------------------------------------------------
1 | Overview of the Expat distribution
2 |
3 | The Expat distribution creates several subdirectories on your system.
4 | Some of these directories contain components of interest to all Expat
5 | users, and some contain material of interest to developers who wish to
6 | use Expat in their applications. In the list below, is the
7 | directory you specified to the installer.
8 |
9 | Directory Contents
10 | ---------------------------------------------------------------------
11 | \ Some general information files.
12 |
13 | \Doc\ API documentation for developers.
14 |
15 | \Bin\ Pre-compiled dynamic libraries for developers.
16 | Pre-compiled static libraries for developers (*MT.lib).
17 | The XML well-formedness checker xmlwf.
18 |
19 | \Source\ Source code, which may interest some developers,
20 | including a workspace for Microsft Visual C++.
21 | The source code includes the parser, the well-
22 | formedness checker, and a couple of small sample
23 | applications.
24 |
25 | \Source\bcb5\ Project files for Borland C++ Builder 5 and BCC 5.5.
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android/external/expat/win32/README.txt:
--------------------------------------------------------------------------------
1 |
2 | Expat can be built on Windows in three ways:
3 | using MS Visual C++ (6.0 or .NET), Borland C++ Builder 5 or Cygwin.
4 |
5 | * Cygwin:
6 | This follows the Unix build procedures.
7 |
8 | * C++ Builder 5:
9 | Possible with make files in the BCB5 subdirectory.
10 | Details can be found in the ReadMe file located there.
11 |
12 | * MS Visual C++ 6:
13 | Based on the workspace file expat.dsw. The related project
14 | files (.dsp) are located in the lib subdirectory.
15 |
16 | * MS Visual Studio .NET 2002, 2003, 2005, 2008, 2010:
17 | The VC++ 6 workspace file (expat.dsw) and project files (.dsp)
18 | can be opened and imported in VS.NET without problems.
19 |
20 | * All MS C/C++ compilers:
21 | The output for all projects will be generated in the win32\bin
22 | directory, intermediate files will be located in project-specific
23 | subdirectories of win32\tmp.
24 |
25 | * Creating MinGW dynamic libraries from MS VC++ DLLs:
26 |
27 | On the command line, execute these steps:
28 | pexports libexpat.dll > expat.def
29 | pexports libexpatw.dll > expatw.def
30 | dlltool -d expat.def -l libexpat.a
31 | dlltool -d expatw.def -l libexpatw.a
32 |
33 | The *.a files are mingw libraries.
34 |
35 | * Special note about MS VC++ and runtime libraries:
36 |
37 | There are three possible configurations: using the
38 | single threaded or multithreaded run-time library,
39 | or using the multi-threaded run-time Dll. That is,
40 | one can build three different Expat libraries depending
41 | on the needs of the application.
42 |
43 | Dynamic Linking:
44 |
45 | By default the Expat Dlls are built to link statically
46 | with the multi-threaded run-time library.
47 | The libraries are named
48 | - libexpat(w).dll
49 | - libexpat(w).lib (import library)
50 | The "w" indicates the UTF-16 version of the library.
51 |
52 | One rarely uses other versions of the Dll, but they can
53 | be built easily by specifying a different RTL linkage in
54 | the IDE on the C/C++ tab under the category Code Generation.
55 |
56 | Static Linking:
57 |
58 | The libraries should be named like this:
59 | Single-theaded: libexpat(w)ML.lib
60 | Multi-threaded: libexpat(w)MT.lib
61 | Multi-threaded Dll: libexpat(w)MD.lib
62 | The suffixes conform to the compiler switch settings
63 | /ML, /MT and /MD for MS VC++.
64 |
65 | Note: In Visual Studio 2005 (Visual C++ 8.0) and later, the
66 | single-threaded runtime library is not supported anymore.
67 |
68 | By default, the expat-static and expatw-static projects are set up
69 | to link statically against the multithreaded run-time library,
70 | so they will build libexpatMT.lib or libexpatwMT.lib files.
71 |
72 | To build the other versions of the static library,
73 | go to Project - Settings:
74 | - specify a different RTL linkage on the C/C++ tab
75 | under the category Code Generation.
76 | - then, on the Library tab, change the output file name
77 | accordingly, as described above
78 |
79 | An application linking to the static libraries must
80 | have the global macro XML_STATIC defined.
81 |
--------------------------------------------------------------------------------
/android/external/expat/win32/expat.iss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bigfatbrowncat/avian-pack/43faa7764cbeef1d97e4483720f4975a7a90af84/android/external/expat/win32/expat.iss
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/codepage.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #include "codepage.h"
6 |
7 | #if (defined(WIN32) || (defined(__WATCOMC__) && defined(__NT__)))
8 | #define STRICT 1
9 | #define WIN32_LEAN_AND_MEAN 1
10 |
11 | #include
12 |
13 | int
14 | codepageMap(int cp, int *map)
15 | {
16 | int i;
17 | CPINFO info;
18 | if (!GetCPInfo(cp, &info) || info.MaxCharSize > 2)
19 | return 0;
20 | for (i = 0; i < 256; i++)
21 | map[i] = -1;
22 | if (info.MaxCharSize > 1) {
23 | for (i = 0; i < MAX_LEADBYTES; i+=2) {
24 | int j, lim;
25 | if (info.LeadByte[i] == 0 && info.LeadByte[i + 1] == 0)
26 | break;
27 | lim = info.LeadByte[i + 1];
28 | for (j = info.LeadByte[i]; j <= lim; j++)
29 | map[j] = -2;
30 | }
31 | }
32 | for (i = 0; i < 256; i++) {
33 | if (map[i] == -1) {
34 | char c = (char)i;
35 | unsigned short n;
36 | if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS,
37 | &c, 1, &n, 1) == 1)
38 | map[i] = n;
39 | }
40 | }
41 | return 1;
42 | }
43 |
44 | int
45 | codepageConvert(int cp, const char *p)
46 | {
47 | unsigned short c;
48 | if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS,
49 | p, 2, &c, 1) == 1)
50 | return c;
51 | return -1;
52 | }
53 |
54 | #else /* not WIN32 */
55 |
56 | int
57 | codepageMap(int cp, int *map)
58 | {
59 | return 0;
60 | }
61 |
62 | int
63 | codepageConvert(int cp, const char *p)
64 | {
65 | return -1;
66 | }
67 |
68 | #endif /* not WIN32 */
69 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/codepage.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | int codepageMap(int cp, int *map);
6 | int codepageConvert(int cp, const char *p);
7 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/ct.c:
--------------------------------------------------------------------------------
1 | #define CHARSET_MAX 41
2 |
3 | static const char *
4 | getTok(const char **pp)
5 | {
6 | enum { inAtom, inString, init, inComment };
7 | int state = init;
8 | const char *tokStart = 0;
9 | for (;;) {
10 | switch (**pp) {
11 | case '\0':
12 | return 0;
13 | case ' ':
14 | case '\r':
15 | case '\t':
16 | case '\n':
17 | if (state == inAtom)
18 | return tokStart;
19 | break;
20 | case '(':
21 | if (state == inAtom)
22 | return tokStart;
23 | if (state != inString)
24 | state++;
25 | break;
26 | case ')':
27 | if (state > init)
28 | --state;
29 | else if (state != inString)
30 | return 0;
31 | break;
32 | case ';':
33 | case '/':
34 | case '=':
35 | if (state == inAtom)
36 | return tokStart;
37 | if (state == init)
38 | return (*pp)++;
39 | break;
40 | case '\\':
41 | ++*pp;
42 | if (**pp == '\0')
43 | return 0;
44 | break;
45 | case '"':
46 | switch (state) {
47 | case inString:
48 | ++*pp;
49 | return tokStart;
50 | case inAtom:
51 | return tokStart;
52 | case init:
53 | tokStart = *pp;
54 | state = inString;
55 | break;
56 | }
57 | break;
58 | default:
59 | if (state == init) {
60 | tokStart = *pp;
61 | state = inAtom;
62 | }
63 | break;
64 | }
65 | ++*pp;
66 | }
67 | /* not reached */
68 | }
69 |
70 | /* key must be lowercase ASCII */
71 |
72 | static int
73 | matchkey(const char *start, const char *end, const char *key)
74 | {
75 | if (!start)
76 | return 0;
77 | for (; start != end; start++, key++)
78 | if (*start != *key && *start != 'A' + (*key - 'a'))
79 | return 0;
80 | return *key == '\0';
81 | }
82 |
83 | void
84 | getXMLCharset(const char *buf, char *charset)
85 | {
86 | const char *next, *p;
87 |
88 | charset[0] = '\0';
89 | next = buf;
90 | p = getTok(&next);
91 | if (matchkey(p, next, "text"))
92 | strcpy(charset, "us-ascii");
93 | else if (!matchkey(p, next, "application"))
94 | return;
95 | p = getTok(&next);
96 | if (!p || *p != '/')
97 | return;
98 | p = getTok(&next);
99 | if (matchkey(p, next, "xml"))
100 | isXml = 1;
101 | p = getTok(&next);
102 | while (p) {
103 | if (*p == ';') {
104 | p = getTok(&next);
105 | if (matchkey(p, next, "charset")) {
106 | p = getTok(&next);
107 | if (p && *p == '=') {
108 | p = getTok(&next);
109 | if (p) {
110 | char *s = charset;
111 | if (*p == '"') {
112 | while (++p != next - 1) {
113 | if (*p == '\\')
114 | ++p;
115 | if (s == charset + CHARSET_MAX - 1) {
116 | charset[0] = '\0';
117 | break;
118 | }
119 | *s++ = *p;
120 | }
121 | *s++ = '\0';
122 | }
123 | else {
124 | if (next - p > CHARSET_MAX - 1)
125 | break;
126 | while (p != next)
127 | *s++ = *p++;
128 | *s = 0;
129 | break;
130 | }
131 | }
132 | }
133 | }
134 | }
135 | else
136 | p = getTok(&next);
137 | }
138 | }
139 |
140 | int
141 | main(int argc, char **argv)
142 | {
143 | char buf[CHARSET_MAX];
144 | getXMLCharset(argv[1], buf);
145 | printf("charset = \"%s\"\n", buf);
146 | return 0;
147 | }
148 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/filemap.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #include
6 |
7 | #ifdef XML_UNICODE
8 | int filemap(const wchar_t *name,
9 | void (*processor)(const void *, size_t,
10 | const wchar_t *, void *arg),
11 | void *arg);
12 | #else
13 | int filemap(const char *name,
14 | void (*processor)(const void *, size_t,
15 | const char *, void *arg),
16 | void *arg);
17 | #endif
18 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/readfilemap.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 |
11 | #ifdef __WATCOMC__
12 | #ifndef __LINUX__
13 | #include
14 | #else
15 | #include
16 | #endif
17 | #endif
18 |
19 | #ifdef __BEOS__
20 | #include
21 | #endif
22 |
23 | #ifndef S_ISREG
24 | #ifndef S_IFREG
25 | #define S_IFREG _S_IFREG
26 | #endif
27 | #ifndef S_IFMT
28 | #define S_IFMT _S_IFMT
29 | #endif
30 | #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
31 | #endif /* not S_ISREG */
32 |
33 | #ifndef O_BINARY
34 | #ifdef _O_BINARY
35 | #define O_BINARY _O_BINARY
36 | #else
37 | #define O_BINARY 0
38 | #endif
39 | #endif
40 |
41 | #include "filemap.h"
42 |
43 | int
44 | filemap(const char *name,
45 | void (*processor)(const void *, size_t, const char *, void *arg),
46 | void *arg)
47 | {
48 | size_t nbytes;
49 | int fd;
50 | int n;
51 | struct stat sb;
52 | void *p;
53 |
54 | fd = open(name, O_RDONLY|O_BINARY);
55 | if (fd < 0) {
56 | perror(name);
57 | return 0;
58 | }
59 | if (fstat(fd, &sb) < 0) {
60 | perror(name);
61 | close(fd);
62 | return 0;
63 | }
64 | if (!S_ISREG(sb.st_mode)) {
65 | fprintf(stderr, "%s: not a regular file\n", name);
66 | close(fd);
67 | return 0;
68 | }
69 | nbytes = sb.st_size;
70 | /* malloc will return NULL with nbytes == 0, handle files with size 0 */
71 | if (nbytes == 0) {
72 | static const char c = '\0';
73 | processor(&c, 0, name, arg);
74 | close(fd);
75 | return 1;
76 | }
77 | p = malloc(nbytes);
78 | if (!p) {
79 | fprintf(stderr, "%s: out of memory\n", name);
80 | close(fd);
81 | return 0;
82 | }
83 | n = read(fd, p, nbytes);
84 | if (n < 0) {
85 | perror(name);
86 | free(p);
87 | close(fd);
88 | return 0;
89 | }
90 | if (n != nbytes) {
91 | fprintf(stderr, "%s: read unexpected number of bytes\n", name);
92 | free(p);
93 | close(fd);
94 | return 0;
95 | }
96 | processor(p, nbytes, name, arg);
97 | free(p);
98 | close(fd);
99 | return 1;
100 | }
101 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/unixfilemap.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include
13 |
14 | #ifndef MAP_FILE
15 | #define MAP_FILE 0
16 | #endif
17 |
18 | #include "filemap.h"
19 |
20 | int
21 | filemap(const char *name,
22 | void (*processor)(const void *, size_t, const char *, void *arg),
23 | void *arg)
24 | {
25 | int fd;
26 | size_t nbytes;
27 | struct stat sb;
28 | void *p;
29 |
30 | fd = open(name, O_RDONLY);
31 | if (fd < 0) {
32 | perror(name);
33 | return 0;
34 | }
35 | if (fstat(fd, &sb) < 0) {
36 | perror(name);
37 | close(fd);
38 | return 0;
39 | }
40 | if (!S_ISREG(sb.st_mode)) {
41 | close(fd);
42 | fprintf(stderr, "%s: not a regular file\n", name);
43 | return 0;
44 | }
45 |
46 | nbytes = sb.st_size;
47 | /* mmap fails for zero length files */
48 | if (nbytes == 0) {
49 | static const char c = '\0';
50 | processor(&c, 0, name, arg);
51 | close(fd);
52 | return 1;
53 | }
54 | p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ,
55 | MAP_FILE|MAP_PRIVATE, fd, (off_t)0);
56 | if (p == (void *)-1) {
57 | perror(name);
58 | close(fd);
59 | return 0;
60 | }
61 | processor(p, nbytes, name, arg);
62 | munmap((caddr_t)p, nbytes);
63 | close(fd);
64 | return 1;
65 | }
66 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/win32filemap.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #define STRICT 1
6 | #define WIN32_LEAN_AND_MEAN 1
7 |
8 | #ifdef XML_UNICODE_WCHAR_T
9 | #ifndef XML_UNICODE
10 | #define XML_UNICODE
11 | #endif
12 | #endif
13 |
14 | #ifdef XML_UNICODE
15 | #define UNICODE
16 | #define _UNICODE
17 | #endif /* XML_UNICODE */
18 | #include
19 | #include
20 | #include
21 | #include "filemap.h"
22 |
23 | static void win32perror(const TCHAR *);
24 |
25 | int
26 | filemap(const TCHAR *name,
27 | void (*processor)(const void *, size_t, const TCHAR *, void *arg),
28 | void *arg)
29 | {
30 | HANDLE f;
31 | HANDLE m;
32 | DWORD size;
33 | DWORD sizeHi;
34 | void *p;
35 |
36 | f = CreateFile(name, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING,
37 | FILE_FLAG_SEQUENTIAL_SCAN, NULL);
38 | if (f == INVALID_HANDLE_VALUE) {
39 | win32perror(name);
40 | return 0;
41 | }
42 | size = GetFileSize(f, &sizeHi);
43 | if (size == (DWORD)-1) {
44 | win32perror(name);
45 | return 0;
46 | }
47 | if (sizeHi) {
48 | _ftprintf(stderr, _T("%s: bigger than 2Gb\n"), name);
49 | return 0;
50 | }
51 | /* CreateFileMapping barfs on zero length files */
52 | if (size == 0) {
53 | static const char c = '\0';
54 | processor(&c, 0, name, arg);
55 | CloseHandle(f);
56 | return 1;
57 | }
58 | m = CreateFileMapping(f, NULL, PAGE_READONLY, 0, 0, NULL);
59 | if (m == NULL) {
60 | win32perror(name);
61 | CloseHandle(f);
62 | return 0;
63 | }
64 | p = MapViewOfFile(m, FILE_MAP_READ, 0, 0, 0);
65 | if (p == NULL) {
66 | win32perror(name);
67 | CloseHandle(m);
68 | CloseHandle(f);
69 | return 0;
70 | }
71 | processor(p, size, name, arg);
72 | UnmapViewOfFile(p);
73 | CloseHandle(m);
74 | CloseHandle(f);
75 | return 1;
76 | }
77 |
78 | static void
79 | win32perror(const TCHAR *s)
80 | {
81 | LPVOID buf;
82 | if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER
83 | | FORMAT_MESSAGE_FROM_SYSTEM,
84 | NULL,
85 | GetLastError(),
86 | MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
87 | (LPTSTR) &buf,
88 | 0,
89 | NULL)) {
90 | _ftprintf(stderr, _T("%s: %s"), s, buf);
91 | fflush(stderr);
92 | LocalFree(buf);
93 | }
94 | else
95 | _ftprintf(stderr, _T("%s: unknown Windows error\n"), s);
96 | }
97 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/xmlfile.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2 | See the file COPYING for copying permission.
3 | */
4 |
5 | #define XML_MAP_FILE 01
6 | #define XML_EXTERNAL_ENTITIES 02
7 |
8 | #ifdef XML_LARGE_SIZE
9 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
10 | #define XML_FMT_INT_MOD "I64"
11 | #else
12 | #define XML_FMT_INT_MOD "ll"
13 | #endif
14 | #else
15 | #define XML_FMT_INT_MOD "l"
16 | #endif
17 |
18 | extern int XML_ProcessFile(XML_Parser parser,
19 | const XML_Char *filename,
20 | unsigned flags);
21 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/xmlmime.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include "xmlmime.h"
3 |
4 | static const char *
5 | getTok(const char **pp)
6 | {
7 | /* inComment means one level of nesting; inComment+1 means two levels etc */
8 | enum { inAtom, inString, init, inComment };
9 | int state = init;
10 | const char *tokStart = 0;
11 | for (;;) {
12 | switch (**pp) {
13 | case '\0':
14 | if (state == inAtom)
15 | return tokStart;
16 | return 0;
17 | case ' ':
18 | case '\r':
19 | case '\t':
20 | case '\n':
21 | if (state == inAtom)
22 | return tokStart;
23 | break;
24 | case '(':
25 | if (state == inAtom)
26 | return tokStart;
27 | if (state != inString)
28 | state++;
29 | break;
30 | case ')':
31 | if (state > init)
32 | --state;
33 | else if (state != inString)
34 | return 0;
35 | break;
36 | case ';':
37 | case '/':
38 | case '=':
39 | if (state == inAtom)
40 | return tokStart;
41 | if (state == init)
42 | return (*pp)++;
43 | break;
44 | case '\\':
45 | ++*pp;
46 | if (**pp == '\0')
47 | return 0;
48 | break;
49 | case '"':
50 | switch (state) {
51 | case inString:
52 | ++*pp;
53 | return tokStart;
54 | case inAtom:
55 | return tokStart;
56 | case init:
57 | tokStart = *pp;
58 | state = inString;
59 | break;
60 | }
61 | break;
62 | default:
63 | if (state == init) {
64 | tokStart = *pp;
65 | state = inAtom;
66 | }
67 | break;
68 | }
69 | ++*pp;
70 | }
71 | /* not reached */
72 | }
73 |
74 | /* key must be lowercase ASCII */
75 |
76 | static int
77 | matchkey(const char *start, const char *end, const char *key)
78 | {
79 | if (!start)
80 | return 0;
81 | for (; start != end; start++, key++)
82 | if (*start != *key && *start != 'A' + (*key - 'a'))
83 | return 0;
84 | return *key == '\0';
85 | }
86 |
87 | void
88 | getXMLCharset(const char *buf, char *charset)
89 | {
90 | const char *next, *p;
91 |
92 | charset[0] = '\0';
93 | next = buf;
94 | p = getTok(&next);
95 | if (matchkey(p, next, "text"))
96 | strcpy(charset, "us-ascii");
97 | else if (!matchkey(p, next, "application"))
98 | return;
99 | p = getTok(&next);
100 | if (!p || *p != '/')
101 | return;
102 | p = getTok(&next);
103 | #if 0
104 | if (!matchkey(p, next, "xml") && charset[0] == '\0')
105 | return;
106 | #endif
107 | p = getTok(&next);
108 | while (p) {
109 | if (*p == ';') {
110 | p = getTok(&next);
111 | if (matchkey(p, next, "charset")) {
112 | p = getTok(&next);
113 | if (p && *p == '=') {
114 | p = getTok(&next);
115 | if (p) {
116 | char *s = charset;
117 | if (*p == '"') {
118 | while (++p != next - 1) {
119 | if (*p == '\\')
120 | ++p;
121 | if (s == charset + CHARSET_MAX - 1) {
122 | charset[0] = '\0';
123 | break;
124 | }
125 | *s++ = *p;
126 | }
127 | *s++ = '\0';
128 | }
129 | else {
130 | if (next - p > CHARSET_MAX - 1)
131 | break;
132 | while (p != next)
133 | *s++ = *p++;
134 | *s = 0;
135 | break;
136 | }
137 | }
138 | }
139 | break;
140 | }
141 | }
142 | else
143 | p = getTok(&next);
144 | }
145 | }
146 |
147 | #ifdef TEST
148 |
149 | #include
150 |
151 | int
152 | main(int argc, char *argv[])
153 | {
154 | char buf[CHARSET_MAX];
155 | if (argc <= 1)
156 | return 1;
157 | printf("%s\n", argv[1]);
158 | getXMLCharset(argv[1], buf);
159 | printf("charset=\"%s\"\n", buf);
160 | return 0;
161 | }
162 |
163 | #endif /* TEST */
164 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/xmlmime.h:
--------------------------------------------------------------------------------
1 | #ifdef __cplusplus
2 | extern "C" {
3 | #endif
4 |
5 | /* Registered charset names are at most 40 characters long. */
6 |
7 | #define CHARSET_MAX 41
8 |
9 | /* Figure out the charset to use from the ContentType.
10 | buf contains the body of the header field (the part after "Content-Type:").
11 | charset gets the charset to use. It must be at least CHARSET_MAX chars
12 | long. charset will be empty if the default charset should be used.
13 | */
14 |
15 | void getXMLCharset(const char *buf, char *charset);
16 |
17 | #ifdef __cplusplus
18 | }
19 | #endif
20 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/xmltchar.h:
--------------------------------------------------------------------------------
1 | #ifdef XML_UNICODE
2 | #ifndef XML_UNICODE_WCHAR_T
3 | #error xmlwf requires a 16-bit Unicode-compatible wchar_t
4 | #endif
5 | #define T(x) L ## x
6 | #define ftprintf fwprintf
7 | #define tfopen _wfopen
8 | #define fputts fputws
9 | #define puttc putwc
10 | #define tcscmp wcscmp
11 | #define tcscpy wcscpy
12 | #define tcscat wcscat
13 | #define tcschr wcschr
14 | #define tcsrchr wcsrchr
15 | #define tcslen wcslen
16 | #define tperror _wperror
17 | #define topen _wopen
18 | #define tmain wmain
19 | #define tremove _wremove
20 | #else /* not XML_UNICODE */
21 | #define T(x) x
22 | #define ftprintf fprintf
23 | #define tfopen fopen
24 | #define fputts fputs
25 | #define puttc putc
26 | #define tcscmp strcmp
27 | #define tcscpy strcpy
28 | #define tcscat strcat
29 | #define tcschr strchr
30 | #define tcsrchr strrchr
31 | #define tcslen strlen
32 | #define tperror perror
33 | #define topen open
34 | #define tmain main
35 | #define tremove remove
36 | #endif /* not XML_UNICODE */
37 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/xmlurl.h:
--------------------------------------------------------------------------------
1 | #ifdef __cplusplus
2 | extern "C" {
3 | #endif
4 |
5 | int XML_URLInit();
6 | void XML_URLUninit();
7 | int XML_ProcessURL(XML_Parser parser,
8 | const XML_Char *url,
9 | unsigned flags);
10 |
11 | #ifdef __cplusplus
12 | }
13 | #endif
14 |
--------------------------------------------------------------------------------
/android/external/expat/xmlwf/xmlwf.dsp:
--------------------------------------------------------------------------------
1 | # Microsoft Developer Studio Project File - Name="xmlwf" - Package Owner=<4>
2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00
3 | # ** DO NOT EDIT **
4 |
5 | # TARGTYPE "Win32 (x86) Console Application" 0x0103
6 |
7 | CFG=xmlwf - Win32 Release
8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 | !MESSAGE use the Export Makefile command and run
10 | !MESSAGE
11 | !MESSAGE NMAKE /f "xmlwf.mak".
12 | !MESSAGE
13 | !MESSAGE You can specify a configuration when running NMAKE
14 | !MESSAGE by defining the macro CFG on the command line. For example:
15 | !MESSAGE
16 | !MESSAGE NMAKE /f "xmlwf.mak" CFG="xmlwf - Win32 Release"
17 | !MESSAGE
18 | !MESSAGE Possible choices for configuration are:
19 | !MESSAGE
20 | !MESSAGE "xmlwf - Win32 Release" (based on "Win32 (x86) Console Application")
21 | !MESSAGE "xmlwf - Win32 Debug" (based on "Win32 (x86) Console Application")
22 | !MESSAGE
23 |
24 | # Begin Project
25 | # PROP AllowPerConfigDependencies 0
26 | # PROP Scc_ProjName ""
27 | # PROP Scc_LocalPath ""
28 | CPP=cl.exe
29 | RSC=rc.exe
30 |
31 | !IF "$(CFG)" == "xmlwf - Win32 Release"
32 |
33 | # PROP BASE Use_MFC 0
34 | # PROP BASE Use_Debug_Libraries 0
35 | # PROP BASE Output_Dir ".\Release"
36 | # PROP BASE Intermediate_Dir ".\Release"
37 | # PROP BASE Target_Dir "."
38 | # PROP Use_MFC 0
39 | # PROP Use_Debug_Libraries 0
40 | # PROP Output_Dir "..\win32\bin\Release"
41 | # PROP Intermediate_Dir "..\win32\tmp\Release-xmlwf"
42 | # PROP Ignore_Export_Lib 0
43 | # PROP Target_Dir "."
44 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c
45 | # ADD CPP /nologo /MT /W3 /GX /O2 /I "..\lib" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "COMPILED_FROM_DSP" /FD /c
46 | # SUBTRACT CPP /YX /Yc /Yu
47 | # ADD BASE RSC /l 0x809 /d "NDEBUG"
48 | # ADD RSC /l 0x409 /d "NDEBUG"
49 | BSC32=bscmake.exe
50 | # ADD BASE BSC32 /nologo
51 | # ADD BSC32 /nologo
52 | LINK32=link.exe
53 | # ADD BASE LINK32 /nologo /subsystem:console /machine:I386
54 | # ADD LINK32 libexpat.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /libpath:"..\win32\bin\Release" /out:"..\win32\bin\Release\xmlwf.exe"
55 | # SUBTRACT LINK32 /nodefaultlib
56 |
57 | !ELSEIF "$(CFG)" == "xmlwf - Win32 Debug"
58 |
59 | # PROP BASE Use_MFC 0
60 | # PROP BASE Use_Debug_Libraries 1
61 | # PROP BASE Output_Dir ".\Debug"
62 | # PROP BASE Intermediate_Dir ".\Debug"
63 | # PROP BASE Target_Dir "."
64 | # PROP Use_MFC 0
65 | # PROP Use_Debug_Libraries 1
66 | # PROP Output_Dir "..\win32\bin\Debug"
67 | # PROP Intermediate_Dir "..\win32\tmp\Debug-xmlwf"
68 | # PROP Ignore_Export_Lib 0
69 | # PROP Target_Dir "."
70 | # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c
71 | # ADD CPP /nologo /MTd /W3 /GX /ZI /Od /I "..\lib" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "COMPILED_FROM_DSP" /FD /c
72 | # SUBTRACT CPP /Fr /YX
73 | # ADD BASE RSC /l 0x809 /d "_DEBUG"
74 | # ADD RSC /l 0x409 /d "_DEBUG"
75 | BSC32=bscmake.exe
76 | # ADD BASE BSC32 /nologo
77 | # ADD BSC32 /nologo
78 | LINK32=link.exe
79 | # ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386
80 | # ADD LINK32 libexpat.lib setargv.obj /nologo /subsystem:console /pdb:none /debug /machine:I386 /libpath:"..\win32\bin\Debug" /out:"..\win32\bin\Debug\xmlwf.exe"
81 |
82 | !ENDIF
83 |
84 | # Begin Target
85 |
86 | # Name "xmlwf - Win32 Release"
87 | # Name "xmlwf - Win32 Debug"
88 | # Begin Group "Source Files"
89 |
90 | # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90"
91 | # Begin Source File
92 |
93 | SOURCE=.\codepage.c
94 | # End Source File
95 | # Begin Source File
96 |
97 | SOURCE=.\readfilemap.c
98 | # PROP Exclude_From_Build 1
99 | # End Source File
100 | # Begin Source File
101 |
102 | SOURCE=.\unixfilemap.c
103 | # PROP Exclude_From_Build 1
104 | # End Source File
105 | # Begin Source File
106 |
107 | SOURCE=.\win32filemap.c
108 | # End Source File
109 | # Begin Source File
110 |
111 | SOURCE=.\xmlfile.c
112 | # End Source File
113 | # Begin Source File
114 |
115 | SOURCE=.\xmlwf.c
116 | # End Source File
117 | # End Group
118 | # Begin Group "Header Files"
119 |
120 | # PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
121 | # Begin Source File
122 |
123 | SOURCE=.\codepage.h
124 | # End Source File
125 | # Begin Source File
126 |
127 | SOURCE=.\xmlfile.h
128 | # End Source File
129 | # Begin Source File
130 |
131 | SOURCE=.\xmltchar.h
132 | # End Source File
133 | # End Group
134 | # Begin Group "Resource Files"
135 |
136 | # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
137 | # End Group
138 | # End Target
139 | # End Project
140 |
--------------------------------------------------------------------------------
/patch/expat/expat_config.h.in.patch:
--------------------------------------------------------------------------------
1 | diff --git a/android/external/expat/expat_config.h.in b/android/external/expat/expat_config.h.in
2 | index 8c6e514..358ddcc 100644
3 | --- a/android/external/expat/expat_config.h.in
4 | +++ b/android/external/expat/expat_config.h.in
5 | @@ -19,7 +19,7 @@
6 | #undef HAVE_INTTYPES_H
7 |
8 | /* Define to 1 if you have the `memmove' function. */
9 | -#undef HAVE_MEMMOVE
10 | +#define HAVE_MEMMOVE 1
11 |
12 | /* Define to 1 if you have the header file. */
13 | #undef HAVE_MEMORY_H
14 |
--------------------------------------------------------------------------------
/patch/libnativehelper_jni.h.win32.patch:
--------------------------------------------------------------------------------
1 | diff --git a/include/nativehelper/jni.h b/include/nativehelper/jni.h
2 | index 1c2fb0c..040c4e6 100644
3 | --- a/include/nativehelper/jni.h
4 | +++ b/include/nativehelper/jni.h
5 | @@ -30,7 +30,7 @@
6 | /* Primitive types that match up with Java equivalents. */
7 | typedef uint8_t jboolean; /* unsigned 8 bits */
8 | typedef int8_t jbyte; /* signed 8 bits */
9 | -typedef uint16_t jchar; /* unsigned 16 bits */
10 | +typedef wchar_t jchar; /* <-- modified */
11 | typedef int16_t jshort; /* signed 16 bits */
12 | typedef int32_t jint; /* signed 32 bits */
13 | typedef int64_t jlong; /* signed 64 bits */
14 |
--------------------------------------------------------------------------------
/patch/luni/java_util_EnumMap.java.patch:
--------------------------------------------------------------------------------
1 | diff --git a/luni/src/main/java/java/util/EnumMap.java b/luni/src/main/java/java/util/EnumMap.java
2 | index dfacb46..a787dda 100644
3 | --- a/luni/src/main/java/java/util/EnumMap.java
4 | +++ b/luni/src/main/java/java/util/EnumMap.java
5 | @@ -159,7 +159,7 @@ public class EnumMap, V> extends AbstractMap implements
6 | throw new NoSuchElementException();
7 | }
8 | prePosition = position++;
9 | - return type.get(new MapEntry(enumMap.keys[prePosition],
10 | + return (E)type.get(new MapEntry(enumMap.keys[prePosition],
11 | enumMap.values[prePosition]));
12 | }
--------------------------------------------------------------------------------
/patch/openssl/openssl-upstream_Makefile.org.patch:
--------------------------------------------------------------------------------
1 | diff --git a/Makefile.org b/Makefile.org
2 | index c92806f..79ec614 100644
3 | --- a/Makefile.org
4 | +++ b/Makefile.org
5 | @@ -142,12 +142,12 @@ SHLIBDIRS= crypto ssl
6 | # dirs in crypto to build
7 | SDIRS= \
8 | objects \
9 | - md2 md4 md5 sha mdc2 hmac ripemd whrlpool \
10 | - des aes rc2 rc4 rc5 idea bf cast camellia seed modes \
11 | + md4 md5 sha mdc2 hmac ripemd whrlpool \
12 | + des aes rc2 rc4 idea bf cast camellia seed modes \
13 | bn ec rsa dsa ecdsa dh ecdh dso engine \
14 | buffer bio stack lhash rand err \
15 | evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 \
16 | - cms pqueue ts jpake srp store cmac
17 | + cms pqueue ts srp cmac
18 | # keep in mind that the above list is adjusted by ./Configure
19 | # according to no-xxx arguments...
20 |
21 |
--------------------------------------------------------------------------------
/patch/zlib/zconf.h:
--------------------------------------------------------------------------------
1 | #include "src/zconf.h"
--------------------------------------------------------------------------------
/patch/zlib/zlib.h:
--------------------------------------------------------------------------------
1 | #include "src/zlib.h"
--------------------------------------------------------------------------------
/patch/zlib/zutil.h:
--------------------------------------------------------------------------------
1 | #include "src/zutil.h"
--------------------------------------------------------------------------------