Commit 68877da7 authored by darin's avatar darin

Reviewed by Maciej.

	- first step towards integrating expat for XML support: make it compile and link

        * kwq/KWQXml.mm: (QXmlSimpleReader::parse): Put in a placeholder that calls expat.
	Mainly just used to make sure we link.

        * WebCore.pbproj/project.pbxproj: Added expat files.

        * expat/COPYING: Added.
        * expat/Changes: Added.
        * expat/MANIFEST: Added.
        * expat/README: Added.
        * expat/expat_config.h: Added.
        * expat/lib/ascii.h: Added.
        * expat/lib/asciitab.h: Added.
        * expat/lib/expat.h: Added.
        * expat/lib/iasciitab.h: Added.
        * expat/lib/internal.h: Added.
        * expat/lib/latin1tab.h: Added.
        * expat/lib/nametab.h: Added.
        * expat/lib/utf8tab.h: Added.
        * expat/lib/xmlparse.c: Added.
        * expat/lib/xmlrole.c: Added.
        * expat/lib/xmlrole.h: Added.
        * expat/lib/xmltok.c: Added.
        * expat/lib/xmltok.h: Added.
        * expat/lib/xmltok_impl.c: Added.
        * expat/lib/xmltok_impl.h: Added.
        * expat/lib/xmltok_ns.c: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f9855741
