Revision: 3749
http://svn.sourceforge.net/winmerge/?rev=3749&view=rev
Author: kimmov
Date: 2006-11-01 07:36:35 -0800 (Wed, 01 Nov 2006)
Log Message:
-----------
Add Expat version 2.0.0 to /Externals/expat
Added Paths:
-----------
trunk/Externals/expat/
trunk/Externals/expat/COPYING
trunk/Externals/expat/Changes
trunk/Externals/expat/MANIFEST
trunk/Externals/expat/Makefile.in
trunk/Externals/expat/README
trunk/Externals/expat/amiga/
trunk/Externals/expat/amiga/Makefile
trunk/Externals/expat/amiga/README.txt
trunk/Externals/expat/amiga/expat.xml
trunk/Externals/expat/amiga/expat_lib.c
trunk/Externals/expat/amiga/expat_vectors.c
trunk/Externals/expat/amiga/include/
trunk/Externals/expat/amiga/include/inline4/
trunk/Externals/expat/amiga/include/inline4/expat.h
trunk/Externals/expat/amiga/include/interfaces/
trunk/Externals/expat/amiga/include/interfaces/expat.h
trunk/Externals/expat/amiga/include/libraries/
trunk/Externals/expat/amiga/include/libraries/expat.h
trunk/Externals/expat/amiga/include/proto/
trunk/Externals/expat/amiga/include/proto/expat.h
trunk/Externals/expat/amiga/launch.c
trunk/Externals/expat/amiga/stdlib.c
trunk/Externals/expat/bcb5/
trunk/Externals/expat/bcb5/README.txt
trunk/Externals/expat/bcb5/all_projects.bpg
trunk/Externals/expat/bcb5/elements.bpf
trunk/Externals/expat/bcb5/elements.bpr
trunk/Externals/expat/bcb5/elements.mak
trunk/Externals/expat/bcb5/expat.bpf
trunk/Externals/expat/bcb5/expat.bpr
trunk/Externals/expat/bcb5/expat.mak
trunk/Externals/expat/bcb5/expat_static.bpf
trunk/Externals/expat/bcb5/expat_static.bpr
trunk/Externals/expat/bcb5/expat_static.mak
trunk/Externals/expat/bcb5/expatw.bpf
trunk/Externals/expat/bcb5/expatw.bpr
trunk/Externals/expat/bcb5/expatw.mak
trunk/Externals/expat/bcb5/expatw_static.bpf
trunk/Externals/expat/bcb5/expatw_static.bpr
trunk/Externals/expat/bcb5/expatw_static.mak
trunk/Externals/expat/bcb5/libexpat_mtd.def
trunk/Externals/expat/bcb5/libexpatw_mtd.def
trunk/Externals/expat/bcb5/makefile.mak
trunk/Externals/expat/bcb5/outline.bpf
trunk/Externals/expat/bcb5/outline.bpr
trunk/Externals/expat/bcb5/outline.mak
trunk/Externals/expat/bcb5/setup.bat
trunk/Externals/expat/bcb5/xmlwf.bpf
trunk/Externals/expat/bcb5/xmlwf.bpr
trunk/Externals/expat/bcb5/xmlwf.mak
trunk/Externals/expat/configure
trunk/Externals/expat/configure.in
trunk/Externals/expat/conftools/
trunk/Externals/expat/conftools/PrintPath
trunk/Externals/expat/conftools/ac_c_bigendian_cross.m4
trunk/Externals/expat/conftools/config.guess
trunk/Externals/expat/conftools/config.sub
trunk/Externals/expat/conftools/expat.m4
trunk/Externals/expat/conftools/get-version.sh
trunk/Externals/expat/conftools/install-sh
trunk/Externals/expat/conftools/libtool.m4
trunk/Externals/expat/conftools/ltmain.sh
trunk/Externals/expat/conftools/mkinstalldirs
trunk/Externals/expat/doc/
trunk/Externals/expat/doc/expat.png
trunk/Externals/expat/doc/reference.html
trunk/Externals/expat/doc/style.css
trunk/Externals/expat/doc/valid-xhtml10.png
trunk/Externals/expat/doc/xmlwf.1
trunk/Externals/expat/doc/xmlwf.sgml
trunk/Externals/expat/examples/
trunk/Externals/expat/examples/elements.c
trunk/Externals/expat/examples/elements.dsp
trunk/Externals/expat/examples/outline.c
trunk/Externals/expat/examples/outline.dsp
trunk/Externals/expat/expat.dsw
trunk/Externals/expat/expat_config.h.in
trunk/Externals/expat/lib/
trunk/Externals/expat/lib/Makefile.MPW
trunk/Externals/expat/lib/amigaconfig.h
trunk/Externals/expat/lib/ascii.h
trunk/Externals/expat/lib/asciitab.h
trunk/Externals/expat/lib/expat.dsp
trunk/Externals/expat/lib/expat.h
trunk/Externals/expat/lib/expat_external.h
trunk/Externals/expat/lib/expat_static.dsp
trunk/Externals/expat/lib/expatw.dsp
trunk/Externals/expat/lib/expatw_static.dsp
trunk/Externals/expat/lib/iasciitab.h
trunk/Externals/expat/lib/internal.h
trunk/Externals/expat/lib/latin1tab.h
trunk/Externals/expat/lib/libexpat.def
trunk/Externals/expat/lib/libexpatw.def
trunk/Externals/expat/lib/macconfig.h
trunk/Externals/expat/lib/nametab.h
trunk/Externals/expat/lib/utf8tab.h
trunk/Externals/expat/lib/winconfig.h
trunk/Externals/expat/lib/xmlparse.c
trunk/Externals/expat/lib/xmlrole.c
trunk/Externals/expat/lib/xmlrole.h
trunk/Externals/expat/lib/xmltok.c
trunk/Externals/expat/lib/xmltok.h
trunk/Externals/expat/lib/xmltok_impl.c
trunk/Externals/expat/lib/xmltok_impl.h
trunk/Externals/expat/lib/xmltok_ns.c
trunk/Externals/expat/tests/
trunk/Externals/expat/tests/README.txt
trunk/Externals/expat/tests/benchmark/
trunk/Externals/expat/tests/benchmark/README.txt
trunk/Externals/expat/tests/benchmark/benchmark.c
trunk/Externals/expat/tests/benchmark/benchmark.dsp
trunk/Externals/expat/tests/benchmark/benchmark.dsw
trunk/Externals/expat/tests/chardata.c
trunk/Externals/expat/tests/chardata.h
trunk/Externals/expat/tests/minicheck.c
trunk/Externals/expat/tests/minicheck.h
trunk/Externals/expat/tests/runtests.c
trunk/Externals/expat/tests/runtestspp.cpp
trunk/Externals/expat/tests/xmltest.sh
trunk/Externals/expat/vms/
trunk/Externals/expat/vms/README.vms
trunk/Externals/expat/vms/descrip.mms
trunk/Externals/expat/vms/expat_config.h
trunk/Externals/expat/win32/
trunk/Externals/expat/win32/MANIFEST.txt
trunk/Externals/expat/win32/README.txt
trunk/Externals/expat/win32/expat.iss
trunk/Externals/expat/xmlwf/
trunk/Externals/expat/xmlwf/codepage.c
trunk/Externals/expat/xmlwf/codepage.h
trunk/Externals/expat/xmlwf/ct.c
trunk/Externals/expat/xmlwf/filemap.h
trunk/Externals/expat/xmlwf/readfilemap.c
trunk/Externals/expat/xmlwf/unixfilemap.c
trunk/Externals/expat/xmlwf/win32filemap.c
trunk/Externals/expat/xmlwf/xmlfile.c
trunk/Externals/expat/xmlwf/xmlfile.h
trunk/Externals/expat/xmlwf/xmlmime.c
trunk/Externals/expat/xmlwf/xmlmime.h
trunk/Externals/expat/xmlwf/xmltchar.h
trunk/Externals/expat/xmlwf/xmlurl.h
trunk/Externals/expat/xmlwf/xmlwf.c
trunk/Externals/expat/xmlwf/xmlwf.dsp
trunk/Externals/expat/xmlwf/xmlwin32url.cxx
Added: trunk/Externals/expat/COPYING
===================================================================
--- trunk/Externals/expat/COPYING (rev 0)
+++ trunk/Externals/expat/COPYING 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,22 @@
+Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+ and Clark Cooper
+Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Added: trunk/Externals/expat/Changes
===================================================================
--- trunk/Externals/expat/Changes (rev 0)
+++ trunk/Externals/expat/Changes 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,148 @@
+Release 2.0.0 Wed Jan 11 2006
+ - We no longer use the "check" library for C unit testing; we
+ always use the (partial) internal implementation of the API.
+ - Report XML_NS setting via XML_GetFeatureList().
+ - Fixed headers for use from C++.
+ - XML_GetCurrentLineNumber() and XML_GetCurrentColumnNumber()
+ now return unsigned integers.
+ - Added XML_LARGE_SIZE switch to enable 64-bit integers for
+ byte indexes and line/column numbers.
+ - Updated to use libtool 1.5.22 (the most recent).
+ - Added support for AmigaOS.
+ - Some mostly minor bug fixes. SF issues include: 1006708,
+ 1021776, 1023646, 1114960, 1156398, 1221160, 1271642.
+
+Release 1.95.8 Fri Jul 23 2004
+ - Major new feature: suspend/resume. Handlers can now request
+ that a parse be suspended for later resumption or aborted
+ altogether. See "Temporarily Stopping Parsing" in the
+ documentation for more details.
+ - Some mostly minor bug fixes, but compilation should no
+ longer generate warnings on most platforms. SF issues
+ include: 827319, 840173, 846309, 888329, 896188, 923913,
+ 928113, 961698, 985192.
+
+Release 1.95.7 Mon Oct 20 2003
+ - Fixed enum XML_Status issue (reported on SourceForge many
+ times), so compilers that are properly picky will be happy.
+ - Introduced an XMLCALL macro to control the calling
+ convention used by the Expat API; this macro should be used
+ to annotate prototypes and definitions of callback
+ implementations in code compiled with a calling convention
+ other than the default convention for the host platform.
+ - Improved ability to build without the configure-generated
+ expat_config.h header. This is useful for applications
+ which embed Expat rather than linking in the library.
+ - Fixed a variety of bugs: see SF issues 458907, 609603,
+ 676844, 679754, 692878, 692964, 695401, 699323, 699487,
+ 820946.
+ - Improved hash table lookups.
+ - Added more regression tests and improved documentation.
+
+Release 1.95.6 Tue Jan 28 2003
+ - Added XML_FreeContentModel().
+ - Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree().
+ - Fixed a variety of bugs: see SF issues 615606, 616863,
+ 618199, 653180, 673791.
+ - Enhanced the regression test suite.
+ - Man page improvements: includes SF issue 632146.
+
+Release 1.95.5 Fri Sep 6 2002
+ - Added XML_UseForeignDTD() for improved SAX2 support.
+ - Added XML_GetFeatureList().
+ - Defined XML_Bool type and the values XML_TRUE and XML_FALSE.
+ - Use an incomplete struct instead of a void* for the parser
+ (may not retain).
+ - Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected.
+ - Finally fixed bug where default handler would report DTD
+ events that were already handled by another handler.
+ Initial patch contributed by Darryl Miles.
+ - Removed unnecessary DllMain() function that caused static
+ linking into a DLL to be difficult.
+ - Added VC++ projects for building static libraries.
+ - Reduced line-length for all source code and headers to be
+ no longer than 80 characters, to help with AS/400 support.
+ - Reduced memory copying during parsing (SF patch #600964).
+ - Fixed a variety of bugs: see SF issues 580793, 434664,
+ 483514, 580503, 581069, 584041, 584183, 584832, 585537,
+ 596555, 596678, 598352, 598944, 599715, 600479, 600971.
+
+Release 1.95.4 Fri Jul 12 2002
+ - Added support for VMS, contributed by Craig Berry. See
+ vms/README.vms for more information.
+ - Added Mac OS (classic) support, with a makefile for MPW,
+ contributed by Thomas Wegner and Daryle Walker.
+ - Added Borland C++ Builder 5 / BCC 5.5 support, contributed
+ by Patrick McConnell (SF patch #538032).
+ - Fixed a variety of bugs: see SF issues 441449, 563184,
+ 564342, 566334, 566901, 569461, 570263, 575168, 579196.
+ - Made skippedEntityHandler conform to SAX2 (see source comment)
+ - Re-implemented WFC: Entity Declared from XML 1.0 spec and
+ added a new error "entity declared in parameter entity":
+ see SF bug report 569461 and SF patch 578161
+ - Re-implemented section 5.1 from XML 1.0 spec:
+ see SF bug report 570263 and SF patch 578161
+
+Release 1.95.3 Mon Jun 3 2002
+ - Added a project to the MSVC workspace to create a wchar_t
+ version of the library; the DLLs are named libexpatw.dll.
+ - Changed the name of the Windows DLLs from expat.dll to
+ libexpat.dll; this fixes SF bug #432456.
+ - Added the XML_ParserReset() API function.
+ - Fixed XML_SetReturnNSTriplet() to work for element names.
+ - Made the XML_UNICODE builds usable (thanks, Karl!).
+ - Allow xmlwf to read from standard input.
+ - Install a man page for xmlwf on Unix systems.
+ - Fixed many bugs; see SF bug reports 231864, 461380, 464837,
+ 466885, 469226, 477667, 484419, 487840, 494749, 496505,
+ 547350. Other bugs which we can't test as easily may also
+ have been fixed, especially in the area of build support.
+
+Release 1.95.2 Fri Jul 27 2001
+ - More changes to make MSVC happy with the build; add a single
+ workspace to support both the library and xmlwf application.
+ - Added a Windows installer for Windows users; includes
+ xmlwf.exe.
+ - Added compile-time constants that can be used to determine the
+ Expat version
+ - Removed a lot of GNU-specific dependencies to aide portability
+ among the various Unix flavors.
+ - Fix the UTF-8 BOM bug.
+ - Cleaned up warning messages for several compilers.
+ - Added the -Wall, -Wstrict-prototypes options for GCC.
+
+Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000
+ - Changes to get expat to build under Microsoft compiler
+ - Removed all aborts and instead return an UNEXPECTED_STATE error.
+ - Fixed a bug where a stray '%' in an entity value would cause an
+ abort.
+ - Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for
+ finding this oversight.
+ - Changed default patterns in lib/Makefile.in to fit non-GNU makes
+ Thanks to ro...@un... for reporting and providing an
+ account to test on.
+ - The reference had the wrong label for XML_SetStartNamespaceDecl.
+ Reported by an anonymous user.
+
+Release 1.95.0 Fri Sep 29 2000
+ - XML_ParserCreate_MM
+ Allows you to set a memory management suite to replace the
+ standard malloc,realloc, and free.
+ - XML_SetReturnNSTriplet
+ If you turn this feature on when namespace processing is in
+ effect, then qualified, prefixed element and attribute names
+ are returned as "uri|name|prefix" where '|' is whatever
+ separator character is used in namespace processing.
+ - Merged in features from perl-expat
+ o XML_SetElementDeclHandler
+ o XML_SetAttlistDeclHandler
+ o XML_SetXmlDeclHandler
+ o XML_SetEntityDeclHandler
+ o StartDoctypeDeclHandler takes 3 additional parameters:
+ sysid, pubid, has_internal_subset
+ o Many paired handler setters (like XML_SetElementHandler)
+ now have corresponding individual handler setters
+ o XML_GetInputContext for getting the input context of
+ the current parse position.
+ - Added reference material
+ - Packaged into a distribution that builds a sharable library
Added: trunk/Externals/expat/MANIFEST
===================================================================
--- trunk/Externals/expat/MANIFEST (rev 0)
+++ trunk/Externals/expat/MANIFEST 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,128 @@
+amiga/stdlib.c
+amiga/launch.c
+amiga/expat_vectors.c
+amiga/expat_lib.c
+amiga/expat.xml
+amiga/README.txt
+amiga/Makefile
+amiga/include/proto/expat.h
+amiga/include/libraries/expat.h
+amiga/include/interfaces/expat.h
+amiga/include/inline4/expat.h
+bcb5/README.txt
+bcb5/all_projects.bpg
+bcb5/elements.bpf
+bcb5/elements.bpr
+bcb5/elements.mak
+bcb5/expat.bpf
+bcb5/expat.bpr
+bcb5/expat.mak
+bcb5/expat_static.bpf
+bcb5/expat_static.bpr
+bcb5/expat_static.mak
+bcb5/expatw.bpf
+bcb5/expatw.bpr
+bcb5/expatw.mak
+bcb5/expatw_static.bpf
+bcb5/expatw_static.bpr
+bcb5/expatw_static.mak
+bcb5/libexpat_mtd.def
+bcb5/libexpatw_mtd.def
+bcb5/makefile.mak
+bcb5/outline.bpf
+bcb5/outline.bpr
+bcb5/outline.mak
+bcb5/setup.bat
+bcb5/xmlwf.bpf
+bcb5/xmlwf.bpr
+bcb5/xmlwf.mak
+doc/expat.png
+doc/reference.html
+doc/style.css
+doc/valid-xhtml10.png
+doc/xmlwf.1
+doc/xmlwf.sgml
+COPYING
+Changes
+MANIFEST
+Makefile.in
+README
+configure
+configure.in
+expat_config.h.in
+expat.dsw
+conftools/PrintPath
+conftools/ac_c_bigendian_cross.m4
+conftools/config.guess
+conftools/config.sub
+conftools/expat.m4
+conftools/get-version.sh
+conftools/install-sh
+conftools/libtool.m4
+conftools/ltmain.sh
+conftools/mkinstalldirs
+examples/elements.c
+examples/elements.dsp
+examples/outline.c
+examples/outline.dsp
+lib/Makefile.MPW
+lib/amigaconfig.h
+lib/ascii.h
+lib/asciitab.h
+lib/expat.dsp
+lib/expat.h
+lib/expat_external.h
+lib/expat_static.dsp
+lib/expatw.dsp
+lib/expatw_static.dsp
+lib/iasciitab.h
+lib/internal.h
+lib/latin1tab.h
+lib/libexpat.def
+lib/libexpatw.def
+lib/macconfig.h
+lib/nametab.h
+lib/utf8tab.h
+lib/winconfig.h
+lib/xmlparse.c
+lib/xmlrole.c
+lib/xmlrole.h
+lib/xmltok.c
+lib/xmltok.h
+lib/xmltok_impl.c
+lib/xmltok_impl.h
+lib/xmltok_ns.c
+tests/benchmark/README.txt
+tests/benchmark/benchmark.c
+tests/benchmark/benchmark.dsp
+tests/benchmark/benchmark.dsw
+tests/README.txt
+tests/chardata.c
+tests/chardata.h
+tests/minicheck.c
+tests/minicheck.h
+tests/runtests.c
+tests/runtestspp.cpp
+tests/xmltest.sh
+vms/README.vms
+vms/descrip.mms
+vms/expat_config.h
+win32/MANIFEST.txt
+win32/README.txt
+win32/expat.iss
+xmlwf/codepage.c
+xmlwf/codepage.h
+xmlwf/ct.c
+xmlwf/filemap.h
+xmlwf/readfilemap.c
+xmlwf/unixfilemap.c
+xmlwf/win32filemap.c
+xmlwf/xmlfile.c
+xmlwf/xmlfile.h
+xmlwf/xmlmime.c
+xmlwf/xmlmime.h
+xmlwf/xmltchar.h
+xmlwf/xmlurl.h
+xmlwf/xmlwf.c
+xmlwf/xmlwf.dsp
+xmlwf/xmlwin32url.cxx
Added: trunk/Externals/expat/Makefile.in
===================================================================
--- trunk/Externals/expat/Makefile.in (rev 0)
+++ trunk/Externals/expat/Makefile.in 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,185 @@
+################################################################
+# Process this file with top-level configure script to produce Makefile
+#
+# Copyright 2000 Clark Cooper
+#
+# This file is part of EXPAT.
+#
+# EXPAT is free software; you can redistribute it and/or modify it
+# under the terms of the License (based on the MIT/X license) contained
+# in the file COPYING that comes with this distribution.
+#
+# EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
+#
+
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+libdir = @libdir@
+includedir = @includedir@
+man1dir = @mandir@/man1
+
+top_builddir = .
+
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
+
+MANFILE = $(srcdir)/doc/xmlwf.1
+APIHEADER = $(srcdir)/lib/expat.h $(srcdir)/lib/expat_external.h
+LIBRARY = libexpat.la
+
+ifndef INSTALL_ROOT
+INSTALL_ROOT=$(DESTDIR)
+endif
+
+default: buildlib xmlwf/xmlwf
+
+buildlib: $(LIBRARY)
+
+all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
+
+clean:
+ cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
+ cd xmlwf && rm -f xmlwf *.o *.lo && rm -rf .libs _libs
+ cd examples && rm -f elements outline *.o *.lo && rm -rf .libs _libs
+ cd tests && rm -rf .libs runtests runtests.o runtestspp runtestspp.o
+ cd tests && rm -f chardata.o minicheck.o
+ rm -rf .libs libexpat.la
+ rm -f examples/core tests/core xmlwf/core
+
+clobber: clean
+
+distclean: clean
+ rm -f expat_config.h config.status config.log config.cache libtool
+ rm -f Makefile
+
+extraclean: distclean
+ rm -f expat_config.h.in configure
+ rm -f conftools/ltconfig conftools/ltmain.sh conftools/libtool.m4
+
+check: tests/runtests tests/runtestspp
+ tests/runtests
+ tests/runtestspp
+
+install: xmlwf/xmlwf installlib
+ $(mkinstalldirs) $(INSTALL_ROOT)$(bindir) $(INSTALL_ROOT)$(man1dir)
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(INSTALL_ROOT)$(bindir)/xmlwf
+ $(INSTALL_DATA) $(MANFILE) $(INSTALL_ROOT)$(man1dir)
+
+installlib: $(LIBRARY) $(APIHEADER)
+ $(mkinstalldirs) $(INSTALL_ROOT)$(libdir) $(INSTALL_ROOT)$(includedir)
+ $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(INSTALL_ROOT)$(libdir)/$(LIBRARY)
+ for FN in $(APIHEADER) ; do $(INSTALL_DATA) $$FN $(INSTALL_ROOT)$(includedir) ; done
+
+uninstall: uninstalllib
+ $(LIBTOOL) --mode=uninstall rm -f $(INSTALL_ROOT)$(bindir)/xmlwf
+ rm -f $(INSTALL_ROOT)$(man1dir)/xmlwf.1
+
+uninstalllib:
+ $(LIBTOOL) --mode=uninstall rm -f $(INSTALL_ROOT)$(libdir)/$(LIBRARY)
+ rm -f $(INSTALL_ROOT)$(includedir)/expat.h
+ rm -f $(INSTALL_ROOT)$(includedir)/expat_external.h
+
+# for VPATH builds (invoked by configure)
+mkdir-init:
+ @for d in lib xmlwf examples tests ; do \
+ (mkdir $$d 2> /dev/null || test 1) ; \
+ done
+
+CC = @CC@
+LIBTOOL = @LIBTOOL@
+
+INCLUDES = -I$(srcdir)/lib -I.
+LDFLAGS = @LDFLAGS@
+CPPFLAGS = @CPPFLAGS@
+CFLAGS = @CFLAGS@ -DHAVE_EXPAT_CONFIG_H
+VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
+
+### autoconf this?
+LTFLAGS = --silent
+
+COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
+CXXCOMPILE = $(CXX) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
+LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
+LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
+LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
+LINK_CXX_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(CXXCOMPILE) $(LDFLAGS) -o $@
+
+LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
+$(LIBRARY): $(LIB_OBJS)
+ $(LINK_LIB) $(LIB_OBJS)
+
+lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
+ $(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
+
+lib/xmlrole.lo: lib/xmlrole.c lib/ascii.h lib/xmlrole.h \
+ $(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
+
+lib/xmltok.lo: lib/xmltok.c lib/xmltok_impl.c lib/xmltok_ns.c \
+ lib/ascii.h lib/asciitab.h lib/iasciitab.h lib/latin1tab.h \
+ lib/nametab.h lib/utf8tab.h lib/xmltok.h lib/xmltok_impl.h \
+ $(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
+
+
+XMLWF_OBJS = xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/@FILEMAP@.o
+xmlwf/xmlwf.o: xmlwf/xmlwf.c
+xmlwf/xmlfile.o: xmlwf/xmlfile.c
+xmlwf/codepage.o: xmlwf/codepage.c
+xmlwf/@FILEMAP@.o: xmlwf/@FILEMAP@.c
+xmlwf/xmlwf: $(XMLWF_OBJS) $(LIBRARY)
+ $(LINK_EXE) $(XMLWF_OBJS) $(LIBRARY)
+
+examples/elements.o: examples/elements.c
+examples/elements: examples/elements.o $(LIBRARY)
+ $(LINK_EXE) $< $(LIBRARY)
+
+examples/outline.o: examples/outline.c
+examples/outline: examples/outline.o $(LIBRARY)
+ $(LINK_EXE) $< $(LIBRARY)
+
+tests/chardata.o: tests/chardata.c tests/chardata.h
+tests/minicheck.o: tests/minicheck.c tests/minicheck.h
+tests/runtests.o: tests/runtests.c tests/chardata.h
+tests/runtests: tests/runtests.o tests/chardata.o tests/minicheck.o $(LIBRARY)
+ $(LINK_EXE) $^
+tests/runtestspp.o: tests/runtestspp.cpp tests/runtests.c tests/chardata.h
+tests/runtestspp: tests/runtestspp.o tests/chardata.o tests/minicheck.o $(LIBRARY)
+ $(LINK_CXX_EXE) $^
+
+tests/xmlts.zip:
+ wget --output-document=tests/xmlts.zip \
+ http://www.w3.org/XML/Test/xmlts20020606.zip
+
+tests/XML-Test-Suite: tests/xmlts.zip
+ cd tests && unzip -q xmlts.zip
+
+run-xmltest: xmlwf/xmlwf tests/XML-Test-Suite
+ tests/xmltest.sh
+
+.SUFFIXES: .c .lo .o
+
+.c.o:
+ $(COMPILE) -o $@ -c $<
+.c.lo:
+ $(LTCOMPILE) -o $@ -c $<
+
+.PHONY: buildlib all \
+ clean distclean extraclean maintainer-clean \
+ dist distdir \
+ install uninstall
Added: trunk/Externals/expat/README
===================================================================
--- trunk/Externals/expat/README (rev 0)
+++ trunk/Externals/expat/README 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,118 @@
+
+ Expat, Release 2.0.0
+
+This is Expat, a C library for parsing XML, written by James Clark.
+Expat is a stream-oriented XML parser. This means that you register
+handlers with the parser before starting the parse. These handlers
+are called when the parser discovers the associated structures in the
+document being parsed. A start tag is an example of the kind of
+structures for which you may register handlers.
+
+Windows users should use the expat_win32bin package, which includes
+both precompiled libraries and executables, and source code for
+developers.
+
+Expat is free software. You may copy, distribute, and modify it under
+the terms of the License contained in the file COPYING distributed
+with this package. This license is the same as the MIT/X Consortium
+license.
+
+Versions of Expat that have an odd minor version (the middle number in
+the release above), are development releases and should be considered
+as beta software. Releases with even minor version numbers are
+intended to be production grade software.
+
+If you are building Expat from a check-out from the CVS repository,
+you need to run a script that generates the configure script using the
+GNU autoconf and libtool tools. To do this, you need to have
+autoconf 2.52 or newer and libtool 1.4 or newer. Run the script like
+this:
+
+ ./buildconf.sh
+
+Once this has been done, follow the same instructions as for building
+from a source distribution.
+
+To build Expat from a source distribution, you first run the
+configuration shell script in the top level distribution directory:
+
+ ./configure
+
+There are many options which you may provide to configure (which you
+can discover by running configure with the --help option). But the
+one of most interest is the one that sets the installation directory.
+By default, the configure script will set things up to install
+libexpat into /usr/local/lib, expat.h into /usr/local/include, and
+xmlwf into /usr/local/bin. If, for example, you'd prefer to install
+into /home/me/mystuff/lib, /home/me/mystuff/include, and
+/home/me/mystuff/bin, you can tell configure about that with:
+
+ ./configure --prefix=/home/me/mystuff
+
+Another interesting option is to enable 64-bit integer support for
+line and column numbers and the over-all byte index:
+
+ ./configure CPPFLAGS=-DXML_LARGE_SIZE
+
+After running the configure script, the "make" command will build
+things and "make install" will install things into their proper
+location. Have a look at the "Makefile" to learn about additional
+"make" options. Note that you need to have write permission into
+the directories into which things will be installed.
+
+If you are interested in building Expat to provide document
+information in UTF-16 rather than the default UTF-8, follow these
+instructions:
+
+ 1. For UTF-16 output as unsigned short (and version/error
+ strings as char), run:
+
+ ./configure CPPFLAGS=-DXML_UNICODE
+
+ For UTF-16 output as wchar_t (incl. version/error strings),
+ run:
+
+ ./configure CFLAGS="-g -O2 -fshort-wchar" \
+ CPPFLAGS=-DXML_UNICODE_WCHAR_T
+
+ 2. Edit the MakeFile, changing:
+
+ LIBRARY = libexpat.la
+
+ to:
+
+ LIBRARY = libexpatw.la
+
+ (Note the additional "w" in the library name.)
+
+ 3. Run "make buildlib" (which builds the library only).
+
+ 4. Run "make installlib" (which installs the library only).
+
+Note for Solaris users: The "ar" command is usually located in
+"/usr/ccs/bin", which is not in the default PATH. You will need to
+add this to your path for the "make" command, and probably also switch
+to GNU make (the "make" found in /usr/ccs/bin does not seem to work
+properly -- appearantly it does not understand .PHONY directives). If
+you're using ksh or bash, use this command to build:
+
+ PATH=/usr/ccs/bin:$PATH make
+
+When using Expat with a project using autoconf for configuration, you
+can use the probing macro in conftools/expat.m4 to determine how to
+include Expat. See the comments at the top of that file for more
+information.
+
+A reference manual is available in the file doc/reference.html in this
+distribution.
+
+The homepage for this project is http://www.libexpat.org/. There
+are links there to connect you to the bug reports page. If you need
+to report a bug when you don't have access to a browser, you may also
+send a bug report by email to exp...@ma....
+
+Discussion related to the direction of future expat development takes
+place on exp...@ma.... Archives of this list and
+other Expat-related lists may be found at:
+
+ http://mail.libexpat.org/mailman/listinfo/
Added: trunk/Externals/expat/amiga/Makefile
===================================================================
--- trunk/Externals/expat/amiga/Makefile (rev 0)
+++ trunk/Externals/expat/amiga/Makefile 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,184 @@
+#
+# Makefile for AmigaOS
+#
+
+.PHONY: help all staticlib sharedlib check clean install
+
+vpath %.c ../lib ../examples ../xmlwf ../tests
+vpath %.h ../lib ../tests
+
+
+#
+# Set these for SDK installation.
+#
+tooldir = SDK:Local/C
+staticlibdir = SDK:Local/clib2/lib
+staticincludedir = SDK:Local/clib2/include
+sharedlibdir = LIBS:
+sharedincludedir = SDK:Local/common/include
+
+
+ifeq ($(MAKECMDGOALS), staticlib)
+ DESTDIR = lib
+else
+ DESTDIR = libs
+endif
+
+STATICLIB = $(DESTDIR)/libexpat.a
+SHAREDLIB = $(DESTDIR)/expat.library
+
+XMLWF = $(DESTDIR)/xmlwf
+ELEMENTS = $(DESTDIR)/elements
+OUTLINE = $(DESTDIR)/outline
+RUNTESTS = $(DESTDIR)/runtests
+BENCHMARK = $(DESTDIR)/benchmark
+
+
+help:
+ @echo "Requires:"
+ @echo " AmigaOS 4.0"
+ @echo " SDK 51.15"
+ @echo " clib2 1.198"
+ @echo ""
+ @echo "Targets:"
+ @echo " all - make expat libraries, xmlwf, examples and run test suite"
+ @echo " install - install expat libraries and tools into SDK"
+
+all:
+ -makedir lib libs
+ $(MAKE) staticlib
+ $(MAKE) sharedlib
+
+staticlib: $(STATICLIB) $(XMLWF) $(ELEMENTS) $(OUTLINE) $(RUNTESTS) $(BENCHMARK) check
+ @echo done
+
+sharedlib: $(SHAREDLIB) $(XMLWF) $(ELEMENTS) $(OUTLINE) $(RUNTESTS) $(BENCHMARK) check
+ @echo done
+
+check:
+ $(RUNTESTS)
+
+clean:
+ -delete lib/#?.o quiet
+ -delete libs/#?.o quiet
+
+install:
+ copy lib/xmlwf $(tooldir) quiet
+ copy /lib/expat.h /lib/expat_external.h $(staticincludedir) quiet
+ copy lib/libexpat.a $(staticlibdir) quiet
+ copy libs/expat.library $(sharedlibdir) quiet
+ copy include $(sharedincludedir) quiet all
+
+
+CC = gcc
+LIBTOOL = ar
+STRIP = strip
+
+LDFLAGS =
+LIBS =
+CFLAGS = -DNDEBUG -O2
+LTFLAGS = -crs
+STRIPFLAGS = -R.comment
+LAUNCH =
+
+ifeq ($(MAKECMDGOALS), staticlib)
+ LIBS += $(STATICLIB)
+ INCLUDES = -I../lib
+endif
+
+ifeq ($(MAKECMDGOALS), sharedlib)
+ CFLAGS += -DAMIGA_SHARED_LIB -D__USE_INLINE__
+ INCLUDES = -I. -Iinclude -Iinclude/libraries -I../lib
+ LAUNCH = $(DESTDIR)/launch.o
+endif
+
+
+COMPILE = $(CC) $(CFLAGS) $(INCLUDES) -c
+
+LINK = $(CC) $(LDFLAGS) -o $@
+
+
+$(STATICLIB): $(DESTDIR)/xmlparse.o $(DESTDIR)/xmltok.o $(DESTDIR)/xmlrole.o
+ $(LIBTOOL) $(LTFLAGS) $@ $^
+
+$(DESTDIR)/xmlparse.o: xmlparse.c expat.h xmlrole.h xmltok.h \
+ expat_external.h internal.h amigaconfig.h
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/xmlrole.o: xmlrole.c ascii.h xmlrole.h expat_external.h \
+ internal.h amigaconfig.h
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/xmltok.o: xmltok.c xmltok_impl.c xmltok_ns.c ascii.h asciitab.h \
+ iasciitab.h latin1tab.h nametab.h utf8tab.h xmltok.h xmltok_impl.h \
+ expat_external.h internal.h amigaconfig.h
+ $(COMPILE) $< -o $@
+
+
+$(SHAREDLIB): $(DESTDIR)/expat_lib.o $(DESTDIR)/expat_vectors.o $(DESTDIR)/stdlib.o lib/libexpat.a
+ $(LINK) -nostartfiles -nostdlib -o $@ $^
+
+$(DESTDIR)/expat_lib.o: expat_lib.c
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/expat_vectors.o: expat_vectors.c
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/stdlib.o: stdlib.c
+ $(COMPILE) $< -o $@
+
+$(LAUNCH): launch.c
+ $(COMPILE) $< -o $@
+
+
+$(XMLWF): $(DESTDIR)/xmlwf.o $(DESTDIR)/xmlfile.o $(DESTDIR)/codepage.o $(DESTDIR)/readfilemap.o $(LAUNCH)
+ $(LINK) $^ $(LIBS)
+ $(STRIP) $(STRIPFLAGS) $@
+
+$(DESTDIR)/xmlwf.o: xmlwf.c
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/xmlfile.o: xmlfile.c
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/codepage.o: codepage.c
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/readfilemap.o: readfilemap.c
+ $(COMPILE) $< -o $@
+
+
+$(ELEMENTS): $(DESTDIR)/elements.o $(LAUNCH)
+ $(LINK) $^ $(LIBS)
+ $(STRIP) $(STRIPFLAGS) $@
+
+$(DESTDIR)/elements.o: elements.c
+ $(COMPILE) $< -o $@
+
+
+$(OUTLINE): $(DESTDIR)/outline.o $(LAUNCH)
+ $(LINK) $^ $(LIBS)
+ $(STRIP) $(STRIPFLAGS) $@
+
+$(DESTDIR)/outline.o: outline.c
+ $(COMPILE) $< -o $@
+
+
+$(RUNTESTS): $(DESTDIR)/runtests.o $(DESTDIR)/chardata.o $(DESTDIR)/minicheck.o $(LAUNCH)
+ $(LINK) $^ $(LIBS)
+
+$(DESTDIR)/chardata.o: chardata.c chardata.h
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/minicheck.o: minicheck.c minicheck.h
+ $(COMPILE) $< -o $@
+
+$(DESTDIR)/runtests.o: runtests.c chardata.h
+ $(COMPILE) $< -o $@
+
+
+$(BENCHMARK): $(DESTDIR)/benchmark.o $(LAUNCH)
+ $(LINK) $^ $(LIBS) -lm
+
+$(DESTDIR)/benchmark.o: benchmark/benchmark.c
+ $(COMPILE) $< -o $@
Added: trunk/Externals/expat/amiga/README.txt
===================================================================
--- trunk/Externals/expat/amiga/README.txt (rev 0)
+++ trunk/Externals/expat/amiga/README.txt 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,56 @@
+SUMMARY
+=======
+This is a port of expat for AmigaOS 4.0 which includes the
+SDK, some XML tools and the libraries.
+
+Both static and shared library versions are supported.
+
+The static library version is limited to clib2 although it should
+be possible to use newlib with the appopriate compile options.
+
+The shared library version is based on the work of Fredrik Wikstrom
+and is currently limited to PPC only.
+
+
+HISTORY
+=======
+4.0 - updated for corresponding Expat 2.0 release
+ - some minor CVS related changes
+
+3.1 - removed obsolete sfd file
+ - added library description xml file
+ - refactored Makefile
+ - removed extraneous VARARGS68K keywords
+ - reworked default memory handling functions in shared lib
+ - updated amigaconfig.h
+
+3.0 - initial release
+ - based on expat 1.95.8
+
+
+BUILDING
+========
+To build expat.library, xmlwf tool, examples and run the test suite,
+simply type 'make all' in the amiga subdirectory.
+
+The test suite will compile and run for both the static and shared
+library versions.
+
+
+INSTALLATION
+============
+To install both static and shared versions of expat into the
+AmigaOS SDK type 'make install' in the amiga subdirectory.
+
+
+CONFIGURATION
+=============
+You may want to edit the lib/amigaconfig.h file to remove
+DTD and/or XML namespace support if they are not required by your
+specific application for a smaller and faster implementation.
+
+
+TO DO
+=====
+- wide character support (UTF-16)
+- provide 68k backwards compatibility
Added: trunk/Externals/expat/amiga/expat.xml
===================================================================
--- trunk/Externals/expat/amiga/expat.xml (rev 0)
+++ trunk/Externals/expat/amiga/expat.xml 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE library SYSTEM "library.dtd">
+<!-- autogenerated by fdtrans v51.16 -->
+<library name="expat" basename="ExpatBase" basetype="Library" openname="expat.library">
+ <include>libraries/expat.h</include>
+ <interface name="main" version="1.0" struct="ExpatIFace" prefix="_Expat_" asmprefix="IExpat" global="IExpat">
+ <method name="Obtain" result="uint32"/>
+ <method name="Release" result="uint32"/>
+ <method name="Expunge" result="void" status="unimplemented"/>
+ <method name="Clone" result="struct Interface *" status="unimplemented"/>
+ <method name="XML_ParserCreate" result="XML_Parser">
+ <arg name="encodingName" type="const XML_Char *"/>
+ </method>
+ <method name="XML_ParserCreateNS" result="XML_Parser">
+ <arg name="encodingName" type="const XML_Char *"/>
+ <arg name="nsSep" type="XML_Char"/>
+ </method>
+ <method name="XML_ParserCreate_MM" result="XML_Parser">
+ <arg name="encoding" type="const XML_Char *"/>
+ <arg name="memsuite" type="const XML_Memory_Handling_Suite *"/>
+ <arg name="namespaceSeparator" type="const XML_Char *"/>
+ </method>
+ <method name="XML_ExternalEntityParserCreate" result="XML_Parser">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="context" type="const XML_Char *"/>
+ <arg name="encoding" type="const XML_Char *"/>
+ </method>
+ <method name="XML_ParserFree" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_Parse" result="enum XML_Status">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="s" type="const char *"/>
+ <arg name="len" type="int"/>
+ <arg name="isFinal" type="int"/>
+ </method>
+ <method name="XML_ParseBuffer" result="enum XML_Status">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="len" type="int"/>
+ <arg name="isFinal" type="int"/>
+ </method>
+ <method name="XML_GetBuffer" result="void *">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="len" type="int"/>
+ </method>
+ <method name="XML_SetStartElementHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartElementHandler"/>
+ </method>
+ <method name="XML_SetEndElementHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="end" type="XML_EndElementHandler"/>
+ </method>
+ <method name="XML_SetElementHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartElementHandler"/>
+ <arg name="end" type="XML_EndElementHandler"/>
+ </method>
+ <method name="XML_SetCharacterDataHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_CharacterDataHandler"/>
+ </method>
+ <method name="XML_SetProcessingInstructionHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_ProcessingInstructionHandler"/>
+ </method>
+ <method name="XML_SetCommentHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_CommentHandler"/>
+ </method>
+ <method name="XML_SetStartCdataSectionHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartCdataSectionHandler"/>
+ </method>
+ <method name="XML_SetEndCdataSectionHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="end" type="XML_EndCdataSectionHandler"/>
+ </method>
+ <method name="XML_SetCdataSectionHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartCdataSectionHandler"/>
+ <arg name="end" type="XML_EndCdataSectionHandler"/>
+ </method>
+ <method name="XML_SetDefaultHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_DefaultHandler"/>
+ </method>
+ <method name="XML_SetDefaultHandlerExpand" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_DefaultHandler"/>
+ </method>
+ <method name="XML_SetExternalEntityRefHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_ExternalEntityRefHandler"/>
+ </method>
+ <method name="XML_SetExternalEntityRefHandlerArg" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="arg" type="void *"/>
+ </method>
+ <method name="XML_SetUnknownEncodingHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_UnknownEncodingHandler"/>
+ <arg name="data" type="void *"/>
+ </method>
+ <method name="XML_SetStartNamespaceDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartNamespaceDeclHandler"/>
+ </method>
+ <method name="XML_SetEndNamespaceDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="end" type="XML_EndNamespaceDeclHandler"/>
+ </method>
+ <method name="XML_SetNamespaceDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartNamespaceDeclHandler"/>
+ <arg name="end" type="XML_EndNamespaceDeclHandler"/>
+ </method>
+ <method name="XML_SetXmlDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_XmlDeclHandler"/>
+ </method>
+ <method name="XML_SetStartDoctypeDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartDoctypeDeclHandler"/>
+ </method>
+ <method name="XML_SetEndDoctypeDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="end" type="XML_EndDoctypeDeclHandler"/>
+ </method>
+ <method name="XML_SetDoctypeDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="start" type="XML_StartDoctypeDeclHandler"/>
+ <arg name="end" type="XML_EndDoctypeDeclHandler"/>
+ </method>
+ <method name="XML_SetElementDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="eldecl" type="XML_ElementDeclHandler"/>
+ </method>
+ <method name="XML_SetAttlistDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="attdecl" type="XML_AttlistDeclHandler"/>
+ </method>
+ <method name="XML_SetEntityDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_EntityDeclHandler"/>
+ </method>
+ <method name="XML_SetUnparsedEntityDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_UnparsedEntityDeclHandler"/>
+ </method>
+ <method name="XML_SetNotationDeclHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_NotationDeclHandler"/>
+ </method>
+ <method name="XML_SetNotStandaloneHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_NotStandaloneHandler"/>
+ </method>
+ <method name="XML_GetErrorCode" result="enum XML_Error">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_ErrorString" result="const XML_LChar *">
+ <arg name="code" type="enum XML_Error"/>
+ </method>
+ <method name="XML_GetCurrentByteIndex" result="long">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetCurrentLineNumber" result="int">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetCurrentColumnNumber" result="int">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetCurrentByteCount" result="int">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetInputContext" result="const char *">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="offset" type="int *"/>
+ <arg name="size" type="int *"/>
+ </method>
+ <method name="XML_SetUserData" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="userData" type="void *"/>
+ </method>
+ <method name="XML_DefaultCurrent" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_UseParserAsHandlerArg" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_SetBase" result="enum XML_Status">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="base" type="const XML_Char *"/>
+ </method>
+ <method name="XML_GetBase" result="const XML_Char *">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetSpecifiedAttributeCount" result="int">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetIdAttributeIndex" result="int">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_SetEncoding" result="enum XML_Status">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="encoding" type="const XML_Char *"/>
+ </method>
+ <method name="XML_SetParamEntityParsing" result="int">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="parsing" type="enum XML_ParamEntityParsing"/>
+ </method>
+ <method name="XML_SetReturnNSTriplet" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="do_nst" type="int"/>
+ </method>
+ <method name="XML_ExpatVersion" result="const XML_LChar *">
+ </method>
+ <method name="XML_ExpatVersionInfo" result="XML_Expat_Version">
+ </method>
+ <method name="XML_ParserReset" result="XML_Bool">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="encoding" type="const XML_Char *"/>
+ </method>
+ <method name="XML_SetSkippedEntityHandler" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="handler" type="XML_SkippedEntityHandler"/>
+ </method>
+ <method name="XML_UseForeignDTD" result="enum XML_Error">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="useDTD" type="XML_Bool"/>
+ </method>
+ <method name="XML_GetFeatureList" result="const XML_Feature *">
+ </method>
+ <method name="XML_StopParser" result="enum XML_Status">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="resumable" type="XML_Bool"/>
+ </method>
+ <method name="XML_ResumeParser" result="enum XML_Status">
+ <arg name="parser" type="XML_Parser"/>
+ </method>
+ <method name="XML_GetParsingStatus" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="status" type="XML_ParsingStatus *"/>
+ </method>
+ <method name="XML_FreeContentModel" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="model" type="XML_Content *"/>
+ </method>
+ <method name="XML_MemMalloc" result="void *">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="size" type="size_t"/>
+ </method>
+ <method name="XML_MemRealloc" result="void *">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="ptr" type="void *"/>
+ <arg name="size" type="size_t"/>
+ </method>
+ <method name="XML_MemFree" result="void">
+ <arg name="parser" type="XML_Parser"/>
+ <arg name="ptr" type="void *"/>
+ </method>
+ </interface>
+</library>
Added: trunk/Externals/expat/amiga/expat_lib.c
===================================================================
--- trunk/Externals/expat/amiga/expat_lib.c (rev 0)
+++ trunk/Externals/expat/amiga/expat_lib.c 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,233 @@
+/*
+** Copyright (c) 2001-2005 Expat maintainers.
+**
+** Permission is hereby granted, free of charge, to any person obtaining
+** a copy of this software and associated documentation files (the
+** "Software"), to deal in the Software without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Software, and to
+** permit persons to whom the Software is furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Software.
+**
+** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
+#include <dos/dos.h>
+#include <proto/exec.h>
+
+#define LIBNAME "expat.library"
+#define LIBPRI 0
+#define VERSION 4
+#define REVISION 0
+#define VSTRING "expat.library 4.0 (27.12.2005)" /* dd.mm.yyyy */
+
+
+static const char* __attribute__((used)) verstag = "\0$VER: " VSTRING;
+
+
+struct ExpatBase {
+ struct Library libNode;
+ uint16 pad;
+ BPTR SegList;
+};
+
+
+struct ExpatBase * libInit(struct ExpatBase *libBase, BPTR seglist, struct ExecIFace *ISys);
+uint32 libObtain (struct LibraryManagerInterface *Self);
+uint32 libRelease (struct LibraryManagerInterface *Self);
+struct ExpatBase *libOpen (struct LibraryManagerInterface *Self, uint32 version);
+BPTR libClose (struct LibraryManagerInterface *Self);
+BPTR libExpunge (struct LibraryManagerInterface *Self);
+
+
+static APTR lib_manager_vectors[] = {
+ libObtain,
+ libRelease,
+ NULL,
+ NULL,
+ libOpen,
+ libClose,
+ libExpunge,
+ NULL,
+ (APTR)-1,
+};
+
+
+static struct TagItem lib_managerTags[] = {
+ { MIT_Name, (uint32)"__library" },
+ { MIT_VectorTable, (uint32)lib_manager_vectors },
+ { MIT_Version, 1 },
+ { TAG_END, 0 }
+};
+
+
+extern void *main_vectors[];
+
+static struct TagItem lib_mainTags[] = {
+ { MIT_Name, (uint32)"main" },
+ { MIT_VectorTable, (uint32)main_vectors },
+ { MIT_Version, 1 },
+ { TAG_END, 0 }
+};
+
+
+static APTR libInterfaces[] = {
+ lib_managerTags,
+ lib_mainTags,
+ NULL
+};
+
+
+static struct TagItem libCreateTags[] = {
+ { CLT_DataSize, sizeof(struct ExpatBase) },
+ { CLT_InitFunc, (uint32)libInit },
+ { CLT_Interfaces, (uint32)libInterfaces },
+ { TAG_END, 0 }
+};
+
+
+static struct Resident __attribute__((used)) lib_res = {
+ RTC_MATCHWORD, // rt_MatchWord
+ &lib_res, // rt_MatchTag
+ &lib_res+1, // rt_EndSkip
+ RTF_NATIVE | RTF_AUTOINIT, // rt_Flags
+ VERSION, // rt_Version
+ NT_LIBRARY, // rt_Type
+ LIBPRI, // rt_Pri
+ LIBNAME, // rt_Name
+ VSTRING, // rt_IdString
+ libCreateTags // rt_Init
+};
+
+
+struct Library *DOSLib = 0;
+struct Library *UtilityBase = 0;
+
+struct ExecIFace *IExec = 0;
+struct DOSIFace *IDOS = 0;
+struct UtilityIFace *IUtility = 0;
+
+
+void _start()
+{
+}
+
+
+struct ExpatBase *libInit(struct ExpatBase *libBase, BPTR seglist, struct ExecIFace *ISys)
+{
+ libBase->libNode.lib_Node.ln_Type = NT_LIBRARY;
+ libBase->libNode.lib_Node.ln_Pri = LIBPRI;
+ libBase->libNode.lib_Node.ln_Name = LIBNAME;
+ libBase->libNode.lib_Flags = LIBF_SUMUSED|LIBF_CHANGED;
+ libBase->libNode.lib_Version = VERSION;
+ libBase->libNode.lib_Revision = REVISION;
+ libBase->libNode.lib_IdString = VSTRING;
+ libBase->SegList = seglist;
+
+ IExec = ISys;
+
+ DOSLib = OpenLibrary("dos.library", 51);
+ if ( DOSLib != 0 ) {
+ IDOS = (struct DOSIFace *)GetInterface(DOSLib, "main", 1, NULL);
+ if ( IDOS != 0 ) {
+ UtilityBase = OpenLibrary("utility.library", 51);
+ if ( UtilityBase != 0 ) {
+ IUtility = (struct UtilityIFace*)GetInterface(UtilityBase, "main", 1, NULL);
+ if ( IUtility != 0 ) {
+ return libBase;
+ }
+
+ CloseLibrary(UtilityBase);
+ }
+
+ DropInterface((struct Interface *)IDOS);
+ }
+
+ CloseLibrary(DOSLib);
+ }
+
+ return NULL;
+}
+
+
+uint32 libObtain( struct LibraryManagerInterface *Self )
+{
+ ++Self->Data.RefCount;
+ return Self->Data.RefCount;
+}
+
+
+uint32 libRelease( struct LibraryManagerInterface *Self )
+{
+ --Self->Data.RefCount;
+ return Self->Data.RefCount;
+}
+
+
+struct ExpatBase *libOpen( struct LibraryManagerInterface *Self, uint32 version )
+{
+ struct ExpatBase *libBase;
+
+ libBase = (struct ExpatBase *)Self->Data.LibBase;
+
+ ++libBase->libNode.lib_OpenCnt;
+ libBase->libNode.lib_Flags &= ~LIBF_DELEXP;
+
+ return libBase;
+}
+
+
+BPTR libClose( struct LibraryManagerInterface *Self )
+{
+ struct ExpatBase *libBase;
+
+ libBase = (struct ExpatBase *)Self->Data.LibBase;
+
+ --libBase->libNode.lib_OpenCnt;
+ if ( libBase->libNode.lib_OpenCnt ) {
+ return 0;
+ }
+
+ if ( libBase->libNode.lib_Flags & LIBF_DELEXP ) {
+ return (BPTR)Self->LibExpunge();
+ }
+ else {
+ return 0;
+ }
+}
+
+
+BPTR libExpunge( struct LibraryManagerInterface *Self )
+{
+ struct ExpatBase *libBase;
+ BPTR result = 0;
+
+ libBase = (struct ExpatBase *)Self->Data.LibBase;
+
+ if (libBase->libNode.lib_OpenCnt == 0) {
+ Remove(&libBase->libNode.lib_Node);
+
+ result = libBase->SegList;
+
+ DropInterface((struct Interface *)IUtility);
+ CloseLibrary(UtilityBase);
+ DropInterface((struct Interface *)IDOS);
+ CloseLibrary(DOSLib);
+
+ DeleteLibrary(&libBase->libNode);
+ }
+ else {
+ libBase->libNode.lib_Flags |= LIBF_DELEXP;
+ }
+
+ return result;
+}
Added: trunk/Externals/expat/amiga/expat_vectors.c
===================================================================
--- trunk/Externals/expat/amiga/expat_vectors.c (rev 0)
+++ trunk/Externals/expat/amiga/expat_vectors.c 2006-11-01 15:36:35 UTC (rev 3749)
@@ -0,0 +1,505 @@
+/*
+** Copyright (c) 2001-2005 Expat maintainers.
+**
+** Permission is hereby granted, free of charge, to any person obtaining
+** a copy of this software and associated documentation files (the
+** "Software"), to deal in the Software without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Software, and to
+** permit persons to whom the Software is furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Software.
+**
+** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
+#include <exec/types.h>
+#include <exec/exec.h>
+#include <exec/interfaces.h>
+#include <interfaces/expat.h>
+
+extern uint32 _Expat_Obtain(struct ExpatIFace *);
+extern uint32 _Expat_Release(struct ExpatIFace *);
+extern XML_Parser _Expat_XML_ParserCreate(struct ExpatIFace *, const XML_Char * encodingName);
+extern XML_Parser _Expat_XML_ParserCreateNS(struct ExpatIFace *, const XML_Char * encodingName, XML_Char nsSep);
+extern XML_Parser _Expat_XML_ParserCreate_MM(struct ExpatIFace *, const XML_Char * encoding, const XML_Memory_Handling_Suite * memsuite, const XML_Char * namespaceSeparator);
+extern XML_Parser _Expat_XML_ExternalEntityParserCreate(struct ExpatIFace *, XML_Parser parser, const XML_Char * context, const XML_Char * encoding);
+extern void _Expat_XML_ParserFree(struct ExpatIFace *, XML_Parser parser);
+extern enum XML_Status _Expat_XML_Parse(struct ExpatIFace *, XML_Parser parser, const char * s, int len, int isFinal);
+extern enum XML_Status _Expat_XML_ParseBuffer(struct ExpatIFace *, XML_Parser parser, int len, int isFinal);
+extern void * _Expat_XML_GetBuffer(struct ExpatIFace *, XML_Parser parser, int len);
+extern void _Expat_XML_SetStartElementHandler(struct ExpatIFace *, XML_Parser parser, XML_StartElementHandler start);
+extern void _Expat_XML_SetEndElementHandler(struct ExpatIFace *, XML_Parser parser, XML_EndElementHandler end);
+extern void _Expat_XML_SetElementHandler(struct ExpatIFace *, XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end);
+extern void _Expat_XML_SetCharacterDataHandler(struct ExpatIFace *, XML_Parser parser, XML_CharacterDataHandler handler);
+extern void _Expat_XML_SetProcessingInstructionHandler(struct ExpatIFace *, XML_Parser parser, XML_ProcessingInstructionHandler handler);
+extern void _Expat_XML_SetCommentHandler(struct ExpatIFace *, XML_Parser parser, XML_CommentHandler handler);
+extern void _Expat_XML_SetStartCdataSectionHandler(struct ExpatIFace *, XML_Parser parser, XML_StartCdataSectionHandler start);
+extern void _Expat_XML_SetEndCdataSectionHandler(struct ExpatIFace *, XML_Parser parser, XML_EndCdataSectionHandler end);
+extern void _Expat_XML_SetCdataSectionHandler(struct ExpatIFace *, XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end);
+extern void _Expat_XML_SetDefaultHandler(struct ExpatIFace *, XML_Parser parser, XML_DefaultHandler handler);
+extern void _Expat_XML_SetDefaultHandlerExpand(struct ExpatIFace *, XML_Parser parser, XML_DefaultHandler handler);
+extern void _Expat_XML_SetExternalEntityRefHandler(struct ExpatIFace *, XML_Parser parser, XML_ExternalEntityRefHandler handler);
+extern void _Expat_XML_SetExternalEntityRefHandlerArg(struct ExpatIFace *, XML_Parser parser, void * arg);
+extern void _Expat_XML_SetUnknownEncodingHandler(struct ExpatIFace *, XML_Parser parser, XML_UnknownEncodingHandler handler, void * data);
+extern void _Expat_XML_SetStartNamespaceDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartNamespaceDeclHandler start);
+extern void _Expat_XML_SetEndNamespaceDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_EndNamespaceDeclHandler end);
+extern void _Expat_XML_SetNamespaceDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end);
+extern void _Expat_XML_SetXmlDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_XmlDeclHandler handler);
+extern void _Expat_XML_SetStartDoctypeDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartDoctypeDeclHandler start);
+extern void _Expat_XML_SetEndDoctypeDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_EndDoctypeDeclHandler end);
+extern void _Expat_XML_SetDoctypeDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end);
+extern void _Expat_XML_SetElementDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_ElementDeclHandler eldecl);
+extern void _Expat_XML_SetAttlistDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_AttlistDeclHandler attdecl);
+extern void _Expat_XML_SetEntityDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_EntityDeclHandler handler);
+extern void _Expat_XML_SetUnparsedEntityDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_UnparsedEntityDeclHandler handler);
+extern void _Expat_XML_SetNotationDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_NotationDeclHandler handler);
+extern void _Expat_XML_SetNotStandaloneHandler(struct ExpatIFace *, XML_Parser parser, XML_NotStandaloneHandler handler);
...
[truncated message content] |