2003-01-12 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- first step towards integrating expat for XML support: make it compile and link
* kwq/KWQXml.mm: (QXmlSimpleReader::parse): Put in a placeholder that calls expat.
Mainly just used to make sure we link.
* WebCore.pbproj/project.pbxproj: Added expat files.
* expat/COPYING: Added.
* expat/Changes: Added.
* expat/MANIFEST: Added.
* expat/README: Added.
* expat/expat_config.h: Added.
* expat/lib/ascii.h: Added.
* expat/lib/asciitab.h: Added.
* expat/lib/expat.h: Added.
* expat/lib/iasciitab.h: Added.
* expat/lib/internal.h: Added.
* expat/lib/latin1tab.h: Added.
* expat/lib/nametab.h: Added.
* expat/lib/utf8tab.h: Added.
* expat/lib/xmlparse.c: Added.
* expat/lib/xmlrole.c: Added.
* expat/lib/xmlrole.h: Added.
* expat/lib/xmltok.c: Added.
* expat/lib/xmltok.h: Added.
* expat/lib/xmltok_impl.c: Added.
* expat/lib/xmltok_impl.h: Added.
* expat/lib/xmltok_ns.c: Added.
2003-01-12 Darin Adler <darin@apple.com>
Reviewed by Dave.
......
2003-01-12 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- first step towards integrating expat for XML support: make it compile and link
* kwq/KWQXml.mm: (QXmlSimpleReader::parse): Put in a placeholder that calls expat.
Mainly just used to make sure we link.
* WebCore.pbproj/project.pbxproj: Added expat files.
* expat/COPYING: Added.
* expat/Changes: Added.
* expat/MANIFEST: Added.
* expat/README: Added.
* expat/expat_config.h: Added.
* expat/lib/ascii.h: Added.
* expat/lib/asciitab.h: Added.
* expat/lib/expat.h: Added.
* expat/lib/iasciitab.h: Added.
* expat/lib/internal.h: Added.
* expat/lib/latin1tab.h: Added.
* expat/lib/nametab.h: Added.
* expat/lib/utf8tab.h: Added.
* expat/lib/xmlparse.c: Added.
* expat/lib/xmlrole.c: Added.
* expat/lib/xmlrole.h: Added.
* expat/lib/xmltok.c: Added.
* expat/lib/xmltok.h: Added.
* expat/lib/xmltok_impl.c: Added.
* expat/lib/xmltok_impl.h: Added.
* expat/lib/xmltok_ns.c: Added.
2003-01-12 Darin Adler <darin@apple.com>
Reviewed by Dave.
......
......@@ -88,6 +88,7 @@
children = (
F523D16302DE42AE018635CA,
F58785E802DE377601EA4122,
93F12C7603CCFD570000011C,
F58785E902DE378A01EA4122,
089C1665FE841158C02AAC07,
0867D69AFE84028FC02AAC07,
......@@ -468,6 +469,18 @@
BC7294FE03804B5600A80166,
9394E0A603AA5BBE008635CE,
9394E0AB03AA60FB008635CE,
93F12CA403CCFD570000011C,
93F12CA503CCFD570000011C,
93F12CA603CCFD570000011C,
93F12CA703CCFD570000011C,
93F12CA803CCFD570000011C,
93F12CA903CCFD570000011C,
93F12CAA03CCFD570000011C,
93F12CAB03CCFD570000011C,
93F12CAF03CCFD570000011C,
93F12CB103CCFD570000011C,
93F12CB303CCFD570000011C,
93F12CC803CD0AE60000011C,
);
isa = PBXHeadersBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
......@@ -704,6 +717,9 @@
BC7294FD03804B5600A80166,
9394E0A703AA5BBE008635CE,
9394E0AC03AA60FB008635CE,
93F12CAD03CCFD570000011C,
93F12CAE03CCFD570000011C,
93F12CB003CCFD570000011C,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
......@@ -1052,6 +1068,238 @@
path = KWQColorData.gperf;
refType = 4;
};
93F12C7603CCFD570000011C = {
children = (
93F12CC703CD0AE60000011C,
93F12C7C03CCFD570000011C,
93F12C7D03CCFD570000011C,
93F12C7E03CCFD570000011C,
93F12C7F03CCFD570000011C,
93F12C8003CCFD570000011C,
93F12C8103CCFD570000011C,
93F12C8203CCFD570000011C,
93F12C8303CCFD570000011C,
93F12C8503CCFD570000011C,
93F12C8703CCFD570000011C,
93F12C8603CCFD570000011C,
93F12C8903CCFD570000011C,
93F12C8803CCFD570000011C,
93F12C8B03CCFD570000011C,
93F12C8A03CCFD570000011C,
93F12C8C03CCFD570000011C,
);
isa = PBXGroup;
path = expat;
refType = 4;
};
93F12C7C03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = ascii.h;
path = lib/ascii.h;
refType = 4;
};
93F12C7D03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = asciitab.h;
path = lib/asciitab.h;
refType = 4;
};
93F12C7E03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = expat.h;
path = lib/expat.h;
refType = 4;
};
93F12C7F03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = iasciitab.h;
path = lib/iasciitab.h;
refType = 4;
};
93F12C8003CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = internal.h;
path = lib/internal.h;
refType = 4;
};
93F12C8103CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = latin1tab.h;
path = lib/latin1tab.h;
refType = 4;
};
93F12C8203CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = nametab.h;
path = lib/nametab.h;
refType = 4;
};
93F12C8303CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = utf8tab.h;
path = lib/utf8tab.h;
refType = 4;
};
93F12C8503CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmlparse.c;
path = lib/xmlparse.c;
refType = 4;
};
93F12C8603CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmlrole.c;
path = lib/xmlrole.c;
refType = 4;
};
93F12C8703CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmlrole.h;
path = lib/xmlrole.h;
refType = 4;
};
93F12C8803CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmltok.c;
path = lib/xmltok.c;
refType = 4;
};
93F12C8903CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmltok.h;
path = lib/xmltok.h;
refType = 4;
};
93F12C8A03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmltok_impl.c;
path = lib/xmltok_impl.c;
refType = 4;
};
93F12C8B03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmltok_impl.h;
path = lib/xmltok_impl.h;
refType = 4;
};
93F12C8C03CCFD570000011C = {
fileEncoding = 30;
isa = PBXFileReference;
name = xmltok_ns.c;
path = lib/xmltok_ns.c;
refType = 4;
};
93F12CA403CCFD570000011C = {
fileRef = 93F12C7C03CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CA503CCFD570000011C = {
fileRef = 93F12C7D03CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CA603CCFD570000011C = {
fileRef = 93F12C7E03CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CA703CCFD570000011C = {
fileRef = 93F12C7F03CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CA803CCFD570000011C = {
fileRef = 93F12C8003CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CA903CCFD570000011C = {
fileRef = 93F12C8103CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CAA03CCFD570000011C = {
fileRef = 93F12C8203CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CAB03CCFD570000011C = {
fileRef = 93F12C8303CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CAD03CCFD570000011C = {
fileRef = 93F12C8503CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CAE03CCFD570000011C = {
fileRef = 93F12C8603CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CAF03CCFD570000011C = {
fileRef = 93F12C8703CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CB003CCFD570000011C = {
fileRef = 93F12C8803CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CB103CCFD570000011C = {
fileRef = 93F12C8903CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CB303CCFD570000011C = {
fileRef = 93F12C8B03CCFD570000011C;
isa = PBXBuildFile;
settings = {
};
};
93F12CC703CD0AE60000011C = {
fileEncoding = 4;
isa = PBXFileReference;
path = expat_config.h;
refType = 4;
};
93F12CC803CD0AE60000011C = {
fileRef = 93F12CC703CD0AE60000011C;
isa = PBXBuildFile;
settings = {
};
};
//930
//931
//932
......
Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
and Clark Cooper
Copyright (c) 2001, 2002 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.
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 Miller.
- Removed unnecessary DllMain() function that caused static
linking into a DLL to be difficult.
- Added VC++ projects for building static libraries.
- Reduced line-length for all source code and headers to be
no longer than 80 characters, to help with AS/400 support.
- Reduced memory copying during parsing (SF patch #600964).
- Fixed a variety of bugs: see SF issues 580793, 434664,
483514, 580503, 581069, 584041, 584183, 584832, 585537,
596555, 596678, 598352, 598944, 599715, 600479, 600971.
Release 1.95.4 Fri Jul 12 2002
- Added support for VMS, contributed by Craig Berry. See
vms/README.vms for more information.
- Added Mac OS (classic) support, with a makefile for MPW,
contributed by Thomas Wegner and Daryle Walker.
- Added Borland C++ Builder 5 / BCC 5.5 support, contributed
by Patrick McConnell (SF patch #538032).
- Fixed a variety of bugs: see SF issues 441449, 563184,
564342, 566334, 566901, 569461, 570263, 575168, 579196.
- Made skippedEntityHandler conform to SAX2 (see source comment)
- Re-implemented WFC: Entity Declared from XML 1.0 spec and
added a new error "entity declared in parameter entity":
see SF bug report 569461 and SF patch 578161
- Re-implemented section 5.1 from XML 1.0 spec:
see SF bug report 570263 and SF patch 578161
Release 1.95.3 Mon Jun 3 2002
- Added a project to the MSVC workspace to create a wchar_t
version of the library; the DLLs are named libexpatw.dll.
- Changed the name of the Windows DLLs from expat.dll to
libexpat.dll; this fixes SF bug #432456.
- Added the XML_ParserReset() API function.
- Fixed XML_SetReturnNSTriplet() to work for element names.
- Made the XML_UNICODE builds usable (thanks, Karl!).
- Allow xmlwf to read from standard input.
- Install a man page for xmlwf on Unix systems.
- Fixed many bugs; see SF bug reports 231864, 461380, 464837,
466885, 469226, 477667, 484419, 487840, 494749, 496505,
547350. Other bugs which we can't test as easily may also
have been fixed, especially in the area of build support.
Release 1.95.2 Fri Jul 27 2001
- More changes to make MSVC happy with the build; add a single
workspace to support both the library and xmlwf application.
- Added a Windows installer for Windows users; includes
xmlwf.exe.
- Added compile-time constants that can be used to determine the
Expat version
- Removed a lot of GNU-specific dependencies to aide portability
among the various Unix flavors.
- Fix the UTF-8 BOM bug.
- Cleaned up warning messages for several compilers.
- Added the -Wall, -Wstrict-prototypes options for GCC.
Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000
- Changes to get expat to build under Microsoft compiler
- Removed all aborts and instead return an UNEXPECTED_STATE error.
- Fixed a bug where a stray '%' in an entity value would cause an
abort.
- Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for
finding this oversight.
- Changed default patterns in lib/Makefile.in to fit non-GNU makes
Thanks to robin@unrated.net for reporting and providing an
account to test on.
- The reference had the wrong label for XML_SetStartNamespaceDecl.
Reported by an anonymous user.
Release 1.95.0 Fri Sep 29 2000
- XML_ParserCreate_MM
Allows you to set a memory management suite to replace the
standard malloc,realloc, and free.
- XML_SetReturnNSTriplet
If you turn this feature on when namespace processing is in
effect, then qualified, prefixed element and attribute names
are returned as "uri|name|prefix" where '|' is whatever
separator character is used in namespace processing.
- Merged in features from perl-expat
o XML_SetElementDeclHandler
o XML_SetAttlistDeclHandler
o XML_SetXmlDeclHandler
o XML_SetEntityDeclHandler
o StartDoctypeDeclHandler takes 3 additional parameters:
sysid, pubid, has_internal_subset
o Many paired handler setters (like XML_SetElementHandler)
now have corresponding individual handler setters
o XML_GetInputContext for getting the input context of
the current parse position.
- Added reference material
- Packaged into a distribution that builds a sharable library
Changes
COPYING
MANIFEST
Makefile.in
README
configure
configure.in
expat_config.h.in
bcb5/ExpatGroup.bpg
bcb5/ReadMe.txt
bcb5/elements.bpf
bcb5/elements.bpr
bcb5/elements.mak
bcb5/libexpat.bpf
bcb5/libexpat.bpr
bcb5/libexpat.mak
bcb5/libexpatw.bpf
bcb5/libexpatw.bpr
bcb5/libexpatw.mak
bcb5/makefile.mak
bcb5/outline.bpf
bcb5/outline.bpr
bcb5/outline.mak
bcb5/setup.bat
bcb5/xmlwf.bpf
bcb5/xmlwf.bpr
bcb5/xmlwf.mak
conftools/PrintPath
conftools/ac_c_bigendian_cross.m4
conftools/config.guess
conftools/config.sub
conftools/expat.m4
conftools/install-sh
conftools/libtool.m4
conftools/ltmain.sh
conftools/mkinstalldirs
doc/reference.html
doc/style.css
doc/valid-xhtml10.png
doc/xmlwf.1
doc/xmlwf.sgml
examples/elements.c
examples/outline.c
lib/ascii.h
lib/asciitab.h
lib/expat.h
lib/iasciitab.h
lib/internal.h
lib/latin1tab.h
lib/nametab.h
lib/utf8tab.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
lib/winconfig.h
tests/README.txt
tests/chardata.c
tests/chardata.h
tests/runtests.c
tests/xmltest.sh
vms/descrip.mms
vms/expat_config.h
vms/README.vms
win32/expat.iss
win32/MANIFEST.txt
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/xmlwin32url.cxx
Expat, Release 1.95.5
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 executalbes, 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
After running the configure script, the "make" command will build
things and "make install" will install things into their proper
location. 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, following 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).