Compare commits

...
Author SHA1 Message Date
Fred L. Drake, Jr. 1d6a85c8f3 Set the release date. 2003-10-20 21:11:27 +00:00
Fred L. Drake, Jr. 9749816465 use indentation consistently 2003-10-20 14:50:37 +00:00
Fred L. Drake, Jr. 16efce86d2 Steal a bit of look-n-feel from the website; this document was just looking
incredibly bland.
2003-10-20 14:40:44 +00:00
Fred L. Drake, Jr. cf18cd478c avoid a few additional warnings for some compilers, and others with
warnings turned way up high
2003-10-18 04:46:02 +00:00
Fred L. Drake, Jr. 48bff2f30f Updates from last night. 2003-10-17 21:08:30 +00:00
Karl Waclawek b3a1f516ca Fix for bug #824420. 2003-10-16 14:26:46 +00:00
Fred L. Drake, Jr. f4487b0a0f update to reflect further improvements 2003-10-16 05:05:16 +00:00
Fred L. Drake, Jr. 99609421a8 Make it possible to avoid the import of expat_config.h. This makes it
easier to compile Expat without the autoconf support.
This closes SF patch #458907.
2003-10-16 04:51:11 +00:00
Fred L. Drake, Jr. 18b57349d9 - reorganize by the components that need what we're checking for
- remove the check for memcmp(); we didn't use the result of the check
  (though we do use memcmp())
2003-10-16 04:32:39 +00:00
Fred L. Drake, Jr. c56983e0f0 - use spaces instead of tabs consistently
- don't allow trailing whitespace at the end of lines
- remove blank lines at the end of the file
2003-10-16 04:23:44 +00:00
Fred L. Drake, Jr. 80e8668e6f Remove the __attribute__((dllimport)) and __attribute__((dllexport))
declarations; these are needed only on an obscure platform (Windows NT
on PowerPC using GCC), and were never in previous releases of Expat.
They caused way too many spurious warnings on several platforms where
they aren't actually needed but should be ignored silently.
Removing these cannot break working code.
2003-10-16 04:20:54 +00:00
Karl Waclawek 5bdc75633d Removed unused EXPAT_EXPORTS definition. 2003-10-15 21:38:15 +00:00
Fred L. Drake, Jr. 2331e87068 clean up the macro restructuring, and make it play nice on Windows 2003-10-15 20:51:28 +00:00
Fred L. Drake, Jr. 7b1a4b6f16 - add the XMLCALL annotation consistently in the docs
- don't drop the void return for handler setting functions
2003-10-15 20:46:53 +00:00
Fred L. Drake, Jr. 5cc0142ddc - the "alt" attribute is required on <img/> to be valid XHTML strict
- minor cleanup
2003-10-15 20:02:12 +00:00
Fred L. Drake, Jr. 5635f09e4c - add Expat version number
- add notes about safely using XMLCALL with older Expat versions
2003-10-15 18:49:54 +00:00
Fred L. Drake, Jr. 6590085eff Update to reflect the addition of the XMLCALL macro. 2003-10-15 18:33:27 +00:00
Fred L. Drake, Jr. ff6d437c22 Add a news item about the upcoming release, and a pointer to the testing
snapshot.
2003-10-15 18:16:35 +00:00
Fred L. Drake, Jr. c33c38d289 Move "Configuring Expat Using the Pre-Processor" from the "Using"
section to the "Building" section.
2003-10-15 16:36:23 +00:00
Fred L. Drake, Jr. 2bba3d20f5 Deal with issue discussed in SF patch #820946: Expat doesn't handle
the use of modified default calling conventions in client code.

To deal with this issue and generally clean up the mass of macros
being used to support bits of the machinery, two new macros are being
added:

- XMLCALL, which expands to whatever is needed to nail down the
  calling convention for all calls across the library boundary.  This
  must match the convention used for the system's malloc()
  implementation.

- XMLIMPORT, defined to be whatever magic is needed to mark an entry
  point as imported from a dynamically loaded module (.dll, .so, .sl,
  whatever).

These macros are used to define the XMLPARSEAPI macro already being
used to define the API entry points.  In addition, XMLCALL is used to
define the types of callback functions, and all example code uses this
explicitly in both the distributed applications and the documentation.
2003-10-15 16:25:44 +00:00
Fred L. Drake, Jr. 032ed43a38 - move the CVS repository specification to a variable
- use authenticated access for now, since SF's anonymous CVS still
  isn't in a happy state
2003-10-11 17:50:22 +00:00
Greg Stein c02e8784e7 Put in a little protection against the developer not having the check
package available.

sfbug #664541.

* configure.in: look for check.h. This will set up a HAVE_CHECK_H define.

* tests/chardata.c, tests/runtests.c: update banner. add test for
    HAVE_CHECK_H and bail if not present.
2003-10-09 21:32:28 +00:00
Fred L. Drake, Jr. 0c78684ba5 Minor updates before release. 2003-10-09 12:18:41 +00:00
Fred L. Drake, Jr. b5aaaefa1f Added documentation for the pre-processor macros used to configure Expat. 2003-10-08 03:32:25 +00:00
Greg Stein d7a766e9df Suggested fix from jtalkington@users.sf.net.
See bug #765227.

* lib/internal.h:
  (FASTCALL, PTRFASTCALL): only define these macros for the GNU C compiler
    on i386 platforms. apprently, they do not work well on PPC ports.
2003-09-28 21:57:22 +00:00
Karl Waclawek ecceec27f2 Improved comment on hash algorithm. 2003-09-22 14:14:54 +00:00
Karl Waclawek b28869898a Applied patch #699487. For details see patch description. 2003-09-13 17:30:30 +00:00
Fred L. Drake, Jr. ee9e686680 wrapped some long lines 2003-09-12 03:52:18 +00:00
Karl Waclawek 9e252e84d8 Updated mailing list links. 2003-09-05 17:20:47 +00:00
Karl Waclawek 8128549ff1 Corrected typo. 2003-09-05 00:42:46 +00:00
Karl Waclawek 8aee05d06b Added a file for testing the duplicate prefixed attribute check. 2003-09-05 00:40:23 +00:00
Karl Waclawek c2a87a1b7e Added files for performance testing. 2003-09-04 21:31:32 +00:00
Karl Waclawek 8ffc7e6556 Explains usage of benchmark utility. 2003-09-04 16:13:10 +00:00
Fred L. Drake, Jr. a1980e2fb9 Add explanations for this directory. 2003-09-04 16:05:02 +00:00
Karl Waclawek 0c62e320f8 Small benchmark utility to test pure parser speed.
Tested on Windows only. Includes MS VC++ 6.0 workspace.
2003-09-04 16:01:54 +00:00
Karl Waclawek 04e4395048 Adjusted layout of XML_ParserReset fix. 2003-08-28 13:12:34 +00:00
Karl Waclawek f375cc9c98 Fixed omission of second argument in XML_ParserReset.
Reported by Tim Bray.
2003-08-28 13:08:10 +00:00
Fred L. Drake, Jr. 118ea18262 elaborated test case to cover SF bug #774028; current Expat already
handles this correctly
2003-08-27 12:34:23 +00:00
Fred L. Drake, Jr. b7e1fb5e4e update link to mailing lists 2003-08-04 14:38:24 +00:00
Fred L. Drake, Jr. 8940f541ca Update expatpp link, and use the name in the description. 2003-07-28 15:46:32 +00:00
Fred L. Drake, Jr. cb1d481cda Added link to Late Night Software's XML Tools 2. 2003-07-25 16:30:47 +00:00
Fred L. Drake, Jr. 4b4c45e4d6 Replace a poor message with one that isn't misleading.
See SF bug #699323.
2003-07-16 12:21:25 +00:00
Fred L. Drake, Jr. 63870ec6db Update the library version properly this time. 2003-07-15 17:29:42 +00:00
Fred L. Drake, Jr. dc2b252367 Added notes about needing the check library to run the regression and
unit tests.
See SF bug #732794.
2003-07-15 15:42:13 +00:00
Fred L. Drake, Jr. fa49735f8a - bump the versioning information
- start describing the changes in 1.95.7
2003-07-15 15:20:35 +00:00
Karl Waclawek 57455c864c Expat would report an incorrect "Unlosed token" error when
expanding %percent; in the second of these entity declarations:

<!ENTITY % percent "&#37;">
<!ENTITY %percent; y "value">

This patch was submitted by James Clark on the xml-dev mailing list.
2003-07-03 04:01:14 +00:00
Greg Stein f42e8ae96b Patch submitted by Joe Orton <joe@manyfish.co.uk> with additional
modifications by Greg Stein (comments and text changes).

* buildconf.sh: to deal with crazy/custom libtool installations, allow
    the developer/package to specify the libtool.m4 location by
    setting the LIBTOOL_M4 environment variable. If that isn't set,
    then we use our previous method of trying to derive its location.
2003-06-18 01:11:45 +00:00
Fred L. Drake, Jr. beb865de86 Add a reference to the Simkin scripting language. 2003-04-15 18:43:03 +00:00
Fred L. Drake, Jr. f668c507d9 Be more defensive: only enable the *CALL macros when using GCC on
Linux, since we know the current definitions work there and have a
positive effect.
This closes SF bug #692878.
2003-03-14 17:25:12 +00:00
Fred L. Drake, Jr. 5bd3d020d3 - better explain the XML_GetCurrent*() functions (SF bug #683681) 2003-03-13 02:17:48 +00:00
Fred L. Drake, Jr. c288abe148 - better explain the XML_GetCurrent*() functions (SF bug #683681)
- fix spelling
2003-03-13 02:13:06 +00:00
Fred L. Drake, Jr. de2aab2a91 Fix function signature.
Closes SF bug #679468.
2003-03-13 01:30:48 +00:00
Fred L. Drake, Jr. cc454566be Fix FASTCALL for GCC on Solaris (SF bug #692878).
This file is becoming a liability.
2003-03-12 23:02:11 +00:00
Fred L. Drake, Jr. c95888aeed Removed documentation of limitations that no longer exist in the
implementation.  See SF bug #620343.
2003-03-12 22:42:53 +00:00
Fred L. Drake, Jr. 2ff7f92016 - be more specific about the errors we expect to see reported
- change the name of make_basic_suite() to make_suite(), since there's
  only one make_*_suite() function
2003-03-12 19:25:03 +00:00
Fred L. Drake, Jr. 72ba3bd3d8 Add regression tests for SF bugs:
#692964 - Case where expat 1.95.6 doesn't report duplicate attributes
#695401 - Unbound prefixes not rejected
2003-03-12 19:17:18 +00:00
Karl Waclawek 8650b04b24 Apply patch NSAttFix3.diff for bug #692964 (with one minor modification).
This also fixes bug #695401.
2003-03-07 15:54:08 +00:00
Karl Waclawek 2d3510fa5f Fix for bug #679754: compile error when XML_DTD not defined. 2003-02-03 20:32:45 +00:00
Fred L. Drake, Jr. 777344d49d Move the XML_Status enum definition earlier. Some recent versions of
GCC (3.2 at least) report an error from the forward reference.
2003-01-29 02:43:08 +00:00
Fred L. Drake, Jr. a711a048ef Add win32/README.txt to the Source/ directory that gets installed. 2003-01-28 15:26:59 +00:00
Fred L. Drake, Jr. 0edf0b6689 XML_Status is an enum, not a typedef name. 2003-01-28 15:23:39 +00:00
Fred L. Drake, Jr. c48e483c59 Fix the release date... again. 2003-01-28 05:54:33 +00:00
Fred L. Drake, Jr. 1ffb2b424a Karl's latest patch for SF issue #673791:
Call storeAtts() for all element start tags; this is necessary to
ensure attribute defaults are properly processed for all elements
(needed to do proper namespace checking, at the very least), and that
tag names are properly cooked when there's an end-element-handler but
no start-element-handler.

This causes the new tests to pass, and closes the SF tracker issue.
2003-01-28 05:45:10 +00:00
Fred L. Drake, Jr. db8a501c0d - two more tests based on Karl's comments on SF patch #673791
- pass XML_TRUE or XML_FALSE as the isFinal parameter for XML_Parse()
2003-01-28 05:33:37 +00:00
Fred L. Drake, Jr. eedd60ee72 Add the .DEF files to the Windows installer. 2003-01-26 01:11:29 +00:00
Fred L. Drake, Jr. 33176a01d0 Added change notes for Expat 1.95.6, in preparation for pending
release.  This should not be published in the release is made public
on SourceForge.
2003-01-25 18:43:29 +00:00
Fred L. Drake, Jr. f16ae245bf Replace tabs with spaces. 2003-01-25 16:25:34 +00:00
Fred L. Drake, Jr. c6db3a89f7 Update more version numbers. 2003-01-25 16:10:15 +00:00
Fred L. Drake, Jr. 6a43d872b7 Update for release 1.95.6. 2003-01-25 15:36:31 +00:00
Fred L. Drake, Jr. 06f1a47c8f Update information on the 1.95.6 release (still pending). 2003-01-25 15:33:21 +00:00
Fred L. Drake, Jr. f85926afd5 Added regression tests for SF bug #673791. 2003-01-25 06:55:25 +00:00
Fred L. Drake, Jr. a04f107e61 Karl's fix for SF bug #673791:
Error with xmlns:prefix= with namespace processing enabled.

It seems that storeAtts() has the following properties:
- when called with tagNamePtr = NULL and bindingsPtr = NULL,
  it does not process attributes incl. namespace declarations
- when called with all arguments non-NULL it processes
  attributes (incl. default attributes) and namespace declarations

We also have these requirements:

A) for start of element event:

  1) if we have a startElementHandler:
     we need to process at least default attributes,
     so we must call storeAtts with all arguments non-NULL
  2) if we have no startElementHandler, but we have attributes:
     we need to process namespace declarations,
     so we must call storeAtts with all arguments non-NULL
  3) if we have no startElementHandler and no attributes:
     we need to store the name (for the end element event, where
     the names are compared) and call only the default handler

  Note: Storing the name is a pre-requisiste for calling
        storeAtts with all arguments non-NULL.

So there really is no place for calling storeAtts with
tagNamePtr = NULL and bindingsPtr = NULL.

B) for empty element event:

  1) if we have a startElementHandler:
     we need to process at least default attributes,
     so we must call storeAtts with all arguments non-NULL
  2) if we have no startElementHandler, but we have attributes:
     we need to process namespace declarations,
     so we must call storeAtts with all arguments non-NULL
  3) if we have no startElementHandler and no attributes,
     but we have an endElementHandler:
     we need to store the name for calling the handler,
     but we need not process any attributes (default or not)
  4) if we have no start- or endElementHandler, and no attributes:
     we need to call only the default handler

Given that storeAtts will now always be called with all arguments
non-NULL we could remove a few internal checks in storeAtts,
if that improves efficiency. Not sure if that is worth it.

This patch should therefore fix the problem of namespace declarations
not being processed when no startElementHandler is set, that is,
it will fix Jeremy's NS processing patch.
2003-01-25 06:53:05 +00:00
Fred L. Drake, Jr. 7fd8181a4a Thread the proper file name and line number to make determination of
which test is failing easier.
2003-01-25 04:57:44 +00:00
Fred L. Drake, Jr. e39c6e2237 Last minute updates. 2003-01-24 18:43:20 +00:00
Fred L. Drake, Jr. de5e0f55c8 Regenerate from xmlwf.sgml revision 1.4. 2003-01-24 18:34:59 +00:00
Fred L. Drake, Jr. ed1d59f6b1 Explain "--" properly. 2003-01-24 18:34:03 +00:00
Fred L. Drake, Jr. d976fa61a6 Add a clobber target. "clean" should really be less destructive, but
libtool is really a thorn with regard to this.
2003-01-24 16:21:46 +00:00
Fred L. Drake, Jr. da325003e9 Regenerate from xmlwf.sgml. 2003-01-24 15:26:06 +00:00
Fred L. Drake, Jr. 9934dba58a - document unexpected memory use reporting when memory mapped files
are used; closes SF bug #632146
- minor changes to wording in a few places
- remove cute comment on one of the linked sites
- added more markup
2003-01-24 15:23:33 +00:00
Fred L. Drake, Jr. 5d55922080 - _expect_failure(): Use _fail_unless() instead of fail() to allow
reporting of the right line number
- add test that demonstrates the default namespace can be reset
  without a syntax error
2003-01-24 05:39:16 +00:00
Fred L. Drake, Jr. 4273b16711 Add a test that makes sure xmlns:prefix="" is allowed when namespace
processing is not enabled.
2003-01-24 05:09:42 +00:00
Karl Waclawek d9d497177a Applied patch #673791. 2003-01-24 05:01:45 +00:00
Karl Waclawek dd2ecd7fa8 For the start of element and end of element events, it is possible that
the default handler does not get called even when no element handlers
are called, because storeAtts() may trigger the startNamespaceDeclHandler
where the application has a chance to clear the element handlers.

This patch fixes this with one issue still open, which applies to empty elements only:
When the endElement handler is called, but not the startElementHandler,
then the default handler is not called, which causes attributes to not
be reported at all. The other alternative would be to call the default handler,
but then the element would be reported twice.
2003-01-22 14:52:20 +00:00
Karl Waclawek c56f444ab0 Prevent storeAtts() from being called twice for an empty element when
the endElementHandler is set, but not the startElementHandler.
2003-01-22 14:26:07 +00:00
Fred L. Drake, Jr. d6df5f356b - update information on the GOBO Expat interface
- fix some well-formedness errors
- add some missing punctuation
2003-01-22 03:19:22 +00:00
Fred L. Drake, Jr. 164b04825b Added notes that the namespace decl handlers are only called when the
start element handler is set.  See SF bug #620343.
2003-01-21 16:09:31 +00:00
Fred L. Drake, Jr. b2e6a40fbb Fix test case regarding reporting of undefined entities and
non-validating parsers (see section 5.1 of the XML 1.0 specification).
2003-01-21 05:41:24 +00:00
Fred L. Drake, Jr. 31c109284d Added link to a discussion of another way to handle stateful
callbacks, using Expat as an example library to work with.
Closes SF bug #658080.
2003-01-21 05:20:51 +00:00
Fred L. Drake, Jr. 3d6f978672 Documented XML_SetExternalEntityRefHandlerArg(), including API
foolishness noted in SF bug #644344.
Closes SF bug #644344.
2003-01-21 05:00:51 +00:00
Fred L. Drake, Jr. a4e0597458 - try to be smarter about the options to cp
- use indentation consistently
- one we've built the tarball successfully, clean up the 2nd temp dir
2003-01-20 15:25:20 +00:00
Fred L. Drake, Jr. f6b3146642 Update the list of project files for the Borland tools. 2003-01-20 15:00:57 +00:00
Fred L. Drake, Jr. 37be32f63f Minor cleanups and conformance with current recommended usage. 2003-01-20 14:49:44 +00:00
Karl Waclawek 8850c38338 Correct the version some APIs were added in. 2003-01-17 00:49:12 +00:00
Fred L. Drake, Jr. e629e75f89 Added notes about the new APIs. 2003-01-16 23:24:38 +00:00
Fred L. Drake, Jr. 7410374a90 Correct the version some APIs were added in. 2003-01-16 23:22:56 +00:00
Fred L. Drake, Jr. bbfa307c6b Add documentation for XML_FreeContentModel(), XML_MemMalloc(),
XML_MemRealloc(), and XML_MemFree().
2003-01-16 23:15:19 +00:00
Karl Waclawek 131116f1ec Change to support Windows 2000 behaviour by default 2003-01-16 22:07:26 +00:00
Karl Waclawek 0c7508bf81 Updating Borland BCB5 DEF files for patch re. bug/feature request #651754 2003-01-16 22:05:46 +00:00
Karl Waclawek f19a5291ec Patch for bug/feature request #651754.
Implemented with two API additions:
1) For element declaration handler support:
  XML_FreeContentModel
2) Exposing Expat's memory allocation functions:
  XML_MemMalloc
  XML_MemRealloc
  XML_MemFree
2003-01-16 22:03:42 +00:00
Karl Waclawek 3bfb49007e Applied patch for bug #667511 supplied by Jeremy Kloth. 2003-01-15 00:51:15 +00:00
Fred L. Drake, Jr. 77c2d3e0ae Update comments to refer to XML_STATUS_OK, XML_STATUS_ERROR, and NULL
as appropriate.
2002-12-31 17:53:21 +00:00
Fred L. Drake, Jr. eb280e7260 Change the API to return XML_Status values where possible.
Existing client code is 100% compatible.
2002-12-30 20:12:52 +00:00
Fred L. Drake, Jr. f379e9315f When returning a status value through the public API, use
XML_STATUS_OK / XML_STATUS_ERROR.  Internal status returns are not
affected.
2002-12-30 20:02:28 +00:00
Fred L. Drake, Jr. 7556575221 Clarify the documentation for the position-reporting functions
somewhat (see SF bug #653180).

Use XML_STATUS_ERROR and XML_STATUS_OK instead of 0, 1, and "non-zero"
in several places.
2002-12-30 19:50:06 +00:00
Fred L. Drake, Jr. 42dc47850e Oops, there were more regression tests for SF bug #653180; add these
as well.
2002-12-30 19:33:21 +00:00
Fred L. Drake, Jr. d9b09dd45e Added regression tests from bug; Karl already fixed the bug itself.
Closes SF bug #653180.

Removed test that failed to tickle the bug, but should have.
2002-12-30 19:20:39 +00:00
Karl Waclawek e6802bb514 Fix for bug/feature request #653180. 2002-12-16 04:02:02 +00:00
Karl Waclawek ed47baa513 Applied patch for bug #653449. 2002-12-14 03:12:18 +00:00
Patrick McConnell e541a7f743 Segregate obj files for utf8 and unicode build versions 2002-12-09 17:23:23 +00:00
Karl Waclawek f162999a26 Annotated MS VC++ DEF files. 2002-12-08 14:35:34 +00:00
Patrick McConnell 0703fecbdc Moving the Borland module definition files to the bcb5 dir, correcting
an error in the LIBRARY entry in the def files, calling the new def
files in the proj and make files.
2002-12-08 03:37:41 +00:00
Patrick McConnell 2fd9d5e8d6 Moving the Borland .def files to the BCB5 directory and correcting an
error in the LIBRARY entry
2002-12-08 03:16:38 +00:00
Karl Waclawek eddeed59f9 Clarified runtime linking issues. 2002-12-07 14:18:50 +00:00
Patrick McConnell 5d1952a9f9 Revision of Borland proj and make files to fix dos carriage return
problem. Files remain identical to initial release for building static
and wide-char versions of libs, as well as the dll's.
2002-12-07 08:59:43 +00:00
Patrick McConnell 7c008489b1 libexpat dll def files for borland initial release 2002-12-07 08:25:58 +00:00
Patrick McConnell f4f555f8a5 Removed dos linefeeds, test this before doing rest of bcb5 2002-12-06 22:29:14 +00:00
Patrick McConnell d9e3766cd4 *** empty log message *** 2002-12-06 21:52:38 +00:00
Patrick McConnell 038f5f0f6e *** empty log message *** 2002-12-06 21:36:08 +00:00
Fred L. Drake, Jr. e2dd730af2 Added a link to SCEW. 2002-12-04 06:52:36 +00:00
Karl Waclawek 48cb2c35b0 Added additional patch for bug #644334. Includes workaround for
bad API typedef of externalEntityRefHandler.
2002-11-27 17:11:32 +00:00
Fred L. Drake, Jr. 9a41111b9d Add some type casts to deal with MALLOC signature checking for
some platforms.
Closes SF bug #644334.
2002-11-27 04:03:33 +00:00
Fred L. Drake, Jr. d0d21d7253 The feature name pointers should be marked const. This reportedly
avoids some warnings on HP-UX using the aCC compiler.
Closes SF bug #644461.
2002-11-27 03:31:23 +00:00
Karl Waclawek 1a6b939100 Fixed memory leak. 2002-11-20 16:20:10 +00:00
Fred L. Drake, Jr. 4e95e87acb Make sure all lines end with a newline. 2002-11-20 04:27:32 +00:00
Fred L. Drake, Jr. 0a40843bde Remove trailing whitespace. 2002-11-12 21:49:36 +00:00
Fred L. Drake, Jr. 47d66b73ba Remove trailing whitespace. 2002-11-12 21:44:18 +00:00
Fred L. Drake, Jr. 843c5c4f5c Added regression test for SF bug #483514: Default handler reports
handled events.
2002-11-12 20:26:05 +00:00
Fred L. Drake, Jr. 1e4bab1724 Added regression test for SF bug #620106: XML_SetEncoding() broken
for external entities.
2002-11-12 19:22:49 +00:00
Fred L. Drake, Jr. a515b7b01c Added regression test for SF bug #616863.
Cleaned up some indentation.
Report the version of the Expat library if not in "silent" mode.
2002-11-07 23:02:26 +00:00
Fred L. Drake, Jr. de3338154c Avoid use of xargs; not available on Windows when using MSYS/MinGW. 2002-11-07 21:48:05 +00:00
Karl Waclawek c61a46c305 * Applied patch #620822 - Windows Dll build with DEF file
* Changed macro for static linking from _STATIC to XML_STATIC
  and modified expat.h accordingly
* Added ReadMe file to Win32 subdirectory documenting Windows builds
* Changed static build settings to create libraries with names different
  from the Dll stub library libexpat(w).lib
2002-10-21 21:19:41 +00:00
Fred L. Drake, Jr. 0bf90d3f52 Adjust markup a bit, adding some internal hyperlinks. 2002-10-17 19:13:55 +00:00
Karl Waclawek b6a92c7a8f Improved documentation of XML_ExternalEntityRefHandler. 2002-10-17 16:47:45 +00:00
Karl Waclawek e3bfa4a70a Applied patch for bug # 620106. 2002-10-09 13:21:45 +00:00
Fred L. Drake, Jr. f4befc31c3 SF bug #620343: segfault: bad API/callback interaction
The start-namespace-decl callback can set the start-element callback to
NULL, but Expat tried to call it anyway.
2002-10-08 17:04:55 +00:00
Fred L. Drake, Jr. 8d3327daf6 Add omitted period. 2002-10-08 14:02:02 +00:00
Fred L. Drake, Jr. 6fca489398 Bump version numbers. 2002-10-07 20:26:31 +00:00
Fred L. Drake, Jr. b3979b5fbb Start making notes about changes. 2002-10-07 20:25:24 +00:00
Karl Waclawek 7edd98f770 Applied patch #618199. 2002-10-03 19:41:26 +00:00
Karl Waclawek ea4dc4d03f Applied fix for bug #616863. 2002-10-01 16:58:54 +00:00
Karl Waclawek 8666c2388d Forgot to re-establish implicit namespace context (prefix xml)
in XML_ParserReset().
2002-09-30 12:11:26 +00:00
Karl Waclawek 74e6874851 Fix for bug #615606. 2002-09-28 14:47:34 +00:00
Fred L. Drake, Jr. 22331bd3bf Move the old news to a separate page, hopefully making the 3rd-party
wrapper information more discoverable.

Add a link to the top pointing down to the "References & Wrappers"
section, for the same purpose.  (Thanks, Karl!)
2002-09-27 14:13:12 +00:00
Fred L. Drake, Jr. 4266d70c97 Archive old news off the main page so it is not so distracting. Hopefully
makes the 3rd-party wrapper information more discoverable.
2002-09-27 14:11:43 +00:00
Karl Waclawek 5ca83cc911 Changed calling convention macros to differentiate between
different types of function calls - see comments in internal.h.
2002-09-20 03:42:43 +00:00
Fred L. Drake, Jr. 896b3d1cc9 Fix a name. 2002-09-19 20:19:51 +00:00
Fred L. Drake, Jr. d784ead9cb A last-minute report suggests a problem with this using at least some
versions of egcs, so disable FASTCALL for GCC as well.  We are now not using
this for any platform.  ;-(
2002-09-06 21:49:57 +00:00
Fred L. Drake, Jr. 3aa214ccc1 Revised one of the change notes slightly. 2002-09-06 21:32:19 +00:00
Fred L. Drake, Jr. 9bd525992b Disable FASTCALL on Windows since it turned out not to be as effective
as hoped.  Leaving the definition in the file so we'll know what it
was that didn't work, and hopefully find something better in the
future.
2002-09-06 21:29:46 +00:00
Fred L. Drake, Jr. d467f7ee94 Add the static libraries to the manifest of installed files for Windows. 2002-09-06 20:32:10 +00:00
Fred L. Drake, Jr. 15f4de36f2 Install the static libs and the PNG icon for the documentaiton. 2002-09-06 20:30:45 +00:00
Fred L. Drake, Jr. 50bf4791f7 Stupid typo. 2002-09-05 21:29:12 +00:00
Fred L. Drake, Jr. db78c304ec Let's make at least one distribution try to be complete. 2002-09-05 21:25:41 +00:00
Fred L. Drake, Jr. 1486043e74 Add the new, internal header file. 2002-09-05 21:02:17 +00:00
Karl Waclawek 7114a9f6e6 Updated link. 2002-09-05 20:27:51 +00:00
Fred L. Drake, Jr. 8c528fc7e2 Refer to the roadmap document until I can update this page; hopefully
tonight.
2002-09-05 20:27:46 +00:00
Fred L. Drake, Jr. f8714f4c14 Make it clear that "Namespaces in XML 1.1" is included when we talk
about XML 1.1.
2002-09-05 20:18:45 +00:00
Karl Waclawek 633caf8040 Fred and I added FASTCALL directives to xmltok.c and related files. 2002-09-05 18:21:01 +00:00
Karl Waclawek 6483b5cbdd Make FASTCALL function pointer declaration compile under VC++. 2002-09-05 15:25:06 +00:00
Fred L. Drake, Jr. efb3190524 Update the version/compatibility information for the API.
Update the email address for bug reports.
2002-09-05 04:46:24 +00:00
Fred L. Drake, Jr. 4d17e2c582 Update RPM spec file for Expat 1.95.5. 2002-09-05 04:17:25 +00:00
Fred L. Drake, Jr. 9d79d46fb9 Update information about the Expat mailing lists, and the version
number.
2002-09-05 03:34:47 +00:00
Fred L. Drake, Jr. 3c08a83d5f Add the proper way of dealing with page margins. This is better than
the browser-specific tags currently in the pages, and works on some
browsers that don't support those extensions.
2002-09-05 03:20:11 +00:00
Fred L. Drake, Jr. 0d43a305a9 Added a news item about the roadmap document. This is important for
the future development efforts.
2002-09-05 03:14:45 +00:00
Fred L. Drake, Jr. e976a1a67d Add a note to the prolog directing discussion to the expat-discuss
list.
2002-09-05 03:13:05 +00:00
Fred L. Drake, Jr. e0eade938b Added the date of the last update. 2002-09-05 03:08:01 +00:00
Fred L. Drake, Jr. 0fb88c013f Add link to the roadmap document. 2002-09-05 03:06:48 +00:00
Fred L. Drake, Jr. 16b5677b9b Predict a release date.
Add a note about the internal calling convention magic.
2002-09-05 02:00:56 +00:00
Fred L. Drake, Jr. 858593e849 Use the FASTCALL macro for many of the internal functions. 2002-09-05 01:58:27 +00:00
Fred L. Drake, Jr. ca524b2c69 Added new header for common internal definitions. These are all performance-
related at the moment.
2002-09-05 01:56:29 +00:00
Fred L. Drake, Jr. ad0e1a943b Elaborate the XML_GetFeatureList() API a bit, and add additional info
that may be needed by a hughly flexible client.  (Or at least used to check
that the Expat that it links to matches client expectations.)
2002-09-05 01:48:26 +00:00
Fred L. Drake, Jr. eb13d682e6 Don't hedge; call it what it is. 2002-09-04 17:26:58 +00:00
Fred L. Drake, Jr. 881a54a152 Added text about the pull/suspend model for parsing; not sure this is
in the right section.
2002-09-04 17:25:37 +00:00
Fred L. Drake, Jr. fde0571cc0 Small elaboration of what the new API needs to support. 2002-09-04 17:06:06 +00:00
Fred L. Drake, Jr. 5d080f104a Add HTML version of the roadmap document currently in development. 2002-09-04 15:47:40 +00:00
Fred L. Drake, Jr. f314b5a595 Abstract some of the styling information out of the individual documents. 2002-09-04 15:46:35 +00:00
Karl Waclawek aa6a61475b Included "invalid" test cases, to check if the parser reports them
as well-formed without errors.
2002-09-04 03:04:44 +00:00
Fred L. Drake, Jr. 8875cf76db Update to Karl's version of this script, and use the latest version of
the tests from the W3C.
2002-09-03 23:19:30 +00:00
Karl Waclawek c6160c2aee Added some comments regarding previous fix (bug #602729). 2002-08-31 02:27:20 +00:00
Karl Waclawek fb523d10cc Fix bug reported by Rolf Ade:
CR at end of buffer in epilog causes memory access violation.
2002-08-30 23:22:20 +00:00
Fred L. Drake, Jr. 8ebc3a260e New test: demonstrate segfault in epilogProcessor(). Karl has a fix
for this that he'll check in shortly.
2002-08-30 22:05:55 +00:00
Fred L. Drake, Jr. 75796f52a4 Added information on the expat-checkins list. 2002-08-29 18:23:42 +00:00
Fred L. Drake, Jr. 2d231bffbb Update links to the mailing lists. 2002-08-29 18:13:36 +00:00
Fred L. Drake, Jr. 8ab3f3ee92 Make these well-formed XHTML. 2002-08-29 18:07:03 +00:00
Karl Waclawek 1dfb9e1aa6 Added default handler fix. 2002-08-29 18:06:31 +00:00
Fred L. Drake, Jr. 1511fbf505 At least make this well-formed XHTML. 2002-08-29 18:00:51 +00:00
Fred L. Drake, Jr. 8b72d99dbf Tabs are evil; remove them. 2002-08-29 16:48:01 +00:00
Fred L. Drake, Jr. fc50f773e9 Document the special build considerations for building from a CVS
checkout instead of a packaged source distribution.
2002-08-29 16:46:59 +00:00
Fred L. Drake, Jr. ee96d299e7 Fixed indentation, added period. 2002-08-29 16:25:12 +00:00
Karl Waclawek 6c2d89cf39 Added static library build support under VC++ 2002-08-29 16:17:09 +00:00
Fred L. Drake, Jr. fcfed06b51 Consistently use "Expat" when refering to the Expat software.
Other minor clarifications.
2002-08-29 15:57:08 +00:00
Fred L. Drake, Jr. a759c51ca1 The strings returned as part of the XML_Feature structure should be of type
XML_LChar*, not XML_Char*.
2002-08-29 15:29:52 +00:00
Fred L. Drake, Jr. e5cf509115 Revise the XML_GetFeatureList() function signature so that we maintain the
behavior that all strings returned from Expat are affected by the XML_UNICODE
and XML_UNICODE_WCHAR_T feature-test macros, and ensure that an application
that needs to determine what type of character data is returned can do so
with reasonable ease.
2002-08-29 04:54:04 +00:00
Fred L. Drake, Jr. d9be20e8f0 Make the arg to XML_ErrorString() an XML_Error value. Compatible
since enums are binary compatible with ints.
2002-08-27 22:58:25 +00:00
Fred L. Drake, Jr. 325d6f339f Define XML_Error enum before referencing it.
Make the arg to XML_ErrorString() an XML_Error value.  Compatible
since enums are binary compatible with ints.
2002-08-27 22:57:59 +00:00
Fred L. Drake, Jr. a3e77face0 Added more updates; mostly the list of misc. bugs that have been
fixed.
2002-08-27 22:42:52 +00:00
Fred L. Drake, Jr. 4b5958655b Added & elaborated some comments about the structures maintained to
store tag information.
2002-08-27 21:55:19 +00:00
Fred L. Drake, Jr. 66aecf83ca Comments should be sentences, and sentences should be capitalized and
end with punctuation.
2002-08-27 21:09:14 +00:00
Karl Waclawek c4e09cdb41 Applied patch #600964: Element name storage optimization 2002-08-27 20:45:27 +00:00
Karl Waclawek 9067726f25 The previous fix should also be applied to XML_ParserReset. 2002-08-27 20:32:41 +00:00
Fred L. Drake, Jr. 5ca422d4dd Initialize the pools that are part of the parser structure before
letting them get cleared.  Reported by Tim Crook.
2002-08-27 20:24:19 +00:00
Fred L. Drake, Jr. 1330c4c02f Added regression test.
Closes SF bug #600479.
2002-08-27 17:06:19 +00:00
Fred L. Drake, Jr. 6643dbce7b Start a section for the next release. 2002-08-27 16:14:35 +00:00
Fred L. Drake, Jr. 21fe34d006 asParser(): Removed unused function only defined in debug mode in
MSVC.

Remove annoying blank line.
2002-08-27 16:09:40 +00:00
Fred L. Drake, Jr. 233230ce89 One consequence of using an incomplete struct to define XML_Parser is
that compilers can be more picky about type compatibility.  Tighten up
the function signatures to reduce spurious warnings.
2002-08-27 05:49:52 +00:00
Karl Waclawek 969d3363fe Fix for bug #600479: error decoding UTF-8 triplet 2002-08-27 00:28:48 +00:00
Fred L. Drake, Jr. 19dce96507 Fix a broken error message about the XML declaration.
Closes SF bug #596555.
2002-08-26 21:22:35 +00:00
Fred L. Drake, Jr. fd28011aa5 Documented XML_ParserReset().
Made function signatures use a trailing semi-colon consistently.
2002-08-26 20:37:49 +00:00
Fred L. Drake, Jr. d0ce0b3b0b Substantially reduce the amount of indentation used in the table of
contents.

Added documentation for XML_UseForeignDTD().
2002-08-26 19:55:22 +00:00
Fred L. Drake, Jr. d4f7009363 Change XML_Parser definition to use an incomplete structure in the public
API, allowing the implementation to define the structure and use less
casting in internal macros.

Change XML_UseForeignDTD() to return an enum XML_Error value, to allow
specific conditions to be reported more clearly.
2002-08-26 19:54:24 +00:00
Karl Waclawek 46feda26da Small documentation fix for default handler. 2002-08-26 17:57:38 +00:00
Fred L. Drake, Jr. 7f88e00a8e Fix XHTML well-formedness and validity. 2002-08-26 17:27:29 +00:00
Fred L. Drake, Jr. ce60dcf034 showVersion(): Use the new XML_GetFeatureList() function to list the
compile-time features as part of the "xmlwf -v"
                output.
2002-08-26 17:20:48 +00:00
Fred L. Drake, Jr. bb761420b6 XML_GetFeatureList(): New API function. 2002-08-26 17:19:41 +00:00
Fred L. Drake, Jr. cf8591548a Update the link to the mailing lists. 2002-08-26 15:08:48 +00:00
Karl Waclawek 4e5aedecfa Applied patch #599715: Enable undeclared DTD 2002-08-26 15:04:19 +00:00
Karl Waclawek 65c96007fe Removed DllMain function for Windows Dll.
Not needed, since we don't intialize antything, and it gets in
the way when building a static Expat library that is used by a Dll.
2002-08-26 01:33:56 +00:00
Fred L. Drake, Jr. a37a37af7f Add test for well-formedness constraint: No Recursion. 2002-08-24 19:53:59 +00:00
Fred L. Drake, Jr. 66e88141e0 Minor changes for consistency. 2002-08-23 22:21:09 +00:00
Fred L. Drake, Jr. ed0cbdbd05 Wrap some long lines; the AS/400 requires line length <= 80
characters.
2002-08-23 21:54:11 +00:00
Fred L. Drake, Jr. 5b85b08976 Update the "clean" target to match the current arrangement. 2002-08-23 21:53:29 +00:00
Fred L. Drake, Jr. 1ef2370e61 It doesn't look like this has been used in a long time; we might be
able to get rid of it.

- Arranged function & method signatures like they are elsewhere in the
  sources.
- Shortened some long lines.
- #include expat.h instead of xmlparse.h.
2002-08-23 21:47:52 +00:00
Fred L. Drake, Jr. 705efa1f25 Add a test that we do report an undefined entity if there is an
external subset and we load it.
2002-08-23 19:45:44 +00:00
Karl Waclawek d6a47ae1e6 Applied patch #598944: Static library builds for VC++ 2002-08-23 15:04:52 +00:00
Fred L. Drake, Jr. 93a409f6f6 Factor out some error reporting code used when the parser is expected
to report an error, and either doesn't report an error at all or
reports the wrong error.
2002-08-23 03:35:40 +00:00
Fred L. Drake, Jr. 80cac4a780 Renamed the last test added to be more clear about the condition being
tested.

Added a couple of additional tests checking for proper response to the
same well-formedness constraint.  No bugs to fix there, just trying to
improve the coverage of the test suite.
2002-08-23 03:14:01 +00:00
Fred L. Drake, Jr. 6143619cf2 Elaborate a comment slightly. 2002-08-22 21:58:11 +00:00
Fred L. Drake, Jr. 4b551b1b96 showVersion(): Only check for \ in the path on Windows, the same as
in tmain().
2002-08-22 21:55:25 +00:00
Fred L. Drake, Jr. 803bc07fa7 Add a test case for the improper reporting of a failure of the "Entity
Declared" WFC fixed in lib/xmlparse.c 1.65.
2002-08-22 21:41:05 +00:00
Fred L. Drake, Jr. 9f99125a39 Preliminary version number increment. 2002-08-22 21:32:39 +00:00
Karl Waclawek fa7b20a32a Fix for WFC: Entity Declared handling:
Expat would return an "undefined entity" error for the document:
<!DOCTYPE doc SYSTEM "foo">
<doc>&entity;</doc>
if the DTD was not read.
2002-08-22 21:24:10 +00:00
Fred L. Drake, Jr. 1297454350 Added some minor markup, plus many more internal hyperlinks. 2002-08-22 21:08:43 +00:00
Karl Waclawek f90c9ae324 Applied patch #598352: Patch for defaultHandler in DTD. 2002-08-22 14:52:44 +00:00
Fred L. Drake, Jr. 5db0d6708d Reduce the maximum line with to 80 (including the newline character).
This should make the AS/400 port easier to maintain.
2002-08-22 13:58:48 +00:00
Fred L. Drake, Jr. 63cb50611f Suppress a warning from GCC that moveToFreeBindingList() had no
prototype, by making it static.
2002-08-22 03:54:17 +00:00
Karl Waclawek c2f6f06d91 Added more detail about the unknownEncodingHandler. 2002-08-22 00:06:51 +00:00
Karl Waclawek de7c8418bb Applied patch for bug #596931: XML_ParseReset and memory leaks. 2002-08-21 20:00:09 +00:00
Karl Waclawek f5f615c931 Fixed typo. 2002-08-11 01:36:05 +00:00
Fred L. Drake, Jr. 88701bc30f Fix well-formedness, broken in the previous checkin. 2002-08-08 22:21:06 +00:00
Fred L. Drake, Jr. 1908fd3dbd Added documentation on how Expat deals with XML versions other than
1.0, and shows how an application can affect it.
Closes SF bug #584041.
2002-08-08 22:17:28 +00:00
Fred L. Drake, Jr. 86803b4c89 Specify XHTML 1.0 Strict, conform, and add the "Valid XHTML 1.0" icon.
Rip out a lot of the extra layers of <div/> and <a/> elements.
2002-08-08 21:51:31 +00:00
Fred L. Drake, Jr. 60b31ae5e7 Add the "Valid XHTML 1.0" icon. 2002-08-08 21:51:01 +00:00
Fred L. Drake, Jr. aef65d4ec3 Lots of really minor changes:
- Wrap paragraphs more consistently.
- Make this well-formed XML.
- When making a hyperlink to a function description, consistently
  place the anchor inside the code, not the other way around.
- Make more references to function names hyperlinks to the
  descriptions.
- Fix a few small typos.
- Don't always use an extra div to carry a class attribute, just stick
  it on the pre.
2002-08-08 20:41:43 +00:00
Fred L. Drake, Jr. 3d198c888e Style cleanup. 2002-08-08 20:37:11 +00:00
Fred L. Drake, Jr. 81f729ae08 Document XML_DefaultCurrent().
Update the documentation on XML_SetDefaultHandler() and
XML_SetDefaultHandlerExpand().

Closes SF bug #585537.
2002-08-08 19:29:08 +00:00
Fred L. Drake, Jr. 63f624a708 Update the API documentation with the use of XML_Status for the
XML_Parse() and XML_ParseBuffer() functions.
2002-08-08 18:54:15 +00:00
Fred L. Drake, Jr. d836d20cbb Define specific return values for the XML_Parse*() functions, and use them
to test all XML_Parse*() return values in the test and sample code.
This is binary-compatible with previous Expat 1.95.x releases.

dtdInit():  Make this a void function, since there is only one possible
    return value.

parserInit(), poolGrow(), setContext():  Make these return XML_Bool values,
    to match their intended semantics.

XML_ParseBuffer():  Use NULL instead of 0 for a pointer value.
2002-08-02 19:44:09 +00:00
Fred L. Drake, Jr. e573251a94 Define specific return values for the XML_Parse*() functions, and use them
to test all XML_Parse*() return values in the test and sample code.
This is binary-compatible with previous Expat 1.95.x releases.
2002-08-02 19:40:09 +00:00
Fred L. Drake, Jr. f9777c9428 doProlog(): Use NULL instead of 0 to clear pointer variables.
getContext():  The needSep local is Boolean, so declare & set it that
way.
2002-08-01 05:42:57 +00:00
Fred L. Drake, Jr. 4f4ed4952d Caught some more Boolean fields in the internals. 2002-07-31 22:41:48 +00:00
Fred L. Drake, Jr. 502c611b6e Use the new Boolean definitions internally. 2002-07-31 22:11:50 +00:00
Fred L. Drake, Jr. 56ba3dc676 Add definitions to support Boolean values in the Expat API. 2002-07-31 22:10:42 +00:00
Karl Waclawek f54c938123 Applied patch for bug #434664: utf8_toutf16 infinite loop. 2002-07-29 01:05:11 +00:00
Karl Waclawek f944d41397 Added documentation to prevent the misunderstanding that led
to bug #580503: user called parsing functions recursively.
2002-07-27 23:13:16 +00:00
Karl Waclawek 34fbc4a88f Fixes to make it work with make & the free BCC32 command line compiler:
- enabled long command arguments with the "-l" option in makefile.mak
- removed an erroneous linker option from elements.mak
2002-07-27 17:50:45 +00:00
Karl Waclawek 3f78776e80 Applied patch # 581069 2002-07-27 16:21:39 +00:00
Karl Waclawek 6285ef5296 Applied patch # 581069 2002-07-27 16:13:51 +00:00
Fred L. Drake, Jr. 092a369ad2 When creating a tarball from the HEAD instead of a release tag, use
the date to generate the filename instead of the Expat version
number.  This makes sense since the resulting tarball does not
represent a versioned release.
2002-07-25 15:21:06 +00:00
Fred L. Drake, Jr. 93deea5e26 Shorten all lines longer than 80 characters to be shorter than 80.
Required for OS/400 support.
2002-07-25 14:51:19 +00:00
Fred L. Drake, Jr. 71ca0cbb08 Add a whine about the C preprocessor abuse used in this file.
Wrap most of the longer lines so fit in less than 80 columns (required
for OS/400 support).
2002-07-25 14:47:45 +00:00
Fred L. Drake, Jr. 3167cb2a06 Remove cruftiness. 2002-07-24 01:20:18 +00:00
Fred L. Drake, Jr. 83271c5dbf make_basic_suite(): Simplify the organization of the test cases into
just two groups: "basic" (no namespaces) and "namespace".

Rename one test function so it's name makes more sense, and is
shorter.
2002-07-22 17:49:17 +00:00
Fred L. Drake, Jr. 632b20c24f Added regression test for SF bug #584832, adapted from contributed
test.
2002-07-22 17:15:48 +00:00
Karl Waclawek 8d051e9409 Fix for bug #584832: incorrect handling of internal entities.
The wrong string pool was cleared.
2002-07-22 13:32:37 +00:00
Karl Waclawek d8d3b5fe2e Applied patch for bug #584183: crash in builds without DTD support 2002-07-20 13:31:06 +00:00
Fred L. Drake, Jr. f44e4a0b87 Fixup whitespace. 2002-07-15 19:57:34 +00:00
Fred L. Drake, Jr. c89080e4c9 Add news for the 1.95.4 release. 2002-07-12 18:39:32 +00:00
Fred L. Drake, Jr. c3d1828990 Change the "next release" to 1.95.5. 2002-07-12 18:38:06 +00:00
Fred L. Drake, Jr. 8c9556f8b6 Present signature lines for function declarations much more
consistently.
2002-07-12 16:24:33 +00:00
Fred L. Drake, Jr. 22f9b46259 More nullification: use "return NULL" instead of "return 0" for
functions that return pointer types.

Wrap some long lines.

Captalize the first sentences of some comments, etc.
2002-07-12 16:07:28 +00:00
Fred L. Drake, Jr. 8e4bcc645c We're building Expat, not subversion. Appearantly a cut-n-pasto. 2002-07-12 15:49:33 +00:00
Fred L. Drake, Jr. 04507aa326 xmlwf/readfilemap.c is not used on Windows. 2002-07-12 15:07:30 +00:00
Fred L. Drake, Jr. 95b26fb994 Capitalize "Expat" consistently. 2002-07-12 05:21:23 +00:00
Fred L. Drake, Jr. 50b7b52735 Change the Borland support files so that the DLLs are named libexpat.dll and
libexpatw.dll, as they are for MSVC.
Since I do not have a Borland build environment, I hope I have not botched
this change!
2002-07-12 05:17:26 +00:00
Fred L. Drake, Jr. 252e868b7e Add a note about the Borland compiler support files.
Move the second column of the table right a couple of spaces to
there's space for the long directory name on the left.
2002-07-12 05:06:17 +00:00
Fred L. Drake, Jr. 21f26c8ab6 Add a note about the addition of Borland support files.
Include a couple of additional bug reports that have been dealt with.
2002-07-12 02:52:42 +00:00
Fred L. Drake, Jr. ebf74d70e6 Add the Borland support files to the installer. 2002-07-12 02:51:56 +00:00
Fred L. Drake, Jr. 15c3eac10c Support files for Borland C++ Builder 5 / BCC 5.5.
Contributed by Patrick McConnell.
Closes SF patch #538032.
2002-07-12 02:46:22 +00:00
Fred L. Drake, Jr. db6d64a473 Update lists of ignored files to match changes from Makefile.in 1.37. 2002-07-11 18:55:43 +00:00
Fred L. Drake, Jr. 06f03f92da Fix installation when building from outside the source directory.
Closes SF patch #566901.
2002-07-11 18:54:42 +00:00
Karl Waclawek 51be5c3e5d Added documentation for new skipped entity handler. 2002-07-11 03:35:42 +00:00
Fred L. Drake, Jr. 437481121a Add a couple more fixed bugs to the list. 2002-07-09 21:28:44 +00:00
Karl Waclawek 775b55c2dc Added to list of changes for 1.95.4. 2002-07-09 21:19:24 +00:00
Fred L. Drake, Jr. 098497fb5f Add a test for SF bug #478332.
If I understand the report correctly, I can't reproduce the bug using
the CVS version of Expat.
2002-07-09 21:17:45 +00:00
Karl Waclawek cc6d031e9e Applied modified version of patch #578161. 2002-07-09 20:58:17 +00:00
Fred L. Drake, Jr. c5ba987deb Marked the de-tabification task complete. 2002-07-09 20:55:07 +00:00
Fred L. Drake, Jr. e43a5bc447 De-tabify. 2002-07-09 20:50:04 +00:00
Fred L. Drake, Jr. ed31b195ae Bump version number & de-tabify. 2002-07-09 20:49:47 +00:00
Fred L. Drake, Jr. 37d4e4a382 A variety of code-style changes:
- Use only plain spaces, no hard tabs.
- Strip trailing whitespace from all lines.
- Strip blank line from the end of the file.
- Do no use a space following the ! operator.
- Wrap a couple of long lines.
2002-07-09 20:25:10 +00:00
Fred L. Drake, Jr. a1864edc2e Add a list of bugs fixed for 1.95.4 so far.
Set a target release date.
2002-07-09 18:37:32 +00:00
Karl Waclawek cb8a4c756d Fix for bug #579196. 2002-07-09 18:29:23 +00:00
Fred L. Drake, Jr. 8c14959eac Fix typo from manual application of the Mac OS classic patch. 2002-07-09 13:57:18 +00:00
Fred L. Drake, Jr. 72f20a6169 Added note about Mac OS classic support. 2002-07-08 17:10:38 +00:00
Fred L. Drake, Jr. 704c849461 Mac OS (classic) support, based on patches from Thomas Wegner and
Daryle Walker.

Also moved some #include statements around and removed a VMS-specific #include
that duplicates an existing #include.
2002-07-08 17:08:45 +00:00
Fred L. Drake, Jr. 501a5b3525 Mac OS (classic) support, based on patches from Thomas Wegner and
Daryle Walker.
2002-07-08 17:06:55 +00:00
Fred L. Drake, Jr. 16bede7d27 Add link to the next set of release requirements as well. 2002-07-08 16:03:16 +00:00
Fred L. Drake, Jr. fcf37d1b51 Release requirements for 1.95.5. 2002-07-08 16:02:22 +00:00
Fred L. Drake, Jr. 04d63e117a Remove the need to use <p> to add space between list items. 2002-07-08 15:34:04 +00:00
Fred L. Drake, Jr. 69256a68d3 Add some useful links to CVS documentation. 2002-07-08 15:33:20 +00:00
Fred L. Drake, Jr. 44e81e9a07 Clean up some markup. 2002-07-08 15:32:51 +00:00
Karl Waclawek 85f8130aaf Added COMPILED_FROM_DSP flag to make it compile under VC++. 2002-07-04 14:06:15 +00:00
Fred L. Drake, Jr. 63ca4b129f Minor consistency nit. 2002-07-01 20:44:54 +00:00
Karl Waclawek 16a73a2273 Modified fix for bug # 575168 to correct behaviour when endElementHandler
was set after startElementHandler was called.
2002-07-01 16:54:52 +00:00
Fred L. Drake, Jr. 7fea03e40e De-tabify; minor code-style consistency changes. 2002-07-01 16:46:08 +00:00
Fred L. Drake, Jr. d74ad1f819 De-tabify; minor code-style consistency changes.
Removed function that was commented out using "#if 0"; not referenced.
2002-07-01 16:45:37 +00:00
Fred L. Drake, Jr. fb09975079 De-tabify files that missed the de-tabify step. 2002-07-01 15:18:34 +00:00
Fred L. Drake, Jr. 65ab1317a4 De-tabify; minor code-style consistency changes. 2002-07-01 15:13:02 +00:00
Fred L. Drake, Jr. 35482bdf4c De-tabify; minor code-style consistency changes. 2002-07-01 14:51:16 +00:00
Fred L. Drake, Jr. 2c06092697 De-tabify; minor code-style consistency changes. 2002-07-01 14:45:51 +00:00
Fred L. Drake, Jr. 2594a4e358 Delay the Unix build-process changes since we really need to get a
bugfix release out.
2002-06-29 15:26:38 +00:00
Fred L. Drake, Jr. 33e691a73f Update for the 1.95.4 release. 2002-06-29 15:24:30 +00:00
Fred L. Drake, Jr. 4582daec8f Fix SF bug #575168: "Missing events for end-element". 2002-06-28 23:04:49 +00:00
Fred L. Drake, Jr. 7f509f86ef Add regression tests for SF bug #566334:
"Default namespace => wrong element names"
2002-06-28 14:20:07 +00:00
Fred L. Drake, Jr. dee184faec Delayed the InternalEntityRefHandler feature. 2002-06-28 13:40:20 +00:00
Fred L. Drake, Jr. c74d7bca16 Add a regression test that might tickle SF bug #422239. See comments
for more information.
2002-06-28 13:35:44 +00:00
Fred L. Drake, Jr. d6deca76f7 Change CVS link to the local version of the instructions for using the
Expat CVS repository.
2002-06-28 04:03:36 +00:00
Fred L. Drake, Jr. b669c22a92 Add a link to the ViewCVS repository browser. 2002-06-28 04:02:45 +00:00
Fred L. Drake, Jr. 84d5e47da2 Mark one more of the release requirements as done. 2002-06-26 13:04:04 +00:00
Fred L. Drake, Jr. 65f345c7a8 Add a link to the Expat4D product (Expat plug-in for 4th Dimension). 2002-06-26 12:54:32 +00:00
Fred L. Drake, Jr. 11b0eea411 Add the "replace-tabs-with-spaces" release requirement, as discussed
on the lists.
2002-06-19 02:26:04 +00:00
Fred L. Drake, Jr. 7d78123b69 Version number needs to be bumped here as well. 2002-06-14 14:28:12 +00:00
Fred L. Drake, Jr. cfe63634e2 Stupid punctuation nit: use a period at the end of a sentence! ;-) 2002-06-14 14:13:30 +00:00
Fred L. Drake, Jr. 7cde2afa07 Mark the SkippedEntityHandler item "done". 2002-06-14 14:11:56 +00:00
Fred L. Drake, Jr. 48eb436842 Simplify the content table style, with no visual difference.
(Possibly better supported by browsers.)
2002-06-13 20:44:20 +00:00
Fred L. Drake, Jr. 2c9da60e48 Add some information about tracker usage, including both recommendations and
just useful information that is not always well known, but should be.
2002-06-13 20:41:24 +00:00
Fred L. Drake, Jr. 87693df9a0 Added some style for tables in the content area. 2002-06-13 20:40:09 +00:00
Fred L. Drake, Jr. 4e45d6db5a Add a section on CVS access, since we can't change the CVS info on
SourceForge to use the shorter hostnames.
This adds information on the specific modules checked into CVS.
2002-06-13 18:34:14 +00:00
Fred L. Drake, Jr. 17fc960ec4 Consistently use the shorter libexpat.org URL. 2002-06-13 18:12:20 +00:00
Karl Waclawek a118a740f2 Applied patch # 567035 (endElementHandler fix) and
patch # 567400 (cdataSectionProcessor fix)
2002-06-13 12:52:39 +00:00
Fred L. Drake, Jr. 8fbcd0a5c7 Include unistd.h when HAVE_UNISTD_H is defined, not _POSIX_SOURCE.
This requires that expat_config.h or winconfig.h has been included.
Using unistd.h avoids warnings about close() and read() not being defined
on some platforms.
This closes SF bug #563184.
2002-06-13 02:52:09 +00:00
Fred L. Drake, Jr. e5577d615f Update the DLL version numbering since the API has expanded in a
backward-compatible way.
2002-06-12 19:46:53 +00:00
Fred L. Drake, Jr. 449599e363 There've been patches since 1.95.3, so bump the version number. 2002-06-12 19:43:51 +00:00
Fred L. Drake, Jr. fc8e89e58f Added a link to the EasySoap project. 2002-06-11 19:34:39 +00:00
Karl Waclawek c8d098f364 Fix for bug # 566240. 2002-06-09 14:01:47 +00:00
Karl Waclawek c245489390 Applied patch # 565510 - "reading uninitialized variable". 2002-06-09 13:55:37 +00:00
Karl Waclawek b825301fc1 Applied patch # 559910 - New SkippedEntityHandler 2002-06-09 00:01:43 +00:00
Fred L. Drake, Jr. 295725c655 Started section for 1.95.4, noting the contributed VMS support. 2002-06-05 04:16:29 +00:00
Fred L. Drake, Jr. c457dfb346 VMS support, contributed by Craig Berry. 2002-06-05 04:13:10 +00:00
Fred L. Drake, Jr. 5e17fb9437 Include subdirectories on the webserver. 2002-06-05 04:02:19 +00:00
Fred L. Drake, Jr. 2640c1cb7f Fix the page title. 2002-06-05 04:01:38 +00:00
Fred L. Drake, Jr. 0ab12d2306 Oops, this was not ready for checkin. 2002-06-05 04:01:10 +00:00
Fred L. Drake, Jr. 3ab9455870 Fix style buglet. 2002-06-05 03:56:04 +00:00
Fred L. Drake, Jr. fc9e8beb2b Add a link to the new development area of the website. 2002-06-05 03:52:21 +00:00
Fred L. Drake, Jr. f7f2408071 Start off the new development information area with release requirements
for Expat 1.95.4.
2002-06-05 03:49:50 +00:00
Fred L. Drake, Jr. d5648187f0 Update link to the project home page. 2002-06-04 16:35:21 +00:00
Fred L. Drake, Jr. 89151b7496 Fix editorial type noticed by Greg Stein (& introduced by me, of
course!).
2002-06-04 14:23:28 +00:00
Fred L. Drake, Jr. cb9a560dc8 Elaborated on the news description a little. 2002-06-04 05:12:42 +00:00
Fred L. Drake, Jr. 0424f55fed Add news item about the 1.95.3 release. 2002-06-04 04:52:09 +00:00
Fred L. Drake, Jr. b0719a7560 Fix link to the GOBO-Eiffel project, added a missing word in the
description.
2002-06-03 19:56:29 +00:00
Fred L. Drake, Jr. 2ef1e84e1f Be more specific with a couple of the files that we install.
I'm still not sure where the manpage gets compressed, but it certainly
does; leaving off the .gz causes the RPM build to not find the file.
2002-06-03 19:38:13 +00:00
Fred L. Drake, Jr. 35c224f1ad Add Karl's instructions for building the UTF-16 version on Unix. 2002-06-03 18:46:36 +00:00
Fred L. Drake, Jr. 0c406cce19 Split the install and uninstall targets into library and non-library
components, creating the new targets installlib and uninstalllib.
2002-06-03 18:16:07 +00:00
Greg Stein ab3bcbaa6c Add real checks for autoconf 2.52 and libtool 1.4 so that we can
produce "nice" errors if they are not present.
2002-06-01 22:55:22 +00:00
Greg Stein 733fc33825 conftools/libtool.m4 is generated by buildconf.sh, so make sure that
it gets tossed during 'extraclean'
2002-06-01 22:35:28 +00:00
Greg Stein 72ced69405 Work on fixing bug #462960
* add Apache's version of config.guess and config.sub, which are both
  recent, and have some helpful mods

* buildconf.sh: tweak call to libtoolize to avoid overwriting the above

* conftools/.cvsignore: the new files are supposed to be there

* Makefile.in: tweak to use $(prefix) for the manual page so that it
  picks up install-time prefix changes. tossed an old comment. tweak
  the 'extraclean' rule to avoid tossing the added config.* files.
2002-06-01 22:29:30 +00:00
Fred L. Drake, Jr. 6f7d95c4af Specify the compression type; the current version of Inno Setup
supports the more efficient bzip algorithm, so we can produce a
smaller installer to download.  Or at least partially mitigate
the addition of the wchar_t version of the DLLs.

Install the Changes file as Changes.txt.

Add a note telling what version of Inno Setup the script is for.
2002-06-01 02:12:30 +00:00
Fred L. Drake, Jr. 7b7923521c Bump the version number of the shared library according to the libtool
recommendations.
2002-05-31 21:31:12 +00:00
Fred L. Drake, Jr. 0b267aff2a Added a couple more interesting items that had been lurking in the
forgotten NEWS file.
Set an expected date for the 1.95.3 release.
2002-05-31 20:42:18 +00:00
Fred L. Drake, Jr. 76e37fc385 Remove NEWS since this information is already being provided in Changes. 2002-05-31 20:33:05 +00:00
Fred L. Drake, Jr. 189c91cfea Added a note about the Eiffel bindings. 2002-05-31 16:33:53 +00:00
Fred L. Drake, Jr. cad79377e7 Factor out the definition of the directory the manual page is
installed into; hopefully this will fix the RPM construction.
2002-05-31 15:51:21 +00:00
Fred L. Drake, Jr. 6bbbeffb0d Add test suite to the distribution. 2002-05-31 15:15:18 +00:00
Fred L. Drake, Jr. 75dac7502c Add the recent additions to the doc/ directory. doc/xmlwf.1 is needed
for the install step on Unix.
2002-05-31 15:03:34 +00:00
Fred L. Drake, Jr. 1ba67f251f Updated MANIFEST to reflect changes in the conftools directory. 2002-05-31 14:49:22 +00:00
Fred L. Drake, Jr. 8eb92dde2b Added the test suite and wchar_t versions of the DLL. 2002-05-31 04:35:57 +00:00
Fred L. Drake, Jr. 1debeebe2e Link to SF's own mail archiver rather than GeoCrawler. 2002-05-31 04:00:59 +00:00
Fred L. Drake, Jr. ccac97847c Add section for Expat 1.95.3. Added blank lines for readability. 2002-05-31 03:45:50 +00:00
Fred L. Drake, Jr. a3dda2bb32 Added new project to the MSVC workspace: expatw. This builds
libexpatw.dll (in release and debug versions) using wchar_t
output.

This *probably* closes SF bug #432456.  See comments in the
issue tracker for more info.
2002-05-31 03:12:47 +00:00
Fred L. Drake, Jr. 5dec038664 Renamed the Expat DLLs from "expat.dll" to "libexpat.dll". This solves
a real naming conflict with Perl's XML::Parser::Expat module and the
relatively recent 1.95.x naming of the combined Expat DLL.

This does not introduce new names for the "wide" version of the Expat
API; this will be a separate change.

See SF bug #432456.
2002-05-31 02:30:31 +00:00
Fred L. Drake, Jr. a44cf20237 Simple makefile that remembers how to update the anonymous checkout of
the HTML docs that gets shoved out through HTTP.
2002-05-30 19:03:07 +00:00
Karl Waclawek b1743f5705 Applied patch # 562005 "Detect invalid UTF-8 sequences" 2002-05-30 18:02:59 +00:00
Fred L. Drake, Jr. 993db8ea97 Give in and define a constant for the intial number of elements in the
content type scaffold.
This removes the annoying magic number in the code.
2002-05-23 18:50:51 +00:00
Fred L. Drake, Jr. de9db5ddeb In the "DTD scaffold", keep the count of elements allocated in sync with the
number of elements.
2002-05-23 18:37:03 +00:00
Fred L. Drake, Jr. 6f4869b2a4 Share the comment style with the rest of Expat. 2002-05-22 20:22:25 +00:00
Fred L. Drake, Jr. 219908bec6 Add a small comment to tell what this is. 2002-05-22 20:20:05 +00:00
Fred L. Drake, Jr. 37cbb951f8 Code hygiene: Use "NULL" instead of "0" for NULL pointers.
Compare pointers == NULL or != NULL instead of using the implicit
point-to-int conversion.
2002-05-22 04:27:06 +00:00
Fred L. Drake, Jr. 0bd69962db Bring indentation consistency to the header comments. 2002-05-22 04:04:39 +00:00
Fred L. Drake, Jr. 6197055826 Fix the regression test for SF bug #477667. This now fails, but accurately
tests the reported bug.
It should also serve as increased motivation for me to get it fixed
before the next release.
2002-05-22 03:27:17 +00:00
Fred L. Drake, Jr. f122dd821c Remove the use of C99's stdbool.h and the bool type; not all compilers
support this (gcc 2.8.1 on IRIX 6.5 bit this time).
2002-05-21 21:39:18 +00:00
Fred L. Drake, Jr. 12445b1efd Another link to C++ wrappers, this time with a SAX interface and multiple
parser backends.
2002-05-21 14:45:18 +00:00
Greg Stein 5b5355d8c5 Hard to believe, but there are some preprocessors/compilers out there
which don't like spaces between the '#' and the preprocessor command.

* expat.h, xmlparse.c, xmlrole.c, xmltok.c:
  - remove all spaces between the '#' and the cpp command.
2002-05-20 11:06:41 +00:00
Greg Stein 2186041a07 Karl noticed that Expat didn't build on Windows any more. winconfig.h
needs to state that memmove() exists.
2002-05-20 11:01:29 +00:00
Karl Waclawek 8a891572a0 Merged in patch # 551599 2002-05-18 03:34:44 +00:00
Greg Stein 04d54677dc Add some cygwin fixes.
* Makefile.in:
  - from cygwin: add -no-undefined to the library link line

* conftools/get-version.sh: (new file)
  - script to extract the version number from expat.h

* configure.in:
  (some from the cygwin patch)
  - update the prereq to 2.52 instead of just 2.50
  - update the AC_INIT line to 2.52 standards: include the package
    name, version (with a lot of gunk to get this), and where to send
    bugs)
  - update the output file generation to 2.52 standards

* make-release.sh:
  - update to use the new get-version.sh script

* lib/expat.h:
  - from cygwin: add a little define for CYGWIN
2002-05-18 00:26:59 +00:00
Greg Stein de857347b6 Remove acconfig.h altogether by removing XML_BYTE_ORDER. We can simply
use the BYTEORDER constant that ac_c_bigendian_cross.m4 generates.

* accconfig.h: removed; obsolete.

* lib/winconfig.h:
  - set the BYTEORDER constant, rather than XML_BYTE_ORDER, and leave
    a note about what we're assuming.

* lib/xmltok.c, lib/xmltok_ns.c:
  - change all XML_BYTE_ORDER references to BYTEORDER, and
    update the constants from 12, 21 to 1234, 4321 respectively.
2002-05-17 21:42:05 +00:00
Greg Stein 950c9a1124 A couple more tweaks for config.h -> expat_config.h 2002-05-17 21:38:44 +00:00
Greg Stein 0d64c9f4e9 There is no lib/config.h file... 2002-05-17 21:38:12 +00:00
Greg Stein 366e9ccd3e ignore the expat_config.h* files rather than config.h* 2002-05-17 21:35:12 +00:00
Greg Stein 9fcff4a9eb Various configuration fixes, focused primarily around expat_config.h
(which used to be called config.h)

* configure.in:
  - change the header name to expat_config.h to prevent any possible
    conflict with some other packages 'config.h'
  - add a prerequisite on autoconf 2.50 or newer
  - shift some acconfig.h values to AC_DEFINE() values

* MANIFEST:
  - rename config.h.in to expat_config.h.in

* Makefile.in:
  - clean out expat_config.h* instead of config.h*

* acconfig.h:
  - remove the XML_NS, XML_DTD, and XML_CONTEXT_BYTES symbols; they
    are now defined directly by configure.in
  - shift the memmove() compatibility to xmlparse.c, its only consumer
  - remove the @BOTTOM@ part since there are no more values to put at
    the bottom of expat_config.h.in via acconfig.h

* xmlparse.c:
  - switch from config.h to expat_config.h
  - insert macro to define memmove() if it isn't available, but
    bcopy() is available. also, changed one branch to #error rather
    than insert bogus code.

* xmlrole.c:
  - tweak the copyright header, per Fred-ism
  - remove the unused RCSId[] variable (no other file has these)
  - switch from config.h to expat_config.h

* xmltok.c:
  - switch from config.h to expat_config.h
2002-05-17 21:30:07 +00:00
Greg Stein d3947b2fef follow Fred's footsteps and reformat the copyright header. 2002-05-17 21:23:35 +00:00
Greg Stein dd5f540cbf These files are unmaintained, so I'm removing them. If somebody wants
to restart a C++ Expat, they should use the current sources. Of
course, these will always be available in the CVS repository for
historical purposes and for recovery.
2002-05-17 21:16:42 +00:00
Fred L. Drake, Jr. aeb96f4e38 Code hygiene edits. 2002-05-17 19:12:54 +00:00
Fred L. Drake, Jr. 935f3457ef Remove unused files. 2002-05-17 18:55:08 +00:00
Fred L. Drake, Jr. 65b4ed8f47 Using "0" instead of "NULL" is insane, and leads to unmaintainable code.
Fix a number of other "code-hygiene" consistency nits.
2002-05-17 18:47:53 +00:00
Fred L. Drake, Jr. 7040180274 Minor nit; layout function signatures in a more consistent way. 2002-05-17 18:17:33 +00:00
Fred L. Drake, Jr. fa2455c305 Include a more reasonable definition of the UTF8_INVALID3() macro.
It still is not used anywhere, though.  ;-(
2002-05-17 18:05:06 +00:00
Fred L. Drake, Jr. ad5481c9f5 Using "0" instead of "NULL" is insane, and leads to unmaintainable code. 2002-05-17 17:21:51 +00:00
Fred L. Drake, Jr. aec2b976cd Hopefully the last needed checks for MALLOC() failure in xmlparse.c, this
avoids memory faults when the initial allocations fail, returning NULL to
the caller instead.
This closes SF bug #496505.
2002-05-17 15:21:53 +00:00
Fred L. Drake, Jr. 7857293967 Be more careful about failed MALLOC() and REALLOC() calls. This avoids a
number of potential memory leaks.
2002-05-17 15:09:34 +00:00
Fred L. Drake, Jr. 0ddc85a661 Updated for the 1.95.3 release. 2002-05-17 14:15:38 +00:00
Fred L. Drake, Jr. 74b32a6fc3 Make the uninstall target use the right location for the header file. 2002-05-17 14:12:25 +00:00
Fred L. Drake, Jr. fa1711873b Added a link to an article with additional C++ wrappers for Expat,
by Tim Smith.
2002-05-17 13:42:36 +00:00
Fred L. Drake, Jr. 3edce7a7ca Fix a number of potential memory leaks around REALLOC(). More are lurking. 2002-05-17 03:41:34 +00:00
Fred L. Drake, Jr. 5b5c48d4a3 Add casts to suppress a couple of warnings from MSVC with warning level 4. 2002-05-15 15:57:22 +00:00
Karl Waclawek 0b4f62dbe2 Added link to Expat wrapper for Delphi 2002-05-10 16:32:59 +00:00
Greg Stein cd48fb33d6 Patch from Joe Orton <joe@manyfish.co.uk>:
Allow the environment to specify a different autoconf and autoheader.
This is useful when Expat is bundled into another program, which is
being configured using something other than the autoconf/autoheader in
the path.
2002-05-10 00:10:57 +00:00
Fred L. Drake, Jr. a0a093184c Added a reference to tDOM (Tcl DOM package using Expat). 2002-05-09 15:09:18 +00:00
Fred L. Drake, Jr. fce382d610 Oops, fix the title! 2002-05-09 12:26:45 +00:00
Fred L. Drake, Jr. 0cee361f66 Completely replace the style of the Expat web page, but keep the original
content.  (I need to write new content, but that is a separate task.)
2002-05-09 12:24:46 +00:00
Fred L. Drake, Jr. 2e00d6e6b3 Simple style sheet for the Expat web page. 2002-05-09 12:14:54 +00:00
Fred L. Drake, Jr. 8292fa6968 Lame "logo" for the Expat web page. 2002-05-09 12:14:33 +00:00
Fred L. Drake, Jr. bcf2a3ecf4 Added link to information about a C++ binding for Expat. 2002-05-08 11:26:01 +00:00
Fred L. Drake, Jr. 7ed4ac9d81 xml_failure(): Pass the relevant XML_Parser into the function so it is
useful when parsing external entities as well as the document entity.

All callers have been updated.
2002-05-04 21:47:46 +00:00
Fred L. Drake, Jr. d05c7a58f7 Added target to run checks based on xmlwf and James Clark's test cases.
This is not run by "make check" since it requires unzip, wget, and network
access to set up the tests.  Use "make run-xmltext" to run the tests.
2002-04-29 21:31:18 +00:00
Fred L. Drake, Jr. 0767c2ce17 Fix stupid last minute change. 2002-04-29 17:10:26 +00:00
Fred L. Drake, Jr. d29adbd972 Added a bunch of assertions that internal assumptions are not violated
(specifically, make sure args are not NULL).

If the expected value is not the right length, include the value found in
the error message, to make problems easier to diagnose.
2002-04-29 17:09:31 +00:00
Fred L. Drake, Jr. 6556c9be67 Wrap some long lines, including ones I just introduced.
There ought to be a good way to use a real editor with MSCV!
2002-04-26 05:14:20 +00:00
Fred L. Drake, Jr. 79aab4b10a Cut down on the warnings from MSVC6 on Warning Level 4. 2002-04-26 04:46:24 +00:00
Fred L. Drake, Jr. 198ab270fe Revise the data accumulation to be at least a little separated from the
actual test code.  Not pretty & lacking in internal documentation, but
allows the test code to be a bit more readable.
2002-04-25 04:04:42 +00:00
Fred L. Drake, Jr. d701da0bd5 Make the organization slightly easier to discern. 2002-04-25 01:42:34 +00:00
Fred L. Drake, Jr. f759700086 Added "NEWS" file for 1.95.3. Still needs to be filled in a bit. 2002-04-24 13:11:00 +00:00
Fred L. Drake, Jr. 6af14eca02 Bump version number. 2002-04-24 13:10:09 +00:00
Fred L. Drake, Jr. a1451f8ae7 Take advantage of XML_ParserReset(): Instead of creating new parsers in
run_*_check(), reset the parser between uses in the one place its actually
needed.
2002-04-24 03:48:03 +00:00
Fred L. Drake, Jr. 644d3aca65 XML_ParserReset(): New function. Reset a parser to be used again, without
having to incur memory allocation costs for subsequent parses.
This closes SF patch #450608, contributed by David Crowley.
2002-04-24 03:36:23 +00:00
Fred L. Drake, Jr. 36f5bfd4b9 Squash compiler warning (GCC): simply referencing a variable in the
initialization clause of a for statement does not have any effect.
2002-04-23 21:36:16 +00:00
Karl Waclawek 968b13268b Attribute type constants did not have null terminators. 2002-04-23 19:48:29 +00:00
Karl Waclawek 42ab6c34f1 Fixed rev. 1.26 patch for XML_SetReturnNSTriplet.
Added fixes to make UTF-16 output work when XML_UNICODE is defined.
2002-04-23 13:49:31 +00:00
Karl Waclawek 59d1c05288 XML_UNICODE fixes 2002-04-23 13:48:50 +00:00
Fred L. Drake, Jr. d2baa2aec2 Add a new test that demonstrates SF bug #481609 is invalid. 2002-04-22 18:50:18 +00:00
Fred L. Drake, Jr. c5e5a2cab9 Test support enhancements:
_xml_failure():  Clean up the output message so the first line doesn't
    wrap in the typical case.

CharData typedef:  If count is less than 0, consider it "unset".  This
    is used in the new support to check attribute values.

accumulate_characters():  Handle storage->count < 0.  Allow XML_Char
    to be more than one byte.

accumulate_attribute():  New function: store the value of the first
    attribute encountered in parsing.  This needs the concept of a
    CharData that is unset to allow capturing a value that is an empty
    string.

check_characters():  Handle storage->count < 0.  Allow XML_Char to be
    more than one byte.

run_character_check():  Create a local parser so that both
    run_character_check() and run_attribute_check() can be used in a
    single test function.

run_attribute_check():  New function: check that the value of the
    first attribute in a document matches the expected value.
2002-04-22 18:46:00 +00:00
Fred L. Drake, Jr. 91e3f5c543 Add support for the xmlwf manpage, both for install and uninstall. 2002-04-22 17:04:36 +00:00
Fred L. Drake, Jr. fe6c8d05d1 Formatted version of the Unix manpage, ready for installation. 2002-04-22 17:03:39 +00:00
Greg Stein 5fa57b76e6 xmlwf should depend on the library, too. 2002-04-22 10:22:48 +00:00
Fred L. Drake, Jr. 109bee0339 Added another line to the copyright notice. 2002-04-20 21:32:22 +00:00
Fred L. Drake, Jr. 94cf789277 Bump version number. 2002-04-20 21:17:15 +00:00
Fred L. Drake, Jr. 280934fb22 Bump the release number.
Remove text about -fexceptions for use with C++; that is added automatically
now.
2002-04-20 21:15:46 +00:00
Fred L. Drake, Jr. 16b90ab627 Add missing word in comment. 2002-04-20 21:14:48 +00:00
Fred L. Drake, Jr. d084912ca5 Added missing library to link line for tests; not sure how this had not
been checked in!
2002-04-20 13:24:59 +00:00
Fred L. Drake, Jr. 307462a492 Added test for SF bug #480278. 2002-04-20 13:19:40 +00:00
Fred L. Drake, Jr. be3da03386 Simplify the command used to run the test program. 2002-04-20 13:11:16 +00:00
Fred L. Drake, Jr. e2db2bc4c4 Fix typo in comment. 2002-04-20 02:53:15 +00:00
Fred L. Drake, Jr. ad358dec9e Check in SF patch #488196: Make xmlwf read from standard input.
This modifies the patch for style (slightly).

The style of these files is also slightly modified in an attempt to create
more consistency.  (But that mostly swamps the feature patch.)
2002-04-19 21:41:54 +00:00
Fred L. Drake, Jr. 118257bc4c Added a test for SF bug #231864. 2002-04-19 20:59:01 +00:00
Fred L. Drake, Jr. 37371404cd Check in SF patch #476929: Fix XML_SetReturnNSTriplet().
This is slightly modified from the submitted patch to ensure a variable is
never used uninitialized.
Patch contributed by Karl Waclawek.
2002-04-19 20:52:39 +00:00
Fred L. Drake, Jr. 1258481fbc Add a test that checks that illegal UTF-8 sequences are not allowed to pass
when we are using UTF-8 encoding.
This closes SF bug #477667.
2002-04-19 19:18:35 +00:00
Fred L. Drake, Jr. 1d5e745673 Make the sample applications depend on the Expat library. 2002-04-19 18:57:24 +00:00
Fred L. Drake, Jr. 083326894e Add the new tests to the right TCase object. 2002-04-19 18:50:26 +00:00
Fred L. Drake, Jr. 38b6ee29b2 basic_setup(): Remove bogus assumption that all tests would use US-ASCII
data; let Expat determine the proper encoding from the XML source text.

Added several tests relating to supposed mis-interpretation of Latin-1;
these show that Expat (at least in the CVS version) is properly decoding
the Latin-1 text and generating the proper UTF-8 output.

This closes SF bug #491986, #514281.
2002-04-19 18:25:07 +00:00
Fred L. Drake, Jr. 276e2517e0 Wrap some long lines. 2002-04-19 16:19:33 +00:00
Fred L. Drake, Jr. a826299332 Remove files that are no longer used.
This closes SF patch #488187.
2002-04-16 03:24:48 +00:00
Fred L. Drake, Jr. b3a7f3c981 Fix name of the "bin" directory; was missing the default $prefix component. 2002-04-16 02:12:20 +00:00
Fred L. Drake, Jr. 3586d75088 Add link to the TclXML project (includes Tcl binding for Expat). 2002-02-25 16:40:42 +00:00
Fred L. Drake, Jr. fbd09c0cf0 Manual page for the xmlwf utility, contributed by Scott Bronson.
[Description of the -v option added to the original, contributed text.]
2002-02-21 21:27:55 +00:00
Fred L. Drake, Jr. 0fe7c4095f Added links to the Objective-C and Ruby bindings to Expat. 2002-01-21 19:49:40 +00:00
Fred L. Drake, Jr. ac32064e84 Add a list of references to other Expat resources.
It is short, but it includes a plea for additional links.
2002-01-11 15:42:12 +00:00
Greg Stein efda56d9fb Fix the URL to the online CVS browsing. 2001-12-10 00:52:55 +00:00
Greg Stein cd88ed2b08 Remove the Makefile.in files from the subdirs 2001-12-07 10:20:51 +00:00
Greg Stein a13d856e8f * Switch to a single, top-level Makefile (simplification, consistency)
* use libtool to compile/link all programs
* remove */Makefile.in and remove them from configure
* remove autom4te.cache after running autoconf
* remove .o from the FILEMAP logic in configure and the Make system;
  provides more flexibility in the Makefile to use it
* for VPATH builds: create the build subdirs by running
  "make mkdir-init" from the configure script
* adjust .cvsignore files to account for presence of .libs now
2001-12-07 10:19:31 +00:00
Fred L. Drake, Jr. 5ca5c566a6 Add a -v option to cause xmlwf to report the version of Expat (hence the
version of xmlwf).
2001-12-05 16:30:31 +00:00
Fred L. Drake, Jr. f762a852d9 Add a check for unknown command line options. 2001-11-18 13:56:01 +00:00
Fred L. Drake, Jr. 3a1a7b9e6d Use the SF logo that has no box around the edge; it looks a bit cleaner. 2001-11-18 05:27:12 +00:00
Fred L. Drake, Jr. 4bc54b7225 prologProcessor(): Avoid segfault by making sure "next" is initialized;
fix suggested by Tim Crook.
This fixes (I think!) SF bug #226514.

Removed extra "break".
2001-11-16 20:57:30 +00:00
Fred L. Drake, Jr. 01012061bc Added a test to make sure that whitespace in ENTITIES, IDREFS, and NMTOKENS
attributes is properly collapsed according to Section 3.3.3 of the spec.
This is the first even slightly complicated test; boy are these painful in
C!  Had to add a test of a helper routine as well; that just uses assertions
since the test framework should not be dealing with tests of the tester,
just of Expat.

Added a helper to make the failure messages more useful when Expat produces
an unexpected error code; we now include the error message and location from
Expat.  This is mostly useful when developing a new test.
2001-11-16 20:19:39 +00:00
Fred L. Drake, Jr. b1447b1ba3 Added tests that some basic encodings are recognized and the corresponding
BOM marks do not cause core dumps.  The UTF-8 BOM bug was fixed a while ago,
but a regression test is always a good idea.
2001-11-13 17:31:53 +00:00
Fred L. Drake, Jr. 1cd143fcf7 Note that the tests need check 0.8 to work. 2001-11-13 05:04:51 +00:00
Fred L. Drake, Jr. 3e89ab4c4b Update to work with check 0.8. 2001-11-13 05:04:02 +00:00
Fred L. Drake, Jr. 5769f4a431 Added a test that ensures the parser reports an out-of-place XML declaration.
(Originally written to attempt to tickle a different bug, but useful as a
regression test even though Expat has been doing the right thing.)
2001-11-13 04:49:52 +00:00
Fred L. Drake, Jr. a81be4f942 As long as SourceForge is changing their logo, we can look really slick too.
A little geometric twiddle can take us a long way toward fame & fortune! ;-)
2001-11-09 20:21:10 +00:00
Fred L. Drake, Jr. fb71e03022 Added note about conftools/expat.m4. 2001-11-09 04:57:33 +00:00
Fred L. Drake, Jr. 777f7a9413 autoconf probe macro to determine how to use Expat.
Anonymous contribution: SF patch #438892.
2001-11-09 04:55:33 +00:00
Fred L. Drake, Jr. 8b8f94fc2c Be more careful about deciding which filemap implementation to use for
xmlwf.  Part of SF patch #465018.

Only add the -fexceptions option when the version of GCC we're using
actually supports it.  This relates to & partially solves SF bug #445893;
see also SF bug #419585 for why the option was originally added.
2001-11-09 04:19:01 +00:00
Fred L. Drake, Jr. 212aa11153 Include header to avoid compiler warnings. Part of SF patch #465018. 2001-11-09 04:08:51 +00:00
Fred L. Drake, Jr. 693ce050a7 Be more reliable about using the libtool version on the PATH when this
script is run.  Part of SF patch #465018.
2001-11-09 04:07:43 +00:00
Fred L. Drake, Jr. 1c626a9def Define & use $(srcdir). Part of SF patch #465018. 2001-11-09 04:04:55 +00:00
Fred L. Drake, Jr. b9ca027b09 Revert previous change and use an alternate approach, this time actually
tested on one of the platforms that exhibited the problem this tries to
fix.  Solution contributed by Michael C. Maggio; thanks!
2001-10-02 16:40:17 +00:00
Fred L. Drake, Jr. 5c7be90ecd Wrap a *lot* of long lines to fit in an 80-column world, but still not all.
Change one of the error messages, closing SF bug #463032.
2001-10-01 20:52:54 +00:00
Fred L. Drake, Jr. 96a1672aea Abandon the use of directory names as target names; there are enough
platforms for which .PHONY is not implemented that this causes the build to
be tedious for those users, leading to bug reports.
2001-10-01 20:15:39 +00:00
Fred L. Drake, Jr. 28a00dfecb Added a "-c" option to the $CC command line to make this macro work as
expected on more platforms (IBM's xlC compiler in particular).
2001-10-01 20:03:13 +00:00
Greg Stein 3a09ad5535 Hush up, cvs... 2001-08-23 13:27:38 +00:00
Greg Stein 48d3438f5a Simplify the version handling some more by breaking the release process out
of the makefile into a separate script -- the script can do much more and
the makefile dependencies were not used anyways (just serving to obfuscate).
2001-08-23 13:26:37 +00:00
Greg Stein 28bc02a20a We are shipping expat.h now, not expat.h.in 2001-08-23 13:12:17 +00:00
Greg Stein a5e3cad879 Revamp how the version stuff is handled. Use the header file as the
original, and extract the numbers within the configure script.

* configure.in: extract the numbers from lib/expat.h

* Makefile.in: simplify the construction of DISTDIR

* lib/Makefile.in: no need to define the VERSION preprocessor symbol

* lib/expat.dsp: do not define VERSION (changed, but untested!)

* lib/xmlparse.c: revamp the XML_ExpatVersion() function

* lib/expat.h(.in): just ship the baby, rather than generating it
2001-08-23 12:35:53 +00:00
Greg Stein 33589a12bc * stop using aclocal.m4 and directly sinclude() the .m4 files into the
configure script. don't "clean" it and remove it from .cvsignore.
  Note: to avoid problems in developer dirs, we nuke the file in
  buildconf.sh for now; we'll stop doing that at some future time.
  [idea from ASF]

* look for glibtoolize, in addition to libtoolize (e.g. the MacOS X platform
  names it differently). [patch from ASF]

* conftools/missing is not needed

* use "exit 0" in buildconf.sh to help calling scripts. [patch from ASF]

* minor output cleanup in "make clean"
2001-08-23 11:27:26 +00:00
Greg Stein 866f6330cc Clean out some unused bits from the makefiles. Remove some of the recursion
and just do it from the top-level instead.
2001-08-23 09:24:45 +00:00
Fred L. Drake, Jr. b48c6919bb Update so the tests will be run by "make check". 2001-08-17 19:23:02 +00:00
Fred L. Drake, Jr. 559fbc6c4b Tell CVS to ignore the intermediate files generated by building the test
suite.
2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr. cc89b6f763 Build & run the test suite. 2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr. ed9b8e0d46 Explain what is required to build & run the test suite, and that it all
might change in the future.
2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr. fcf971bfe0 A very small test suite for Expat; additional tests will be added as time
permits.
2001-08-17 19:16:41 +00:00
Fred L. Drake, Jr. d165185951 Added a note to the XML_GetCurrentByteCount() function that it returns 0
for the end tag event when an empty-element tag is used.  Noted on
expat-discuss by Michael Isard.
2001-08-13 19:10:09 +00:00
Fred L. Drake, Jr. 9e70122a1d Make sure SHELL is properly set from the configure script.
This closes SF bug #448560.
2001-08-10 13:53:58 +00:00
Fred L. Drake, Jr. 57a3480f95 XML_Parse(): If XML_GetBuffer() returns NULL, do not attempt to move
data aronud, just propogate the error.

This closes SF bug #434665.
2001-08-09 18:08:56 +00:00
Fred L. Drake, Jr. 34966ccef9 Switch to testing that _MSC_EXTENSIONS is defined, not __declspec. (We can
probably remove the exception for __BEOS__ now, but I cannot test that.)
2001-07-30 19:01:47 +00:00
Fred L. Drake, Jr. 8c802e078d Fix a couple of stupid typos that I should have caught before release. 2001-07-28 03:29:55 +00:00
Fred L. Drake, Jr. f91dde5506 Update to match the latest version of the installer. 2001-07-27 20:35:39 +00:00
Fred L. Drake, Jr. 94c3265d8a Suggest that Windows users get the installer; it will do things that make
more sense than the Unix sources.
2001-07-27 20:34:52 +00:00
Fred L. Drake, Jr. a650c5f93f Remove some bogus preprocessor definitions. 2001-07-27 20:26:23 +00:00
Fred L. Drake, Jr. a81f09f829 Remove all traces of the XMLCALLBACK macro -- there appears to be no way
to add __cdecl to a typedef of a function type that MSVC does not complain
about.  Callback implementations may need to add explicit __cdecl
annotations in sources not compiled with the C calling convention as the
default.
2001-07-27 17:17:44 +00:00
Fred L. Drake, Jr. df1b71d17e Try again. 2001-07-27 17:03:01 +00:00
Fred L. Drake, Jr. 58be86d815 Make sure that XMLPARSEAPI specifies the calling convention when building
under MSVC -- this is needed when using the pre-compiled DLL with projects
built using a different calling convention.

XMLPARSEAPI now takes the return type as a parameter and inserts annotations
on both sides of the type to make sure the compiler is happy.  A new
macro, XMLCALLBACK, is used to perform similar annotation of the callback
function types, which do not need the dllimport/dllexport annotations but
do still need the __cdecl annotation.

This closes SF bug #413653.
2001-07-27 16:30:56 +00:00
Fred L. Drake, Jr. f14ab18aa7 Shorten the name of the directory we store the uninstaller in. 2001-07-27 15:31:22 +00:00
Fred L. Drake, Jr. edc66fb325 Add more information to the Welcome screen of the installer. 2001-07-27 15:22:35 +00:00
Fred L. Drake, Jr. d727f59ad9 Don't use the program database in MSVC. The others got this right. 2001-07-27 15:12:47 +00:00
Fred L. Drake, Jr. f6ea3590dc Update the lib and xmlwf project files to be part of the larger workspace. 2001-07-27 14:56:31 +00:00
Fred L. Drake, Jr. 903a9f4754 Try to make the Windows installer a little more rational, and install all
the sources a developer might want, not just the parser itself.
2001-07-27 14:54:11 +00:00
Fred L. Drake, Jr. a199491044 Adding back the MSVC workspace, adding in the sample projects as well. 2001-07-27 14:46:06 +00:00
Fred L. Drake, Jr. 6c15b0bcab Now we need to ignore some MSVC turds here. 2001-07-27 14:42:33 +00:00
Fred L. Drake, Jr. 946da4dc14 No longer need to ignore MSVC turds in this directory. 2001-07-27 14:40:42 +00:00
Fred L. Drake, Jr. 73a46385ea Move the MSVC workspace up one directory level so the generated Windows
installer can be more reasonable.
2001-07-27 14:39:42 +00:00
Fred L. Drake, Jr. b3fd15c445 Avoid creating extra output directories from MSVC. 2001-07-27 14:21:23 +00:00
Fred L. Drake, Jr. 4e2de83794 More project files for MSVC. 2001-07-27 14:08:17 +00:00
Fred L. Drake, Jr. c944beaea1 Ignore some additional Windows/MSVC cruft. 2001-07-27 14:05:30 +00:00
Fred L. Drake, Jr. bb4a4de066 I'm not really sure why this version of the file is still here, but
migrate the UTF-8 BOM fix here as well, so this does not get too far
out of sync.
2001-07-27 13:59:00 +00:00
Fred L. Drake, Jr. cff7d19ac6 Simplify the Unix source release; do not include all the Windows project
files and the like.  The Windows installer will include all that.
2001-07-27 13:28:49 +00:00
Fred L. Drake, Jr. bea3e90921 Remove the sample directory; it is no longer used. 2001-07-26 21:57:57 +00:00
Fred L. Drake, Jr. 749b7fb3a1 All sample code is now located in the "examples" directory. 2001-07-26 21:55:33 +00:00
Fred L. Drake, Jr. 86b7ae104d Move the "elements" example code here from "sample", so we only have one
directory of short sample code.
2001-07-26 21:54:43 +00:00
Fred L. Drake, Jr. d8263250ee More GCC flags, when we're using GCC:
-Wmissing-prototypes, to tighten up the warnings, and
-fexceptions, to make the generated code exception-safe when using it
with C++ code.

This closes SF bug #419585.
2001-07-26 20:48:06 +00:00
Fred L. Drake, Jr. a0a80f5f43 Settle on a release date, and note that there is now a Windows installer. 2001-07-26 20:32:22 +00:00
Fred L. Drake, Jr. a6849ef2f1 Add xmlwf to the default build, since the install includes it. 2001-07-26 20:31:15 +00:00
Fred L. Drake, Jr. 8d4ff3433c Make the built installer land in an existing directory. 2001-07-26 19:58:06 +00:00
Fred L. Drake, Jr. cfc6d2264f Add an overview of where everything ends up when installed by the Windows
installer.  This will be installed at the top of the Windows installation.
2001-07-26 19:50:28 +00:00
Fred L. Drake, Jr. 2b1678311c Changes so that we can actually build an installer, and fix the URLs. 2001-07-26 19:44:42 +00:00
Fred L. Drake, Jr. 41d112cacd Installer-builder script for Inno Setup, contributed by Tim Peters. 2001-07-26 18:28:17 +00:00
Fred L. Drake, Jr. 5a77c3f5bd Update the RPM .spec file for 1.95.2. 2001-07-25 20:14:13 +00:00
Fred L. Drake, Jr. 31a2f5f3a3 Change some options to end up with more rational output dirs. 2001-07-25 18:39:22 +00:00
Fred L. Drake, Jr. 8ec98c9108 Added preliminary changes for the 1.95.2 release. 2001-07-25 18:10:15 +00:00
Fred L. Drake, Jr. 7777219a59 Try to better explain the problems with Sun make -- perhaps someone with
more knowledge of the Sun tools could help explain this?
2001-07-25 18:08:05 +00:00
Fred L. Drake, Jr. 9e91c1f1ee Make sure the configured compiler is used for all subdirectories. 2001-07-25 17:51:40 +00:00
Fred L. Drake, Jr. daec796ad3 Remove #include directory that is no longer needed. 2001-07-25 17:34:17 +00:00
Fred L. Drake, Jr. e875e9de25 Really add the xmlwf project this time. 2001-07-25 17:32:17 +00:00
Fred L. Drake, Jr. cbf62af4f8 One more MSVC file to ignore... 2001-07-25 17:29:46 +00:00
Fred L. Drake, Jr. 286151fe68 When using GCC, use stronger error-checking options. 2001-07-25 17:25:46 +00:00
Fred L. Drake, Jr. a381bda8c4 Removed unusual use of "const" to avoid errors from a Sun compiler. 2001-07-25 17:22:48 +00:00
Fred L. Drake, Jr. 718bd9e746 Removed useless RCSId static from the code.
Added #include to pick up the memmove() prototype.

Added parentheses in some conditions to suppress compiler warnings.
2001-07-25 17:20:45 +00:00
Fred L. Drake, Jr. 712c70975d Remove useless RCSId static from the code. 2001-07-25 17:18:43 +00:00
Fred L. Drake, Jr. f5f84eceff Update comments on the Solaris build to be a little more careful -- or at
least warn the user!
2001-07-25 17:16:03 +00:00
Fred L. Drake, Jr. 75d03cbb54 #include <unistd.h> to pick up the close() prototype. 2001-07-25 17:13:34 +00:00
Fred L. Drake, Jr. c566467bd9 Kill a compiler warning & make private functions static. 2001-07-25 17:11:39 +00:00
Fred L. Drake, Jr. d70490a072 Clean up a few compiler warnings in the sameple code. 2001-07-25 17:04:22 +00:00
Fred L. Drake, Jr. 9e773e76e8 Add the new MSVC workspace file to the list of distributed files. 2001-07-25 16:36:57 +00:00
Fred L. Drake, Jr. 833783b904 Update the windows comments to reflect the current status, including the
added files in the next version of the expat_win32bin package.
2001-07-25 16:35:53 +00:00
Fred L. Drake, Jr. 1c3ac221c3 Update xmlwf project file. 2001-07-25 16:19:04 +00:00
Fred L. Drake, Jr. b6448b02a1 Toss the old MSVC workspace. 2001-07-25 16:13:36 +00:00
Fred L. Drake, Jr. 75dfaef598 Tell CVS to ignore the cruft files generated by MSVC and Source Insight. 2001-07-25 16:10:08 +00:00
Fred L. Drake, Jr. 6561a9e5ed Move the workspace file for MSVC, and let it also build xmlwf. 2001-07-25 16:06:57 +00:00
Fred L. Drake, Jr. 683d9c04da Add install and uninstall targets, along with all the relevant standard
variables.
2001-07-25 15:23:08 +00:00
Fred L. Drake, Jr. 4ae9b88ab8 Remove the extra DESTDIR variable. 2001-07-25 15:13:38 +00:00
Fred L. Drake, Jr. 3e5d0aa4a7 Some minor simplifications, and descend into fewer subdirs on "make install". 2001-07-25 15:12:00 +00:00
Fred L. Drake, Jr. 0951a96a7c Update to reflect the current build process. 2001-07-25 14:59:11 +00:00
Fred L. Drake, Jr. 845f869a2f Remove one more line that was not supposed to have gotten checked in
(part of an unfinished feature).
2001-07-25 14:40:06 +00:00
Fred L. Drake, Jr. 072bdb8045 Ignore the generated executables. 2001-07-25 14:33:28 +00:00
Fred L. Drake, Jr. 475116ad48 Let's not ignore files that are generated too rarely to be a nuissance;
we should remain aware of them.
2001-07-25 13:52:21 +00:00
Fred L. Drake, Jr. 180f35f5eb Revert unintended portion of a checkin; these files were not supposed to
have been changed with the most recent Makefile changes.
2001-07-25 03:29:56 +00:00
Fred L. Drake, Jr. f21b3de88b Added a comment about compiling for use with C++, including the use of the
-fexceptions flag with GCC.

This closes SF bug #419585.
2001-07-25 03:14:39 +00:00
Fred L. Drake, Jr. 05d1fac780 Make sure all the makefiles have at least a dummy check target and
reasonable distclean and maintainer-clean targets.

This fixes the last part of SF bug #430942.
2001-07-25 03:05:22 +00:00
Fred L. Drake, Jr. f501679409 Update the MSVC project. I don't understand all the
changes, but it seems to work.
2001-07-24 21:41:05 +00:00
Fred L. Drake, Jr. be106416dc Reduce the reliance on non-standard "tar" options. 2001-07-24 20:03:28 +00:00
Fred L. Drake, Jr. 3b3a7ec889 Use the AC_C_BIGENDIAN_CROSS macro instead of the non-cross-compile-safe
version normally provided with autoconf.

I have not tested this in a cross-compilation environment, but it does
not break things in my x86 environment.  (If this breaks things for anyone,
please file a bug report!)

This closes SF patch #431342.
2001-07-24 19:54:20 +00:00
Fred L. Drake, Jr. 109f8790f9 Adding cross-compile safe BIGENDIAN test for autoconf. Original source:
http://cryp.to/autoconf-archive/Cross_Compilation/ac_c_bigendian_cross.html

This is part of SF patch #431342.
2001-07-24 19:51:35 +00:00
Fred L. Drake, Jr. 4006aa38b5 Bump the version number and make a few small changes (mostly editorial).
Re-wrap lines to be a little shorter.
2001-07-24 17:08:58 +00:00
Fred L. Drake, Jr. 8a96f5b08d Add the MSVC workspace file. 2001-07-24 16:52:54 +00:00
Fred L. Drake, Jr. ba30f956c8 Tell CVS to ignore the Windows temporary files. 2001-07-24 16:50:37 +00:00
Fred L. Drake, Jr. a6b3939dd9 Oops, remove a prototype for a feature that is not yet ready. 2001-07-24 16:03:51 +00:00
Fred L. Drake, Jr. a0f045d46d The previous checkin of expat.h.in broke the build for Windows (now everyone
will just have to wonder how I got anything at all working on Windows).

Since we do not want to place the XMLPARSEAPI marker in the middle of a
type name, always tack it onto the beginning -- anywhere else seems fragile
at best.
2001-07-24 16:00:52 +00:00
Fred L. Drake, Jr. 84ec06ca9c Support building from directories other than the source directory.
Patch contributed by Mo DeJong -- thanks!

This closes SF patch #431340.
2001-07-21 03:37:12 +00:00
Fred L. Drake, Jr. 517663ce07 Avoid specifying XMLPARSEAPI in the middle of a prototype's return
value; some compilers that expand XMLPARSEAPI to a non-empty value
complain.

This closes SF patch #412076.
2001-07-21 02:28:28 +00:00
Fred L. Drake, Jr. 0a268deb6b Sam TH <samth@users.sourceforge.net>:
Tell CVS to ignore the generated executable.
2001-03-29 05:21:57 +00:00
Fred L. Drake, Jr. ec982dcdc4 Update the MANIFEST to reflect Greg's recent changes. 2001-03-13 17:27:15 +00:00
Greg Stein 4232566291 Revamp config/build to keep generated files out of CVS (some libtool files
were out of date, and we've previously seen expat.h out of sync).

*) Use new script "buildconf.sh" to create the set of generated files
   (aclocal.m4, config.h.in, configure). This is intended to be used by
   developers (rerun when configure.in changes) and just before a release
   (releases include these outputs).

   Developers now need the "autoconf" and "libtool" packages.

*) config.h.in is now built by autoheader and includes bits from acconfig.h
   rather than manual construction/maintenance. (renamed from config.hin)

*) added conftools/PrintPath from the ASF; it is a portable "which"

*) added "extraclean" target to top-level Makefile to get rid of all
   generated files (return to pure CVS state; before buildconf.sh)

*) updates various bits for config.hin -> config.h.in rename

*) no longer need to delete the ".deps" subdir since we don't create it
   anymore (dependencies are explicit rather than auto-generated).
2001-03-10 15:41:50 +00:00
Fred L. Drake, Jr. dd899178d0 Update the license type; error pointed out by Greg Stein. 2001-03-03 07:20:04 +00:00
Fred L. Drake, Jr. c8fae37aa2 Added .spec file for building RPMs; contributed by Sean Reifschneider.
Minor changes to reflect build process updates and bump the version number
for the next release; remove the "tummy" suffix from the RPM version since
this is part of the stock package.
2001-03-01 04:43:23 +00:00
Fred L. Drake, Jr. d47741fc6b Sam TH:
Fix a variety of build control problems for the auxiliary directories.

This closes SF tracker patch #403582.
2001-03-01 04:28:27 +00:00
Fred L. Drake, Jr. 86474275a1 Sam TH:
Use the current name for the Expat header file.

This is part of SF tracker patch #403582.
2001-03-01 04:18:28 +00:00
Fred L. Drake, Jr. 6c543e265d Spoke to soon -- one of the patches added a Makefile.in to the sample/
directory, so we do need to configure it.
2001-03-01 04:14:23 +00:00
Fred L. Drake, Jr. 1139ceac02 Sam TH:
Add a Makefile.in for the sample application.

FLD:
Tell CVS to ignore the generated Makefile.

This closes SF tracker patch #403583.
2001-03-01 04:13:33 +00:00
Fred L. Drake, Jr. 43be41d965 There is no sample/Makefile.in, so do not try to generate sample/Makefile
even if the directory exists.
2001-03-01 04:07:20 +00:00
Fred L. Drake, Jr. 2ce9cd4140 Sam TH:
Remove gcc-specific cruft from the Makefile -- this hurts portability!

This closes SF tracker patch #403584, and probably more platform-specific
build process bugs than I care to think about.
2001-03-01 04:04:26 +00:00
Fred L. Drake, Jr. 83e53eb8d0 Sam TH:
Only configure makefiles in child directories that exist.

[...and added explanation as to why this is useful -- FLD.]

This closes SF tracker patch #403585.
2001-03-01 03:47:12 +00:00
Fred L. Drake, Jr. ffa686a288 Updated version from config.h.in update (includes wrapping of lots of long
lines).
2001-03-01 03:44:45 +00:00
Fred L. Drake, Jr. 4c3f32531d Sam TH:
BeOS defines __declspec, but we don't use it there.

This closes SF tracker patch #403581.
2001-03-01 03:19:27 +00:00
Fred L. Drake, Jr. a6823aa552 Fix SF bug #123767: segfault on UTF-8 BOM.
(Reported with fix by Bruce Kaskel.)
2001-02-16 18:12:49 +00:00
Fred L. Drake, Jr. 2eb02dd3de Added XMLPARSEAPI to the prototype for XML_DefaultCurrent().
Re-wrapped some comments that exceeded 80 characters per line.

This closes SF bug #129217.
2001-01-26 19:18:31 +00:00
Fred L. Drake, Jr. d8fa305d39 Added note about adding /usr/ccs/bin to the PATH for Solaris users. 2001-01-25 17:55:24 +00:00
Fred L. Drake, Jr. eae9ec21a9 Document the #define constants giving library version information. 2001-01-24 19:53:01 +00:00
Fred L. Drake, Jr. 16031442b8 Make sure we generate lib/expat.h. 2001-01-24 19:42:05 +00:00
Fred L. Drake, Jr. faea974737 Simplify, since we no longer need the temporaries for version information. 2001-01-24 19:41:12 +00:00
Fred L. Drake, Jr. 2f5721e204 Template for the expat.h header, processed by the configure script.
(We still need to keep expat.h checked in since it is not generated on
Windows.)
2001-01-24 19:40:13 +00:00
Fred L. Drake, Jr. a3fcd14422 Use the new XML_*_VERSION constants to fill in the XML_Expat_Version
structure.
2001-01-24 19:38:54 +00:00
Fred L. Drake, Jr. f4f26d227b Add definitions of XML_MAJOR_VERSION, XML_MINOR_VERSION, and
XML_MICRO_VERSION.  These contain version-specific information, but
this header is about to become a generated file, so that's ok.
2001-01-24 19:37:36 +00:00
Clark Cooper 604600883c Clark's compromise changes to Fred's version info change. 2000-12-27 19:37:37 +00:00
Clark Cooper 01947d98ff Inadvertently failed to commit these files for 1.95.1 (apparently I committed
from the lib directory instead of the main directory)
2000-12-27 18:08:15 +00:00
Fred L. Drake, Jr. c9d4a09e50 Add a comment that the version numbers here must match those in lib/expat.h. 2000-12-21 14:33:23 +00:00
Fred L. Drake, Jr. e667ee8393 Add (minimal) documetation on the new parts of the API. 2000-12-21 01:51:40 +00:00
Fred L. Drake, Jr. 11464c65f8 Update the minor version number since the C API has been extended. 2000-12-21 01:50:28 +00:00
Fred L. Drake, Jr. 0e5418f698 Remove VERSION; this is no longer used in this directory since the version
information is computed from the XML_*_VERSION constants.
2000-12-21 01:49:27 +00:00
Fred L. Drake, Jr. eb5ef0f8d9 XML_ExpatVersionInfo(): New function; returns library version as a
structure that can be examined at runtime.

XML_ExpatVersion():  Construct the return value from the new version
        information constants.

XML_MAJOR_VERSION, XML_MINOR_VERSION,
XML_MICRO_VERSION:  New constants; these specify the version of the
        library in a form that can be queried by client applications
        at compile time.  This is useful in determining if functions
        should be considered available (like those above).
2000-12-21 00:32:47 +00:00
Fred L. Drake, Jr. 28ebb2194d Minor internal style consistency nit (indentation). 2000-12-20 22:30:54 +00:00
Fred L. Drake, Jr. fd297d8120 Tell CVS to ignore generated Makefiles and working dirs used by libtool. 2000-10-30 21:25:05 +00:00
Clark Cooper ae2257acce Changes for compiling under Microsoft Dev Studio. 2000-10-22 19:20:23 +00:00
Clark Cooper b1bcd0060a Remove aborts and instead return an UNEXPECTED_STATE error. 2000-10-20 15:37:28 +00:00
Clark Cooper 809a5d2916 Revised fix for abort occurring with a percent followed by whitespace or
another percent in entity values.
2000-10-20 15:14:36 +00:00
Clark Cooper c4ca6cf75e Defined XML_SetEndNamespaceDeclHandler to resolve bug # 116381 2000-10-10 18:48:48 +00:00
Clark Cooper 219c9e2de6 Fix make problems on BSD & HPUX reported in Bug # 116248 2000-10-10 18:34:11 +00:00
Clark Cooper 15447d34ea Fix documentation error reported in Bug report # 116382 2000-10-10 18:30:22 +00:00
James Clark d93eff7f99 Fix abort with space following percent sign in entity value 2000-10-09 06:26:10 +00:00
Clark Cooper 02534e83b5 Add MANIFEST and remove expatfaq.html 2000-09-29 15:47:38 +00:00
Clark Cooper 205ac2c5d9 Fixed a bug in Makefile.in that wiped out README. 2000-09-29 15:44:00 +00:00
Clark Cooper aa45fb851a Versioning information, fill in Changes file, possible final commit before
first release (1.95.0)
2000-09-29 14:57:45 +00:00
Clark Cooper 63d2f68760 Switch to using MANIFEST to build distribution.
Also fix xmlwf to use current entity declaration signature.
2000-09-28 19:47:35 +00:00
Clark Cooper e8b7b5fa4f Fixes to allow DLLs to built under Windows. 2000-09-28 17:53:00 +00:00
Clark Cooper a37327861c Change version number to accord with beta release. 2000-09-26 13:52:33 +00:00
Clark Cooper df9c925f77 Make more explicit the need to do an include of expat.h 2000-09-25 13:06:39 +00:00
Clark Cooper 91ae02924d Changes for namespace triplets. 2000-09-25 00:58:49 +00:00
Clark Cooper 24a3551e56 Added dynamic malloc substitution. Added libtool versioning. 2000-09-24 03:43:37 +00:00
Clark Cooper a00cc29567 Update reference with API changes made by the perl-expat merge. 2000-09-22 18:24:28 +00:00
Clark Cooper c446fb274e Merged in modifications from perl-expat. Also fiddled around with more
configuration issues.
2000-09-21 21:20:18 +00:00
Clark Cooper c135be083d These are the first check-ins for the libexpat task: create configuration
files and setup for building a shareable libexpat.
2000-09-18 16:26:23 +00:00
Clark Cooper 7f167d9b05 Added a link to bug reports page, added Revision comment, and fixed XML errors. 2000-09-12 17:06:46 +00:00
Fred L. Drake, Jr. b1e4e0798c Point to the mailing lists, not the "Forums". Forums are just plain weird.
Add a (very) little text describing the overall goal of the project.
2000-09-07 02:40:29 +00:00
Fred L. Drake, Jr. 810ec88a4a Create a SourceForge "product" from the expat project Web pages. 2000-09-07 02:23:49 +00:00
Fred L. Drake, Jr. 7b3ca3d246 *** empty log message *** 2000-09-07 02:23:49 +00:00
159 changed files with 892025 additions and 12779 deletions
+10 -6
View File
@@ -1,8 +1,12 @@
bin
dbgbin
Debug
Makefile
.libs
*.la
configure
config.cache
config.log
config.status
expat_config.h.in
expat_config.h
libtool
expat.ncb
expat.opt
Release
expat.zip
lib
+2
View File
@@ -1,4 +1,6 @@
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
+124
View File
@@ -0,0 +1,124 @@
Release 1.95.7 Mon Oct 20 2003
- Fixed enum XML_Status issue (reported on SourceForge many
times), so compilers that are properly picky will be happy.
- Introduced an XMLCALL macro to control the calling
convention used by the Expat API; this macro should be used
to annotate prototypes and definitions of callback
implementations in code compiled with a calling convention
other than the default convention for the host platform.
- Improved ability to build without the configure-generated
expat_config.h header. This is useful for applications
which embed Expat rather than linking in the library.
- Fixed a variety of bugs: see SF issues 458907, 609603,
676844, 679754, 692878, 692964, 695401, 699323, 699487,
820946.
- Improved hash table lookups.
- Added more regression tests and improved documentation.
Release 1.95.6 Tue Jan 28 2003
- Added XML_FreeContentModel().
- Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree().
- Fixed a variety of bugs: see SF issues 615606, 616863,
618199, 653180, 673791.
- Enhanced the regression test suite.
- Man page improvements: includes SF issue 632146.
Release 1.95.5 Fri Sep 6 2002
- Added XML_UseForeignDTD() for improved SAX2 support.
- Added XML_GetFeatureList().
- Defined XML_Bool type and the values XML_TRUE and XML_FALSE.
- Use an incomplete struct instead of a void* for the parser
(may not retain).
- Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected.
- Finally fixed bug where default handler would report DTD
events that were already handled by another handler.
Initial patch contributed by Darryl Miles.
- Removed unnecessary DllMain() function that caused static
linking into a DLL to be difficult.
- Added VC++ projects for building static libraries.
- Reduced line-length for all source code and headers to be
no longer than 80 characters, to help with AS/400 support.
- Reduced memory copying during parsing (SF patch #600964).
- Fixed a variety of bugs: see SF issues 580793, 434664,
483514, 580503, 581069, 584041, 584183, 584832, 585537,
596555, 596678, 598352, 598944, 599715, 600479, 600971.
Release 1.95.4 Fri Jul 12 2002
- Added support for VMS, contributed by Craig Berry. See
vms/README.vms for more information.
- Added Mac OS (classic) support, with a makefile for MPW,
contributed by Thomas Wegner and Daryle Walker.
- Added Borland C++ Builder 5 / BCC 5.5 support, contributed
by Patrick McConnell (SF patch #538032).
- Fixed a variety of bugs: see SF issues 441449, 563184,
564342, 566334, 566901, 569461, 570263, 575168, 579196.
- Made skippedEntityHandler conform to SAX2 (see source comment)
- Re-implemented WFC: Entity Declared from XML 1.0 spec and
added a new error "entity declared in parameter entity":
see SF bug report 569461 and SF patch 578161
- Re-implemented section 5.1 from XML 1.0 spec:
see SF bug report 570263 and SF patch 578161
Release 1.95.3 Mon Jun 3 2002
- Added a project to the MSVC workspace to create a wchar_t
version of the library; the DLLs are named libexpatw.dll.
- Changed the name of the Windows DLLs from expat.dll to
libexpat.dll; this fixes SF bug #432456.
- Added the XML_ParserReset() API function.
- Fixed XML_SetReturnNSTriplet() to work for element names.
- Made the XML_UNICODE builds usable (thanks, Karl!).
- Allow xmlwf to read from standard input.
- Install a man page for xmlwf on Unix systems.
- Fixed many bugs; see SF bug reports 231864, 461380, 464837,
466885, 469226, 477667, 484419, 487840, 494749, 496505,
547350. Other bugs which we can't test as easily may also
have been fixed, especially in the area of build support.
Release 1.95.2 Fri Jul 27 2001
- More changes to make MSVC happy with the build; add a single
workspace to support both the library and xmlwf application.
- Added a Windows installer for Windows users; includes
xmlwf.exe.
- Added compile-time constants that can be used to determine the
Expat version
- Removed a lot of GNU-specific dependencies to aide portability
among the various Unix flavors.
- Fix the UTF-8 BOM bug.
- Cleaned up warning messages for several compilers.
- Added the -Wall, -Wstrict-prototypes options for GCC.
Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000
- Changes to get expat to build under Microsoft compiler
- Removed all aborts and instead return an UNEXPECTED_STATE error.
- Fixed a bug where a stray '%' in an entity value would cause an
abort.
- Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for
finding this oversight.
- Changed default patterns in lib/Makefile.in to fit non-GNU makes
Thanks to robin@unrated.net for reporting and providing an
account to test on.
- The reference had the wrong label for XML_SetStartNamespaceDecl.
Reported by an anonymous user.
Release 1.95.0 Fri Sep 29 2000
- XML_ParserCreate_MM
Allows you to set a memory management suite to replace the
standard malloc,realloc, and free.
- XML_SetReturnNSTriplet
If you turn this feature on when namespace processing is in
effect, then qualified, prefixed element and attribute names
are returned as "uri|name|prefix" where '|' is whatever
separator character is used in namespace processing.
- Merged in features from perl-expat
o XML_SetElementDeclHandler
o XML_SetAttlistDeclHandler
o XML_SetXmlDeclHandler
o XML_SetEntityDeclHandler
o StartDoctypeDeclHandler takes 3 additional parameters:
sysid, pubid, has_internal_subset
o Many paired handler setters (like XML_SetElementHandler)
now have corresponding individual handler setters
o XML_GetInputContext for getting the input context of
the current parse position.
- Added reference material
- Packaged into a distribution that builds a sharable library
+92
View File
@@ -0,0 +1,92 @@
Changes
COPYING
MANIFEST
Makefile.in
README
configure
configure.in
expat_config.h.in
bcb5/README.txt
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
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
-46
View File
@@ -1,46 +0,0 @@
CC=gcc
# If you know what your system's byte order is, define XML_BYTE_ORDER:
# use -DXML_BYTE_ORDER=12 for little-endian byte order;
# use -DXML_BYTE_ORDER=21 for big-endian (network) byte order.
# -DXML_NS adds support for checking of lexical aspects of XML namespaces spec
# -DXML_MIN_SIZE makes a smaller but slower parser
# -DXML_DTD adds full support for parsing DTDs
CFLAGS=-Wall -O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD
AR=ar
# Use one of the next two lines; unixfilemap is better if it works.
FILEMAP_OBJ=xmlwf/unixfilemap.o
#FILEMAP_OBJ=xmlwf/readfilemap.o
LIBOBJS=xmltok/xmltok.o \
xmltok/xmlrole.o \
xmlparse/xmlparse.o
OBJS=xmlwf/xmlwf.o \
xmlwf/xmlfile.o \
xmlwf/codepage.o \
$(FILEMAP_OBJ)
LIB=xmlparse/libexpat.a
EXE=
XMLWF=xmlwf/xmlwf$(EXE)
all: $(XMLWF)
$(XMLWF): $(OBJS) $(LIB)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIB)
$(LIB): $(LIBOBJS)
$(AR) rc $(LIB) $(LIBOBJS)
clean:
rm -f $(OBJS) $(LIBOBJS) $(LIB) $(XMLWF)
xmltok/nametab.h: gennmtab/gennmtab$(EXE)
rm -f $@
gennmtab/gennmtab$(EXE) >$@
gennmtab/gennmtab$(EXE): gennmtab/gennmtab.c
$(CC) $(CFLAGS) -o $@ gennmtab/gennmtab.c
xmltok/xmltok.o: xmltok/nametab.h
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
+173
View File
@@ -0,0 +1,173 @@
################################################################
# 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@
mandir = ${prefix}/man/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
LIBRARY = libexpat.la
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 chardata.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/runtests
install: xmlwf/xmlwf installlib
$(mkinstalldirs) $(bindir) $(mandir)
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
$(INSTALL_DATA) $(MANFILE) $(mandir)
installlib: $(LIBRARY) $(APIHEADER)
$(mkinstalldirs) $(libdir) $(includedir)
$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
$(INSTALL_DATA) $(APIHEADER) $(includedir)
uninstall: uninstalllib
$(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
rm -f $(mandir)/xmlwf.1
uninstalllib:
$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY)
rm -f $(includedir)/$(APIHEADER)
# 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) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES)
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 $@
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/internal.h
lib/xmlrole.lo: lib/xmlrole.c lib/ascii.h lib/xmlrole.h \
$(top_builddir)/expat_config.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
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/runtests.o: tests/runtests.c tests/chardata.h
tests/runtests: tests/runtests.o tests/chardata.o $(LIBRARY)
$(LINK_EXE) $^ -lcheck
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
+119
View File
@@ -0,0 +1,119 @@
Expat, Release 1.95.7
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).
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
The unit and regression tests for Expat require the "check" library on
Unix; more information is available at http://check.sourceforge.net/,
and downloadable packages are available from the library's project
page on SourceForge: http://sourceforge.net/projects/check/. You do
not need to install the check library to build and use Expat, only to
build and run Expat's test suite.
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 expat-bugs@mail.libexpat.org.
Discussion related to the direction of future expat development takes
place on expat-discuss@mail.libexpat.org. Archives of this list and
other Expat-related lists may be found at:
http://mail.libexpat.org/mailman-21/listinfo/
+86
View File
@@ -0,0 +1,86 @@
Using a Borland compiler product
The files in this directory support using both the free Borland command-line
compiler tools and the Borland C++ Builder IDE. The project files have been
tested with both versions 5 and 6 of the C++ Builder product.
Using the free BCC32 command line compiler
After downloading and installing the free C++ Builder commandline version,
perform the following steps (assuming it was installed under C:\Borland\BCC55):
1) Add "C:\Borland\BCC55\BIN" to your path
2) Set the environment variable BCB to "C:\Borland\BCC55".
3) edit makefile.mak: enable or comment out the appropriate commands under
clean & distclean, depending on whether your OS can use deltree /y or
del /s/f/q.
After that, you should simply cd to the bcb5 directory in your Expat directory
tree (same structure as CVS) and run "make all" or just "make".
Naming
The libraries have the base name "libexpat" followed optionally by an "s"
(static) or a "w" (unicode version), then an underscore and optionally
"mt" (multi-threaded) and "d" (dynamic RTL).
To change the name of the library a project file produces, edit the project
option source (see step 1 under Unicode below) and change the name contained in
the PROJECT tag. In a make file, change the value assigned to the PROJECT
variable. Also, the LIBRARY entry in the .def file has to be changed to
correspond to the new executable name.
Unicode Considerations
There are no facilities in the BCB 5 GUI to create a unicode-enabled
application. Fortunately, it is not hard to do by hand.
1. The startup .obj system file must be changed to the unicode version.
Go to Project|Edit Option Source, and scroll down to the ALLOBJ tag. Change
c0x32.obj to c0x32w.obj. Editing this file can be quirky, but usually the
following kludge will make the change stick. Close and save the file
(CTRL-F4) then open the options dialog (CTRL-Shift-F11), then click OK on
the dialog immediately without changing anything in it. If this doesn't work,
you will have to close the project completely and edit the .bpr file by hand.
If you are using a make file, just change the startup .obj file assigned
to the ALLOBJ variable.
2. Add the macro define XML_UNICODE_WCHAR_T. In the GUI that goes in the options
dialog, Directories/Conditionals tab, in the Conditional define box. In a
make file, put it in the USERDEFINES variable.
3. Of course, your code has to be written for unicode. As a start, the "main"
function is called "wmain". The tchar macros are an interesting way to
write code that can easily switch between unicode and utf-8. If these macros
are used, then simply adding the conditional define _UNICODE as well as
XML_UNICODE_WCHAR_T will bring in the unicode versions of the tchar macros.
Otherwise the utf-8 versions are used. xmlwf uses its own versions of the
tchar macros which are switched on and off by the XML_UNICODE macro, which
itself is set by the XML_UNICODE_WCHAR_T define.
Threading
The libexpat libraries are all built with the multi-threaded dynamic RTL's.
To create single-threaded libs, do the following:
1. The compiler option for multi-threading must be turned off. Following the
instructions above to edit the option source, remove the -tWM option from
the CFLAG1 tag. In a make file, remove it from the CFLAG1 variable.
2. The single threaded RTL must be called. change the RTL in the ALLLIB tag or
variable (GUI or makefile repectively) to the version without the "mt" in the
name. For example, change cw32mti.lib to cw32i.lib.
Static RTL's
To build the libs with static RTL's do the following,
1. For the static expatlibs, in the Tlib tab on the options dialog, uncheck the
"Use dynamic RTL" box. For the dynamic expatlibs, in the Linker tab on the
options dialog, uncheck "Use dynamic RTL". If you are using a make file,
remove the _RTLDLL assignment to the SYSDEFINES variable, and change the RTL
to the version without an "i" in the ALLLIB variable. For example,
cw32mti.lib would become cw32mt.lib.
+49
View File
@@ -0,0 +1,49 @@
#------------------------------------------------------------------------------
VERSION = BWS.01
#------------------------------------------------------------------------------
!ifndef ROOT
ROOT = $(MAKEDIR)\..
!endif
#------------------------------------------------------------------------------
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
DCC = $(ROOT)\bin\dcc32.exe $**
BRCC = $(ROOT)\bin\brcc32.exe $**
#------------------------------------------------------------------------------
PROJECTS = setup libexpat_mtd.dll libexpats_mtd.lib libexpatw_mtd.dll \
libexpatws_mtd.lib elements.exe outline.exe xmlwf.exe
#------------------------------------------------------------------------------
default: $(PROJECTS)
#------------------------------------------------------------------------------
libexpat_mtd.dll: expat.bpr
$(ROOT)\bin\bpr2mak $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
libexpats_mtd.lib: expat_static.bpr
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
libexpatw_mtd.dll: expatw.bpr
$(ROOT)\bin\bpr2mak $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
libexpatws_mtd.lib: expatw_static.bpr
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
elements.exe: elements.bpr
$(ROOT)\bin\bpr2mak $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
outline.exe: outline.bpr
$(ROOT)\bin\bpr2mak $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
xmlwf.exe: xmlwf.bpr
$(ROOT)\bin\bpr2mak $**
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
setup: setup.bat
call $**
+4
View File
@@ -0,0 +1,4 @@
USEUNIT("..\examples\elements.c");
USELIB("Release\libexpats_mtd.lib");
//---------------------------------------------------------------------------
main
+149
View File
@@ -0,0 +1,149 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\elements.exe"/>
<OBJFILES value="Release\obj\examples\elements.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value=""/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value="Release\libexpats_mtd.lib"/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi"/>
<PATHCPP value=".;..\examples"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="ilink32"/>
<USERDEFINES value="WIN32;NDEBUG;_CONSOLE;XML_STATIC"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="elements.bpf"/>
<INCLUDEPATH value="..\examples;$(BCB)\include"/>
<LIBPATH value="..\examples;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-par -w-8027 -w-8026"/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-O2 -X- -a8 -b -k- -vi -q -tWM -I..\lib -c"/>
<PFLAGS value="-N2Release\obj\examples -N0Release\obj\examples -$Y- -$L- -$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="-IRelease\obj\examples -D&quot;&quot; -ap -Tpe -x -Gn -q -L..\LIB\RELEASE_STATIC"/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0x32.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=4
Item0=..\examples;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=8
Item0=..\examples;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\examples;$(BCB)\lib;..\examples\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);..\lib\Release-w_static
Item4=$(BCB)\lib;$(RELEASELIBPATH);..\lib\Release_static
Item5=$(BCB)\lib;$(RELEASELIBPATH);C:\src\expat\lib\Release_static
Item6=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
Item7=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=17
Item0=WIN32;NDEBUG;_CONSOLE;XML_STATIC
Item1=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_STATIC
Item2=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE;XML_STATIC
Item3=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
Item4=WIN32;NDEBUG;_CONSOLE;_DEBUG
Item5=WIN32;NDEBUG;_CONSOLE;XML_STATIC;_DEBUG
Item6=WIN32;NDEBUG;_CONSOLE;XML_STATIC;_DEBUG;_UNICODE
Item7=WIN32;NDEBUG;_CONSOLE;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T
Item8=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T
Item9=WIN32;NDEBUG;_CONSOLE;_UNICODE;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T
Item10=WIN32;NDEBUG;_CONSOLE;_UNICODE;XML_STATIC;_DEBUG;XML_UNICODE
Item11=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T;__WCHAR_T
Item12=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
Item13=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE;_UNICODE
Item14=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG;XML_UNICODE
Item15=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC;_DEBUG
Item16=WIN32;NDEBUG;_CONSOLE;_MBCS;XML_STATIC
[HistoryLists\hlIntOutputDir]
Count=5
Item0=Release\obj\examples
Item1=Release\obj\elements
Item2=Release\obj\mts
Item3=..\examples\Release
Item4=Release
[HistoryLists\hlFinalOutputDir]
Count=1
Item0=Release\
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+186
View File
@@ -0,0 +1,186 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\elements.exe
OBJFILES = Release\obj\examples\elements.obj
RESFILES =
MAINSOURCE = elements.bpf
RESDEPEN = $(RESFILES)
LIBFILES = Release\libexpats_mtd.lib
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES = VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi \
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi \
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi \
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi
SPARELIBS =
DEFFILE =
# ---------------------------------------------------------------------------
PATHCPP = .;..\examples
PATHASM = .;
PATHPAS = .;
PATHRC = .;
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = WIN32;NDEBUG;_CONSOLE;XML_STATIC
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\examples;$(BCB)\include
LIBPATH = ..\examples;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS= -w-par -w-8027 -w-8026
# ---------------------------------------------------------------------------
CFLAG1 = -O2 -X- -a8 -b -k- -vi -q -I..\lib -c
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\examples -N0Release\obj\examples -$Y- -$L- -$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS = -IRelease\obj\examples -D"" -ap -Tpe -x -Gn -q -L..\LIB\RELEASE_STATIC
# ---------------------------------------------------------------------------
ALLOBJ = c0x32.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = ilink32
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) @&&!
$(LFLAGS) -L$(LIBPATH) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+6
View File
@@ -0,0 +1,6 @@
USEUNIT("..\lib\xmlparse.c");
USEUNIT("..\lib\xmlrole.c");
USEUNIT("..\lib\xmltok.c");
USEDEF("libexpat_mtd.def");
//---------------------------------------------------------------------------
#define DllEntryPoint
+140
View File
@@ -0,0 +1,140 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\libexpat_mtd.dll"/>
<OBJFILES value="Release\obj\libexpat\xmlparse.obj Release\obj\libexpat\xmlrole.obj
Release\obj\libexpat\xmltok.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value="libexpat_mtd.def"/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value=""/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi"/>
<PATHCPP value=".;..\lib"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="ilink32"/>
<USERDEFINES value="_WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="expat.bpf"/>
<INCLUDEPATH value="..\lib;$(BCB)\include"/>
<LIBPATH value="..\lib;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-rch -w-par -w-8027 -w-8026 -w-ccc"/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-WD -O2 -X- -a8 -b -k- -vi -q -tWM -c -tWD"/>
<PFLAGS value="-N2Release\obj\libexpat -N0Release\obj\libexpat -$Y- -$L- -$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="-IRelease\obj\libexpat -D&quot;&quot; -aa -Tpd -x -Gn -Gi -q"/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0d32.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=4
Item0=..\lib;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=5
Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=8
Item0=_WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
Item2=WIN32;_WINDOWS;NDEBUG;_DEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
Item3=WIN32;_WINDOWS;NDEBUG;_DEBUG;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP
Item4=NDEBUG;WIN32;_WINDOWS;_USRDLL;_DEBUG;EXPAT_EXPORTS;COMPILED_FROM_DSP
Item5=NDEBUG;WIN32;_WINDOWS;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP;_DEBUG
Item6=NDEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP;_DEBUG
Item7=NDEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP
[HistoryLists\hlIntOutputDir]
Count=7
Item0=Release\obj\libexpat
Item1=Release\obj\libexpat_static
Item2=Release\obj\mtd
Item3=Release\obj\mt
Item4=Release\obj
Item5=Release
Item6=..\lib\Release
[HistoryLists\hlFinalOutputDir]
Count=1
Item0=Release\
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+187
View File
@@ -0,0 +1,187 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\libexpat_mtd.dll
OBJFILES = Release\obj\libexpat\xmlparse.obj Release\obj\libexpat\xmlrole.obj \
Release\obj\libexpat\xmltok.obj
RESFILES =
MAINSOURCE = expat.bpf
RESDEPEN = $(RESFILES)
LIBFILES =
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES = VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi \
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi \
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi \
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi
SPARELIBS =
DEFFILE = libexpat_mtd.def
# ---------------------------------------------------------------------------
PATHCPP = .;..\lib
PATHASM = .;
PATHPAS = .;
PATHRC = .;
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = _WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\lib;$(BCB)\include
LIBPATH = ..\lib;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS= -w-rch -w-par -w-8027 -w-8026 -w-ccc
# ---------------------------------------------------------------------------
CFLAG1 = -WD -O2 -X- -a8 -b -k- -vi -q -tWM -c -tWD
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\libexpat -N0Release\obj\libexpat -$Y- -$L- -$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS = -IRelease\obj\libexpat -D"" -aa -Tpd -x -Gn -Gi -q
# ---------------------------------------------------------------------------
ALLOBJ = c0d32.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = ilink32
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) @&&!
$(LFLAGS) -L$(LIBPATH) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+5
View File
@@ -0,0 +1,5 @@
USEUNIT("..\lib\xmlparse.c");
USEUNIT("..\lib\xmlrole.c");
USEUNIT("..\lib\xmltok.c");
//---------------------------------------------------------------------------
#define Library
+143
View File
@@ -0,0 +1,143 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\libexpats_mtd.lib"/>
<OBJFILES value="Release\obj\libexpat_static\xmlparse.obj
Release\obj\libexpat_static\xmlrole.obj
Release\obj\libexpat_static\xmltok.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value=""/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value=""/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value=""/>
<PATHCPP value=".;..\lib"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="TLib"/>
<USERDEFINES value="_WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="expat_static.bpf"/>
<INCLUDEPATH value="..\lib;$(BCB)\include"/>
<LIBPATH value="..\lib;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-rch -w-par -w-8027 -w-8026 -w-ccc"/>
<LISTFILE value=""/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-O2 -X- -a8 -b -k- -vi -q -tWM -c"/>
<PFLAGS value="-N2Release\obj\libexpat_static -N0Release\obj\libexpat_static -$Y- -$L- -$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value=""/>
</OPTIONS>
<LINKER>
<ALLOBJ value="$(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES)"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=4
Item0=..\lib;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=5
Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=7
Item0=_WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
Item2=WIN32;_WINDOWS;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
Item3=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP;_DEBUG
Item4=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP
Item5=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP;_MBCS
Item6=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP
[HistoryLists\hlIntOutputDir]
Count=6
Item0=Release\obj\libexpat_static
Item1=Release\obj\mts
Item2=Release\obj\mt
Item3=Release
Item4=..\lib\Release_static
Item5=Release_static
[HistoryLists\hlFinalOutputDir]
Count=3
Item0=Release\
Item1=Release
Item2=Release_static\
[HistoryLists\hlTlibPageSize]
Count=1
Item0=0x0010
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+189
View File
@@ -0,0 +1,189 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\libexpats_mtd.lib
OBJFILES = Release\obj\libexpat_static\xmlparse.obj \
Release\obj\libexpat_static\xmlrole.obj \
Release\obj\libexpat_static\xmltok.obj
RESFILES =
MAINSOURCE = expat_static.bpf
RESDEPEN = $(RESFILES)
LIBFILES =
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES =
SPARELIBS =
DEFFILE =
# ---------------------------------------------------------------------------
PATHCPP = .;..\lib
PATHASM = .;
PATHPAS = .;
PATHRC = .;
LINKER = TLib
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = _WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\lib;$(BCB)\include
LIBPATH = ..\lib;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS = -w-rch -w-par -w-8027 -w-8026 -w-ccc
LISTFILE =
# ---------------------------------------------------------------------------
CFLAG1 = -O2 -X- -a8 -b -k- -vi -q -tWM -c
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\libexpat_static -N0Release\obj\libexpat_static -$Y- -$L- -$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS =
# ---------------------------------------------------------------------------
ALLOBJ = $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES)
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = TLib
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
!if "$(LISTFILE)" == ""
COMMA =
!else
COMMA = ,
!endif
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) /u $@ @&&!
$(LFLAGS) $? $(COMMA) $(LISTFILE)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+6
View File
@@ -0,0 +1,6 @@
USEUNIT("..\lib\xmlparse.c");
USEUNIT("..\lib\xmlrole.c");
USEUNIT("..\lib\xmltok.c");
USEDEF("libexpatw_mtd.def");
//---------------------------------------------------------------------------
#define DllEntryPoint
+146
View File
@@ -0,0 +1,146 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\libexpatw_mtd.dll"/>
<OBJFILES value="Release\obj\libexpatw\xmlparse.obj Release\obj\libexpatw\xmlrole.obj
Release\obj\libexpatw\xmltok.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value="libexpatw_mtd.def"/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value=""/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi"/>
<PATHCPP value=".;..\lib"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="ilink32"/>
<USERDEFINES value="_WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="expatw.bpf"/>
<INCLUDEPATH value="..\lib;$(BCB)\include"/>
<LIBPATH value="..\lib;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-rch -w-par -w-8027 -w-8026 -w-ccc"/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-WD -O2 -X- -a8 -b -k- -vi -q -tWM -c -tWD"/>
<PFLAGS value="-N2Release\obj\libexpatw -N0Release\obj\libexpatw -$Y- -$L- -$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="-IRelease\obj\libexpatw -D&quot;&quot; -aa -Tpd -x -Gn -Gi -w -q"/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0d32w.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=4
Item0=..\lib;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=5
Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=9
Item0=_WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
Item2=_WINDOWS;WIN32;NDEBUG;_DEBUG;_USRDLL;EXPAT_EXPORTS;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T
Item3=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_USRDLL;EXPAT_EXPORTS;_DEBUG;XML_UNICODE_WCHAR_T
Item4=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T;_DEBUG
Item5=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_UNICODE;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T;_DEBUG
Item6=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_UNICODE;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
Item7=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T;XML_UNICODE
Item8=NDEBUG;COMPILED_FROM_DSP;WIN32;_WINDOWS;_MBCS;_USRDLL;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
[HistoryLists\hlIntOutputDir]
Count=8
Item0=Release\obj\libexpatw
Item1=Release\obj\libexpat
Item2=Release\obj\mtd
Item3=Release\obj\mt
Item4=Release_w\obj
Item5=Release-w\obj
Item6=Release-w
Item7=..\lib\Release-w
[HistoryLists\hlFinalOutputDir]
Count=5
Item0=Release\
Item1=Release
Item2=Release_w\
Item3=Release-w\
Item4=Release-w
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+187
View File
@@ -0,0 +1,187 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\libexpatw_mtd.dll
OBJFILES = Release\obj\libexpatw\xmlparse.obj Release\obj\libexpatw\xmlrole.obj \
Release\obj\libexpatw\xmltok.obj
RESFILES =
MAINSOURCE = expatw.bpf
RESDEPEN = $(RESFILES)
LIBFILES =
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES = VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi \
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi \
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi \
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi
SPARELIBS =
DEFFILE = libexpatw_mtd.def
# ---------------------------------------------------------------------------
PATHCPP = .;..\lib
PATHASM = .;
PATHPAS = .;
PATHRC = .;
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = _WINDOWS;WIN32;NDEBUG;_USRDLL;COMPILED_FROM_DSP;EXPAT_EXPORTS;XML_UNICODE_WCHAR_T
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\lib;$(BCB)\include
LIBPATH = ..\lib;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS= -w-rch -w-par -w-8027 -w-8026 -w-ccc
# ---------------------------------------------------------------------------
CFLAG1 = -WD -O2 -X- -a8 -b -k- -vi -q -tWM -c -tWD
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\libexpatw -N0Release\obj\libexpatw -$Y- -$L- -$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS = -IRelease\obj\libexpatw -D"" -aa -Tpd -x -Gn -Gi -w -q
# ---------------------------------------------------------------------------
ALLOBJ = c0d32w.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = ilink32
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) @&&!
$(LFLAGS) -L$(LIBPATH) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+5
View File
@@ -0,0 +1,5 @@
USEUNIT("..\lib\xmlparse.c");
USEUNIT("..\lib\xmlrole.c");
USEUNIT("..\lib\xmltok.c");
//---------------------------------------------------------------------------
#define Library
+152
View File
@@ -0,0 +1,152 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\libexpatws_mtd.lib"/>
<OBJFILES value="Release\obj\libexpatw_static\xmlparse.obj
Release\obj\libexpatw_static\xmlrole.obj
Release\obj\libexpatw_static\xmltok.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value=""/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value=""/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value=""/>
<PATHCPP value=".;..\lib"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="TLib"/>
<USERDEFINES value="_WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="expatw_static.bpf"/>
<INCLUDEPATH value="..\lib;$(BCB)\include"/>
<LIBPATH value="..\lib;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-rch -w-par -w-8027 -w-8026 -w-ccc"/>
<LISTFILE value=""/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-O2 -X- -a8 -b -k- -vi -q -tWM -c"/>
<PFLAGS value="-N2Release\obj\libexpatw_static -N0Release\obj\libexpatw_static -$Y- -$L-
-$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value=""/>
</OPTIONS>
<LINKER>
<ALLOBJ value="$(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES)"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=4
Item0=..\lib;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=5
Item0=..\lib;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\lib;$(BCB)\lib;..\lib\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=15
Item0=_WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
Item1=_WINDOWS;WIN32;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
Item2=WIN32;_WINDOWS;NDEBUG;_DEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
Item3=WIN32;_WINDOWS;NDEBUG;_DEBUG;_LIB;XML_STATIC;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T
Item4=WIN32;_WINDOWS;NDEBUG;_LIB;COMPILED_FROM_DSP;_DEBUG;XML_UNICODE_WCHAR_T
Item5=WIN32;_WINDOWS;NDEBUG;_UNICODE;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG
Item6=WIN32;_WINDOWS;NDEBUG;_UNICODE;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG;__cplusplus
Item7=WIN32;_WINDOWS;NDEBUG;_UNICODE;_LIB;COMPILED_FROM_DSP;XML_UNICODE;_DEBUG
Item8=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE;_DEBUG
Item9=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG;__WCHAR_T
Item10=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG;_UNICODE
Item11=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE;_DEBUG;_UNICODE
Item12=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;_DEBUG
Item13=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T
Item14=WIN32;_WINDOWS;NDEBUG;_MBCS;_LIB;COMPILED_FROM_DSP;XML_UNICODE_WCHAR_T;XML_UNICODE
[HistoryLists\hlIntOutputDir]
Count=6
Item0=Release\obj\libexpatw_static
Item1=Release\obj\libexpat_static
Item2=Release\obj\mts
Item3=Release\obj\mt
Item4=..\lib\Release-w_static
Item5=Release-w_static
[HistoryLists\hlFinalOutputDir]
Count=3
Item0=Release\
Item1=Release
Item2=Release-w_static\
[HistoryLists\hlTlibPageSize]
Count=1
Item0=0x0010
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+190
View File
@@ -0,0 +1,190 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\libexpatws_mtd.lib
OBJFILES = Release\obj\libexpatw_static\xmlparse.obj \
Release\obj\libexpatw_static\xmlrole.obj \
Release\obj\libexpatw_static\xmltok.obj
RESFILES =
MAINSOURCE = expatw_static.bpf
RESDEPEN = $(RESFILES)
LIBFILES =
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES =
SPARELIBS =
DEFFILE =
# ---------------------------------------------------------------------------
PATHCPP = .;..\lib
PATHASM = .;
PATHPAS = .;
PATHRC = .;
LINKER = TLib
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = _WINDOWS;WIN32;NDEBUG;_LIB;COMPILED_FROM_DSP;XML_STATIC;XML_UNICODE_WCHAR_T
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\lib;$(BCB)\include
LIBPATH = ..\lib;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS = -w-rch -w-par -w-8027 -w-8026 -w-ccc
LISTFILE =
# ---------------------------------------------------------------------------
CFLAG1 = -O2 -X- -a8 -b -k- -vi -q -tWM -c
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\libexpatw_static -N0Release\obj\libexpatw_static -$Y- -$L- \
-$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS =
# ---------------------------------------------------------------------------
ALLOBJ = $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES)
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = TLib
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
!if "$(LISTFILE)" == ""
COMMA =
!else
COMMA = ,
!endif
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) /u $@ @&&!
$(LFLAGS) $? $(COMMA) $(LISTFILE)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+133
View File
@@ -0,0 +1,133 @@
; DEF file for BCB5
LIBRARY LIBEXPAT_MTD
DESCRIPTION "Implements an XML parser."
EXPORTS
_XML_DefaultCurrent @1
_XML_ErrorString @2
_XML_ExpatVersion @3
_XML_ExpatVersionInfo @4
_XML_ExternalEntityParserCreate @5
_XML_GetBase @6
_XML_GetBuffer @7
_XML_GetCurrentByteCount @8
_XML_GetCurrentByteIndex @9
_XML_GetCurrentColumnNumber @10
_XML_GetCurrentLineNumber @11
_XML_GetErrorCode @12
_XML_GetIdAttributeIndex @13
_XML_GetInputContext @14
_XML_GetSpecifiedAttributeCount @15
_XML_Parse @16
_XML_ParseBuffer @17
_XML_ParserCreate @18
_XML_ParserCreateNS @19
_XML_ParserCreate_MM @20
_XML_ParserFree @21
_XML_SetAttlistDeclHandler @22
_XML_SetBase @23
_XML_SetCdataSectionHandler @24
_XML_SetCharacterDataHandler @25
_XML_SetCommentHandler @26
_XML_SetDefaultHandler @27
_XML_SetDefaultHandlerExpand @28
_XML_SetDoctypeDeclHandler @29
_XML_SetElementDeclHandler @30
_XML_SetElementHandler @31
_XML_SetEncoding @32
_XML_SetEndCdataSectionHandler @33
_XML_SetEndDoctypeDeclHandler @34
_XML_SetEndElementHandler @35
_XML_SetEndNamespaceDeclHandler @36
_XML_SetEntityDeclHandler @37
_XML_SetExternalEntityRefHandler @38
_XML_SetExternalEntityRefHandlerArg @39
_XML_SetNamespaceDeclHandler @40
_XML_SetNotStandaloneHandler @41
_XML_SetNotationDeclHandler @42
_XML_SetParamEntityParsing @43
_XML_SetProcessingInstructionHandler @44
_XML_SetReturnNSTriplet @45
_XML_SetStartCdataSectionHandler @46
_XML_SetStartDoctypeDeclHandler @47
_XML_SetStartElementHandler @48
_XML_SetStartNamespaceDeclHandler @49
_XML_SetUnknownEncodingHandler @50
_XML_SetUnparsedEntityDeclHandler @51
_XML_SetUserData @52
_XML_SetXmlDeclHandler @53
_XML_UseParserAsHandlerArg @54
; added with version 1.95.3
_XML_ParserReset @55
_XML_SetSkippedEntityHandler @56
; added with version 1.95.5
_XML_GetFeatureList @57
_XML_UseForeignDTD @58
; added with version 1.95.6
_XML_FreeContentModel @59
_XML_MemMalloc @60
_XML_MemRealloc @61
_XML_MemFree @62
; Aliases for MS compatible names
XML_DefaultCurrent = _XML_DefaultCurrent
XML_ErrorString = _XML_ErrorString
XML_ExpatVersion = _XML_ExpatVersion
XML_ExpatVersionInfo = _XML_ExpatVersionInfo
XML_ExternalEntityParserCreate = _XML_ExternalEntityParserCreate
XML_GetBase = _XML_GetBase
XML_GetBuffer = _XML_GetBuffer
XML_GetCurrentByteCount = _XML_GetCurrentByteCount
XML_GetCurrentByteIndex = _XML_GetCurrentByteIndex
XML_GetCurrentColumnNumber = _XML_GetCurrentColumnNumber
XML_GetCurrentLineNumber = _XML_GetCurrentLineNumber
XML_GetErrorCode = _XML_GetErrorCode
XML_GetIdAttributeIndex = _XML_GetIdAttributeIndex
XML_GetInputContext = _XML_GetInputContext
XML_GetSpecifiedAttributeCount = _XML_GetSpecifiedAttributeCount
XML_Parse = _XML_Parse
XML_ParseBuffer = _XML_ParseBuffer
XML_ParserCreate = _XML_ParserCreate
XML_ParserCreateNS = _XML_ParserCreateNS
XML_ParserCreate_MM = _XML_ParserCreate_MM
XML_ParserFree = _XML_ParserFree
XML_SetAttlistDeclHandler = _XML_SetAttlistDeclHandler
XML_SetBase = _XML_SetBase
XML_SetCdataSectionHandler = _XML_SetCdataSectionHandler
XML_SetCharacterDataHandler = _XML_SetCharacterDataHandler
XML_SetCommentHandler = _XML_SetCommentHandler
XML_SetDefaultHandler = _XML_SetDefaultHandler
XML_SetDefaultHandlerExpand = _XML_SetDefaultHandlerExpand
XML_SetDoctypeDeclHandler = _XML_SetDoctypeDeclHandler
XML_SetElementDeclHandler = _XML_SetElementDeclHandler
XML_SetElementHandler = _XML_SetElementHandler
XML_SetEncoding = _XML_SetEncoding
XML_SetEndCdataSectionHandler = _XML_SetEndCdataSectionHandler
XML_SetEndDoctypeDeclHandler = _XML_SetEndDoctypeDeclHandler
XML_SetEndElementHandler = _XML_SetEndElementHandler
XML_SetEndNamespaceDeclHandler = _XML_SetEndNamespaceDeclHandler
XML_SetEntityDeclHandler = _XML_SetEntityDeclHandler
XML_SetExternalEntityRefHandler = _XML_SetExternalEntityRefHandler
XML_SetExternalEntityRefHandlerArg = _XML_SetExternalEntityRefHandlerArg
XML_SetNamespaceDeclHandler = _XML_SetNamespaceDeclHandler
XML_SetNotStandaloneHandler = _XML_SetNotStandaloneHandler
XML_SetNotationDeclHandler = _XML_SetNotationDeclHandler
XML_SetParamEntityParsing = _XML_SetParamEntityParsing
XML_SetProcessingInstructionHandler = _XML_SetProcessingInstructionHandler
XML_SetReturnNSTriplet = _XML_SetReturnNSTriplet
XML_SetStartCdataSectionHandler = _XML_SetStartCdataSectionHandler
XML_SetStartDoctypeDeclHandler = _XML_SetStartDoctypeDeclHandler
XML_SetStartElementHandler = _XML_SetStartElementHandler
XML_SetStartNamespaceDeclHandler = _XML_SetStartNamespaceDeclHandler
XML_SetUnknownEncodingHandler = _XML_SetUnknownEncodingHandler
XML_SetUnparsedEntityDeclHandler = _XML_SetUnparsedEntityDeclHandler
XML_SetUserData = _XML_SetUserData
XML_SetXmlDeclHandler = _XML_SetXmlDeclHandler
XML_UseParserAsHandlerArg = _XML_UseParserAsHandlerArg
XML_ParserReset = _XML_ParserReset
XML_SetSkippedEntityHandler = _XML_SetSkippedEntityHandler
XML_GetFeatureList = _XML_GetFeatureList
XML_UseForeignDTD = _XML_UseForeignDTD
XML_FreeContentModel = _XML_FreeContentModel
XML_MemMalloc = _XML_MemMalloc
XML_MemRealloc = _XML_MemRealloc
XML_MemFree = _XML_MemFree
+133
View File
@@ -0,0 +1,133 @@
; DEF file for BCB5
LIBRARY LIBEXPATW_MTD
DESCRIPTION "Implements an XML parser."
EXPORTS
_XML_DefaultCurrent @1
_XML_ErrorString @2
_XML_ExpatVersion @3
_XML_ExpatVersionInfo @4
_XML_ExternalEntityParserCreate @5
_XML_GetBase @6
_XML_GetBuffer @7
_XML_GetCurrentByteCount @8
_XML_GetCurrentByteIndex @9
_XML_GetCurrentColumnNumber @10
_XML_GetCurrentLineNumber @11
_XML_GetErrorCode @12
_XML_GetIdAttributeIndex @13
_XML_GetInputContext @14
_XML_GetSpecifiedAttributeCount @15
_XML_Parse @16
_XML_ParseBuffer @17
_XML_ParserCreate @18
_XML_ParserCreateNS @19
_XML_ParserCreate_MM @20
_XML_ParserFree @21
_XML_SetAttlistDeclHandler @22
_XML_SetBase @23
_XML_SetCdataSectionHandler @24
_XML_SetCharacterDataHandler @25
_XML_SetCommentHandler @26
_XML_SetDefaultHandler @27
_XML_SetDefaultHandlerExpand @28
_XML_SetDoctypeDeclHandler @29
_XML_SetElementDeclHandler @30
_XML_SetElementHandler @31
_XML_SetEncoding @32
_XML_SetEndCdataSectionHandler @33
_XML_SetEndDoctypeDeclHandler @34
_XML_SetEndElementHandler @35
_XML_SetEndNamespaceDeclHandler @36
_XML_SetEntityDeclHandler @37
_XML_SetExternalEntityRefHandler @38
_XML_SetExternalEntityRefHandlerArg @39
_XML_SetNamespaceDeclHandler @40
_XML_SetNotStandaloneHandler @41
_XML_SetNotationDeclHandler @42
_XML_SetParamEntityParsing @43
_XML_SetProcessingInstructionHandler @44
_XML_SetReturnNSTriplet @45
_XML_SetStartCdataSectionHandler @46
_XML_SetStartDoctypeDeclHandler @47
_XML_SetStartElementHandler @48
_XML_SetStartNamespaceDeclHandler @49
_XML_SetUnknownEncodingHandler @50
_XML_SetUnparsedEntityDeclHandler @51
_XML_SetUserData @52
_XML_SetXmlDeclHandler @53
_XML_UseParserAsHandlerArg @54
; added with version 1.95.3
_XML_ParserReset @55
_XML_SetSkippedEntityHandler @56
; added with version 1.95.5
_XML_GetFeatureList @57
_XML_UseForeignDTD @58
; added with version 1.95.6
_XML_FreeContentModel @59
_XML_MemMalloc @60
_XML_MemRealloc @61
_XML_MemFree @62
; Aliases for MS compatible names
XML_DefaultCurrent = _XML_DefaultCurrent
XML_ErrorString = _XML_ErrorString
XML_ExpatVersion = _XML_ExpatVersion
XML_ExpatVersionInfo = _XML_ExpatVersionInfo
XML_ExternalEntityParserCreate = _XML_ExternalEntityParserCreate
XML_GetBase = _XML_GetBase
XML_GetBuffer = _XML_GetBuffer
XML_GetCurrentByteCount = _XML_GetCurrentByteCount
XML_GetCurrentByteIndex = _XML_GetCurrentByteIndex
XML_GetCurrentColumnNumber = _XML_GetCurrentColumnNumber
XML_GetCurrentLineNumber = _XML_GetCurrentLineNumber
XML_GetErrorCode = _XML_GetErrorCode
XML_GetIdAttributeIndex = _XML_GetIdAttributeIndex
XML_GetInputContext = _XML_GetInputContext
XML_GetSpecifiedAttributeCount = _XML_GetSpecifiedAttributeCount
XML_Parse = _XML_Parse
XML_ParseBuffer = _XML_ParseBuffer
XML_ParserCreate = _XML_ParserCreate
XML_ParserCreateNS = _XML_ParserCreateNS
XML_ParserCreate_MM = _XML_ParserCreate_MM
XML_ParserFree = _XML_ParserFree
XML_SetAttlistDeclHandler = _XML_SetAttlistDeclHandler
XML_SetBase = _XML_SetBase
XML_SetCdataSectionHandler = _XML_SetCdataSectionHandler
XML_SetCharacterDataHandler = _XML_SetCharacterDataHandler
XML_SetCommentHandler = _XML_SetCommentHandler
XML_SetDefaultHandler = _XML_SetDefaultHandler
XML_SetDefaultHandlerExpand = _XML_SetDefaultHandlerExpand
XML_SetDoctypeDeclHandler = _XML_SetDoctypeDeclHandler
XML_SetElementDeclHandler = _XML_SetElementDeclHandler
XML_SetElementHandler = _XML_SetElementHandler
XML_SetEncoding = _XML_SetEncoding
XML_SetEndCdataSectionHandler = _XML_SetEndCdataSectionHandler
XML_SetEndDoctypeDeclHandler = _XML_SetEndDoctypeDeclHandler
XML_SetEndElementHandler = _XML_SetEndElementHandler
XML_SetEndNamespaceDeclHandler = _XML_SetEndNamespaceDeclHandler
XML_SetEntityDeclHandler = _XML_SetEntityDeclHandler
XML_SetExternalEntityRefHandler = _XML_SetExternalEntityRefHandler
XML_SetExternalEntityRefHandlerArg = _XML_SetExternalEntityRefHandlerArg
XML_SetNamespaceDeclHandler = _XML_SetNamespaceDeclHandler
XML_SetNotStandaloneHandler = _XML_SetNotStandaloneHandler
XML_SetNotationDeclHandler = _XML_SetNotationDeclHandler
XML_SetParamEntityParsing = _XML_SetParamEntityParsing
XML_SetProcessingInstructionHandler = _XML_SetProcessingInstructionHandler
XML_SetReturnNSTriplet = _XML_SetReturnNSTriplet
XML_SetStartCdataSectionHandler = _XML_SetStartCdataSectionHandler
XML_SetStartDoctypeDeclHandler = _XML_SetStartDoctypeDeclHandler
XML_SetStartElementHandler = _XML_SetStartElementHandler
XML_SetStartNamespaceDeclHandler = _XML_SetStartNamespaceDeclHandler
XML_SetUnknownEncodingHandler = _XML_SetUnknownEncodingHandler
XML_SetUnparsedEntityDeclHandler = _XML_SetUnparsedEntityDeclHandler
XML_SetUserData = _XML_SetUserData
XML_SetXmlDeclHandler = _XML_SetXmlDeclHandler
XML_UseParserAsHandlerArg = _XML_UseParserAsHandlerArg
XML_ParserReset = _XML_ParserReset
XML_SetSkippedEntityHandler = _XML_SetSkippedEntityHandler
XML_GetFeatureList = _XML_GetFeatureList
XML_UseForeignDTD = _XML_UseForeignDTD
XML_FreeContentModel = _XML_FreeContentModel
XML_MemMalloc = _XML_MemMalloc
XML_MemRealloc = _XML_MemRealloc
XML_MemFree = _XML_MemFree
+37
View File
@@ -0,0 +1,37 @@
all: setup expat expatw expat_static expatw_static elements outline xmlwf
setup:
setup
expat:
make -l -fexpat.mak
expatw:
make -l -fexpatw.mak
expat_static:
make -l -fexpat_static.mak
expatw_static:
make -l -fexpatw_static.mak
elements:
make -l -felements.mak
outline:
make -l -foutline.mak
xmlwf:
make -l -fxmlwf.mak
clean:
# works on Win98/ME
# deltree /y release\obj
# works on WinNT/2000
del /s/f/q release\obj
distclean:
# works on Win98/ME
# deltree /y release\*.*
# works on WinNT/2000
del /s/f/q release\*
+4
View File
@@ -0,0 +1,4 @@
USEUNIT("..\examples\outline.c");
USELIB("Release\libexpat_mtd.lib");
//---------------------------------------------------------------------------
main
+132
View File
@@ -0,0 +1,132 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\outline.exe"/>
<OBJFILES value="Release\obj\examples\outline.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value=""/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value="Release\libexpat_mtd.lib"/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi"/>
<PATHCPP value=".;..\examples"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="ilink32"/>
<USERDEFINES value="WIN32;NDEBUG;_CONSOLE"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="outline.bpf"/>
<INCLUDEPATH value="..\examples;$(BCB)\include"/>
<LIBPATH value="..\examples;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-par -w-8027 -w-8026"/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-O2 -X- -a8 -b -k- -vi -q -tWM -I..\lib -c"/>
<PFLAGS value="-N2Release\obj\examples -N0Release\obj\examples -$Y- -$L- -$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="-IRelease\obj\examples -D&quot;&quot; -ap -Tpe -x -Gn -q"/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0x32.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=3
Item0=..\examples;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=4
Item0=..\examples;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\examples;$(BCB)\lib;..\examples\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=6
Item0=WIN32;NDEBUG;_CONSOLE
Item1=WIN32;NDEBUG;_CONSOLE;XML_STATIC
Item2=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_STATIC
Item3=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE;XML_STATIC
Item4=WIN32;NDEBUG;_CONSOLE;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
Item5=WIN32;NDEBUG;_CONSOLE;_DEBUG
[HistoryLists\hlIntOutputDir]
Count=4
Item0=Release\obj\examples
Item1=Release\obj\outline
Item2=..\examples\Release
Item3=Release
[HistoryLists\hlFinalOutputDir]
Count=1
Item0=Release\
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+186
View File
@@ -0,0 +1,186 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\outline.exe
OBJFILES = Release\obj\examples\outline.obj
RESFILES =
MAINSOURCE = outline.bpf
RESDEPEN = $(RESFILES)
LIBFILES = Release\libexpat_mtd.lib
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES = VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi \
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi \
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi \
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi
SPARELIBS =
DEFFILE =
# ---------------------------------------------------------------------------
PATHCPP = .;..\examples
PATHASM = .;
PATHPAS = .;
PATHRC = .;
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = WIN32;NDEBUG;_CONSOLE
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\examples;$(BCB)\include
LIBPATH = ..\examples;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS= -w-par -w-8027 -w-8026
# ---------------------------------------------------------------------------
CFLAG1 = -O2 -X- -a8 -b -k- -vi -q -tWM -I..\lib -c
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\examples -N0Release\obj\examples -$Y- -$L- -$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS = -IRelease\obj\examples -D"" -ap -Tpe -x -Gn -q
# ---------------------------------------------------------------------------
ALLOBJ = c0x32.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = ilink32
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) @&&!
$(LFLAGS) -L$(LIBPATH) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+9
View File
@@ -0,0 +1,9 @@
REM CommandInterpreter: $(COMSPEC)
if not exist .\release\nul mkdir release
if not exist .\release\obj\nul mkdir release\obj
if not exist .\release\obj\libexpat\nul mkdir release\obj\libexpat
if not exist .\release\obj\libexpatw\nul mkdir release\obj\libexpatw
if not exist .\release\obj\libexpat_static\nul mkdir release\obj\libexpat_static
if not exist .\release\obj\libexpatw_static\nul mkdir release\obj\libexpatw_static
if not exist .\release\obj\examples\nul mkdir release\obj\examples
if not exist .\release\obj\xmlwf\nul mkdir release\obj\xmlwf
+7
View File
@@ -0,0 +1,7 @@
USEUNIT("..\xmlwf\codepage.c");
USEUNIT("..\xmlwf\win32filemap.c");
USEUNIT("..\xmlwf\xmlfile.c");
USEUNIT("..\xmlwf\xmlwf.c");
USELIB("Release\libexpat_mtd.lib");
//---------------------------------------------------------------------------
main
+136
View File
@@ -0,0 +1,136 @@
<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
<VERSION value="BCB.05.03"/>
<PROJECT value="Release\xmlwf.exe"/>
<OBJFILES value="Release\obj\xmlwf\codepage.obj Release\obj\xmlwf\win32filemap.obj
Release\obj\xmlwf\xmlfile.obj Release\obj\xmlwf\xmlwf.obj"/>
<RESFILES value=""/>
<IDLFILES value=""/>
<IDLGENFILES value=""/>
<DEFFILE value=""/>
<RESDEPEN value="$(RESFILES)"/>
<LIBFILES value="Release\libexpat_mtd.lib"/>
<LIBRARIES value=""/>
<SPARELIBS value=""/>
<PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi"/>
<PATHCPP value=".;..\xmlwf"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="ilink32"/>
<USERDEFINES value="NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP"/>
<SYSDEFINES value="_NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL"/>
<MAINSOURCE value="xmlwf.bpf"/>
<INCLUDEPATH value="..\xmlwf;$(BCB)\include"/>
<LIBPATH value="..\xmlwf;$(BCB)\lib;$(RELEASELIBPATH)"/>
<WARNINGS value="-w-8065 -w-par -w-8027 -w-8026"/>
</MACROS>
<OPTIONS>
<IDLCFLAGS value="-I$(BCB)\include"/>
<CFLAG1 value="-O2 -X- -a8 -b -k- -vi -q -tWM -I..\lib -c"/>
<PFLAGS value="-N2Release\obj\xmlwf -N0Release\obj\xmlwf -$Y- -$L- -$D-"/>
<RFLAGS value="/l 0x409 /d &quot;NDEBUG&quot; /i$(BCB)\include"/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="-IRelease\obj\xmlwf -D&quot;&quot; -ap -Tpe -x -Gn -q"/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0x32.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
</LINKER>
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1033
CodePage=1252
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlIncludePath]
Count=4
Item0=..\xmlwf;$(BCB)\include
Item1=$(BCB)\include
Item2=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
Item3=$(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl;
[HistoryLists\hlLibraryPath]
Count=5
Item0=..\xmlwf;$(BCB)\lib;$(RELEASELIBPATH)
Item1=..\xmlwf;$(BCB)\lib;..\xmlwf\$(RELEASELIBPATH)
Item2=$(BCB)\lib;$(RELEASELIBPATH)
Item3=$(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
Item4=$(BCB)\lib;$(RELEASELIBPATH);;$(BCB)\lib\psdk;
[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl
[HistoryLists\hlConditionals]
Count=6
Item0=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP
Item1=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;XML_UNICODE_WCHAR_T;_UNICODE
Item2=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;XML_UNICODE_WCHAR_T
Item3=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG
Item4=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;_UNICODE;XML_UNICODE_WCHAR_T
Item5=NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP;_DEBUG;_UNICODE
[HistoryLists\hlIntOutputDir]
Count=3
Item0=Release\obj\xmlwf
Item1=..\xmlwf\Release
Item2=Release
[HistoryLists\hlFinalOutputDir]
Count=3
Item0=Release\
Item1=Release
Item2=.\Release\
[Debugging]
DebugSourceDirs=
[Parameters]
RunParams=sample.xml
HostApplication=
RemoteHost=
RemotePath=
RemoteDebug=0
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
</PROJECT>@
+187
View File
@@ -0,0 +1,187 @@
# ---------------------------------------------------------------------------
!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif
# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------
VERSION = BCB.05.03
# ---------------------------------------------------------------------------
PROJECT = Release\xmlwf.exe
OBJFILES = Release\obj\xmlwf\codepage.obj Release\obj\xmlwf\win32filemap.obj \
Release\obj\xmlwf\xmlfile.obj Release\obj\xmlwf\xmlwf.obj
RESFILES =
MAINSOURCE = xmlwf.bpf
RESDEPEN = $(RESFILES)
LIBFILES = Release\libexpat_mtd.lib
IDLFILES =
IDLGENFILES =
LIBRARIES =
PACKAGES = VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi \
ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi \
VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi \
dclocx50.bpi bcb2kaxserver50.bpi dclusr50.bpi
SPARELIBS =
DEFFILE =
# ---------------------------------------------------------------------------
PATHCPP = .;..\xmlwf
PATHASM = .;
PATHPAS = .;
PATHRC = .;
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
USERDEFINES = NDEBUG;WIN32;_CONSOLE;COMPILED_FROM_DSP
SYSDEFINES = _NO_VCL;_ASSERTE;NO_STRICT;_RTLDLL
INCLUDEPATH = ..\xmlwf;$(BCB)\include
LIBPATH = ..\xmlwf;$(BCB)\lib;$(RELEASELIBPATH)
WARNINGS= -w-8065 -w-par -w-8027 -w-8026
# ---------------------------------------------------------------------------
CFLAG1 = -O2 -X- -a8 -b -k- -vi -q -tWM -I..\lib -c
IDLCFLAGS = -I$(BCB)\include
PFLAGS = -N2Release\obj\xmlwf -N0Release\obj\xmlwf -$Y- -$L- -$D-
RFLAGS = /l 0x409 /d "NDEBUG" /i$(BCB)\include
AFLAGS = /mx /w2 /zn
LFLAGS = -IRelease\obj\xmlwf -D"" -ap -Tpe -x -Gn -q
# ---------------------------------------------------------------------------
ALLOBJ = c0x32.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[Debugging]
DebugSourceDirs=$(BCB)\source\vcl
!endif
# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE. It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------
.autodepend
# ---------------------------------------------------------------------------
!if "$(USERDEFINES)" != ""
AUSERDEFINES = -d$(USERDEFINES:;= -d)
!else
AUSERDEFINES =
!endif
!if !$d(BCC32)
BCC32 = bcc32
!endif
!if !$d(CPP32)
CPP32 = cpp32
!endif
!if !$d(DCC32)
DCC32 = dcc32
!endif
!if !$d(TASM32)
TASM32 = tasm32
!endif
!if !$d(LINKER)
LINKER = ilink32
!endif
!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C = $(PATHCPP)
!endif
!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif
!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif
!if $d(PATHRC)
.PATH.RC = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
$(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(BCB)\BIN\$(LINKER) @&&!
$(LFLAGS) -L$(LIBPATH) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!
# ---------------------------------------------------------------------------
.pas.hpp:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
# ---------------------------------------------------------------------------
+102
View File
@@ -0,0 +1,102 @@
#! /bin/sh
#--------------------------------------------------------------------------
# autoconf 2.52 or newer
#
ac_version="`${AUTOCONF:-autoconf} --version 2> /dev/null | head -1 | sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`"
if test -z "$ac_version"; then
echo "ERROR: autoconf not found."
echo " You need autoconf version 2.52 or newer installed."
exit 1
fi
IFS=.; set $ac_version; IFS=' '
if test "$1" = "2" -a "$2" -lt "52" || test "$1" -lt "2"; then
echo "ERROR: autoconf version $ac_version found."
echo " You need autoconf version 2.52 or newer installed."
exit 1
fi
echo "found: autoconf version $ac_version (ok)"
#--------------------------------------------------------------------------
# libtool 1.4 or newer
#
#
# find libtoolize, or glibtoolize on MacOS X
#
libtoolize=`conftools/PrintPath glibtoolize libtoolize`
if [ "x$libtoolize" = "x" ]; then
echo "ERROR: libtoolize not found."
echo " You need libtool version 1.4 or newer installed"
exit 1
fi
lt_pversion="`$libtoolize --version 2> /dev/null | sed -e 's/^[^0-9]*//'`"
# convert something like 1.4p1 to 1.4.p1
lt_version="`echo $lt_pversion | sed -e 's/\([a-z]*\)$/.\1/'`"
IFS=.; set $lt_version; IFS=' '
if test "$1" = "1" -a "$2" -lt "4"; then
echo "ERROR: libtool version $lt_pversion found."
echo " You need libtool version 1.4 or newer installed"
exit 1
fi
echo "found: libtool version $lt_pversion (ok)"
#--------------------------------------------------------------------------
# Remove any libtool files so one can switch between libtool 1.3
# and libtool 1.4 by simply rerunning the buildconf script.
(cd conftools/; rm -f ltmain.sh ltconfig)
#
# Create the libtool helper files
#
echo "Copying libtool helper files ..."
#
# Note: we don't use --force (any more) since we have a special
# config.guess/config.sub that we want to ensure is used.
#
# --copy to avoid symlinks; we want originals for the distro
# --automake to make it shut up about "things to do"
#
$libtoolize --copy --automake
#
# Find the libtool.m4 file. The developer/packager can set the LIBTOOL_M4
# environment variable to specify its location. If that variable is not
# set, then we'll assume a "standard" libtool installation and try to
# derive its location.
#
ltpath=`dirname $libtoolize`
ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
cp $ltfile conftools/libtool.m4
echo "Using libtool.m4 from ${ltfile}."
#--------------------------------------------------------------------------
### for a little while... remove stray aclocal.m4 files from
### developers' working copies. we no longer use it. (nothing else
### will remove it, and leaving it creates big problems)
rm -f aclocal.m4
#
# Generate the autoconf header template (expat_config.h.in) and ./configure
#
echo "Creating expat_config.h.in ..."
${AUTOHEADER:-autoheader}
echo "Creating configure ..."
### do some work to toss config.cache?
${AUTOCONF:-autoconf}
# toss this; it gets created by autoconf on some systems
rm -rf autom4te*.cache
# exit with the right value, so any calling script can continue
exit 0
+124
View File
@@ -0,0 +1,124 @@
dnl configuration script for expat
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright 2000 Clark Cooper
dnl
dnl This file is part of EXPAT.
dnl
dnl EXPAT is free software; you can redistribute it and/or modify it
dnl under the terms of the License (based on the MIT/X license) contained
dnl in the file COPYING that comes with this distribution.
dnl
dnl Ensure that Expat is configured with autoconf 2.52 or newer
AC_PREREQ(2.52)
dnl Get the version number of Expat, using m4's esyscmd() command to run
dnl the command at m4-generation time. This allows us to create an m4
dnl symbol holding the correct version number. AC_INIT() requires the
dnl version number at m4-time, rather than when ./configure is run, so
dnl all this must happen as part of m4, not as part of the shell code
dnl contained in ./configure.
dnl
dnl NOTE: esyscmd() is a GNU M4 extension. Thus, we wrap it in an appropriate
dnl test. I believe this test will work, but I don't have a place with non-
dnl GNU M4 to test it right now.
define([expat_version], ifdef([__gnu__],
[esyscmd(conftools/get-version.sh lib/expat.h)],
[1.95.x]))
AC_INIT(expat, expat_version, expat-bugs@mail.libexpat.org)
undefine([expat_version])
AC_CONFIG_SRCDIR(Makefile.in)
AC_CONFIG_AUX_DIR(conftools)
dnl
dnl Increment LIBREVISION if source code has changed at all
dnl
dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
dnl
dnl If the API changes compatibly (i.e. simply adding a new function
dnl without changing or removing earlier interfaces), then increment LIBAGE.
dnl
dnl If the API changes incompatibly set LIBAGE back to 0
dnl
LIBCURRENT=5
LIBREVISION=0
LIBAGE=5
AC_CONFIG_HEADER(expat_config.h)
sinclude(conftools/libtool.m4)
sinclude(conftools/ac_c_bigendian_cross.m4)
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
AC_SUBST(LIBCURRENT)
AC_SUBST(LIBREVISION)
AC_SUBST(LIBAGE)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
if test "$GCC" = yes ; then
dnl
dnl Be careful about adding the -fexceptions option; some versions of
dnl GCC don't support it and it causes extra warnings that are only
dnl distracting; avoid.
dnl
OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
CFLAGS="$OLDCFLAGS -fexceptions"
AC_MSG_CHECKING(whether gcc accepts -fexceptions)
AC_TRY_COMPILE(,(void)1,
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS")
fi
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Note: Avoid using AC_C_BIGENDIAN because it does not
dnl work in a cross compile.
AC_C_BIGENDIAN_CROSS
AC_C_CONST
AC_TYPE_SIZE_T
AC_CHECK_FUNCS(memmove bcopy)
dnl Only needed for xmlwf:
AC_CHECK_HEADERS(fcntl.h unistd.h)
AC_TYPE_OFF_T
AC_FUNC_MMAP
if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
FILEMAP=unixfilemap
else
FILEMAP=readfilemap
fi
AC_SUBST(FILEMAP)
dnl Only needed for regression tests:
AC_CHECK_HEADERS(check.h)
dnl Some basic configuration:
AC_DEFINE([XML_NS], 1,
[Define to make XML Namespaces functionality available.])
AC_DEFINE([XML_DTD], 1,
[Define to make parameter entity parsing functionality available.])
AC_DEFINE([XML_CONTEXT_BYTES], 1024,
[Define to specify how much context to retain around the current parse point.])
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
abs_srcdir="`cd $srcdir && pwd`"
abs_builddir="`pwd`"
if test "$abs_srcdir" != "$abs_builddir"; then
make mkdir-init
fi
+3
View File
@@ -0,0 +1,3 @@
libtool.m4
ltconfig
ltmain.sh
+116
View File
@@ -0,0 +1,116 @@
#!/bin/sh
# Look for program[s] somewhere in $PATH.
#
# Options:
# -s
# Do not print out full pathname. (silent)
# -pPATHNAME
# Look in PATHNAME instead of $PATH
#
# Usage:
# PrintPath [-s] [-pPATHNAME] program [program ...]
#
# Initially written by Jim Jagielski for the Apache configuration mechanism
# (with kudos to Kernighan/Pike)
#
# This script falls under the Apache License.
# See http://www.apache.org/licenses/LICENSE
##
# Some "constants"
##
pathname=$PATH
echo="yes"
##
# Find out what OS we are running for later on
##
os=`(uname) 2>/dev/null`
##
# Parse command line
##
for args in $*
do
case $args in
-s ) echo="no" ;;
-p* ) pathname="`echo $args | sed 's/^..//'`" ;;
* ) programs="$programs $args" ;;
esac
done
##
# Now we make the adjustments required for OS/2 and everyone
# else :)
#
# First of all, all OS/2 programs have the '.exe' extension.
# Next, we adjust PATH (or what was given to us as PATH) to
# be whitespace seperated directories.
# Finally, we try to determine the best flag to use for
# test/[] to look for an executable file. OS/2 just has '-r'
# but with other OSs, we do some funny stuff to check to see
# if test/[] knows about -x, which is the prefered flag.
##
if [ "x$os" = "xOS/2" ]
then
ext=".exe"
pathname=`echo -E $pathname |
sed 's/^;/.;/
s/;;/;.;/g
s/;$/;./
s/;/ /g
s/\\\\/\\//g' `
test_exec_flag="-r"
else
ext="" # No default extensions
pathname=`echo $pathname |
sed 's/^:/.:/
s/::/:.:/g
s/:$/:./
s/:/ /g' `
# Here is how we test to see if test/[] can handle -x
testfile="pp.t.$$"
cat > $testfile <<ENDTEST
#!/bin/sh
if [ -x / ] || [ -x /bin ] || [ -x /bin/ls ]; then
exit 0
fi
exit 1
ENDTEST
if `/bin/sh $testfile 2>/dev/null`; then
test_exec_flag="-x"
else
test_exec_flag="-r"
fi
rm -f $testfile
fi
for program in $programs
do
for path in $pathname
do
if [ $test_exec_flag $path/${program}${ext} ] && \
[ ! -d $path/${program}${ext} ]; then
if [ "x$echo" = "xyes" ]; then
echo $path/${program}${ext}
fi
exit 0
fi
# Next try without extension (if one was used above)
if [ "x$ext" != "x" ]; then
if [ $test_exec_flag $path/${program} ] && \
[ ! -d $path/${program} ]; then
if [ "x$echo" = "xyes" ]; then
echo $path/${program}
fi
exit 0
fi
fi
done
done
exit 1
+81
View File
@@ -0,0 +1,81 @@
dnl @synopsis AC_C_BIGENDIAN_CROSS
dnl
dnl Check endianess even when crosscompiling
dnl (partially based on the original AC_C_BIGENDIAN).
dnl
dnl The implementation will create a binary, and instead of running
dnl the binary it will be grep'ed for some symbols that will look
dnl different for different endianess of the binary.
dnl
dnl @version $Id: ac_c_bigendian_cross.m4,v 1.1 2001/07/24 19:51:35 fdrake Exp $
dnl @author Guido Draheim <guidod@gmx.de>
dnl
AC_DEFUN([AC_C_BIGENDIAN_CROSS],
[AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian,
[ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/param.h>], [
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif], [# It does; now see whether it defined to BIG_ENDIAN or not.
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/param.h>], [
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)])
if test $ac_cv_c_bigendian = unknown; then
AC_TRY_RUN([main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes,
[ echo $ac_n "cross-compiling... " 2>&AC_FD_MSG ])
fi])
if test $ac_cv_c_bigendian = unknown; then
AC_MSG_CHECKING(to probe for byte ordering)
[
cat >conftest.c <<EOF
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
] if test -f conftest.c ; then
if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
if test `grep -l BIGenDianSyS conftest.o` ; then
echo $ac_n ' big endian probe OK, ' 1>&AC_FD_MSG
ac_cv_c_bigendian=yes
fi
if test `grep -l LiTTleEnDian conftest.o` ; then
echo $ac_n ' little endian probe OK, ' 1>&AC_FD_MSG
if test $ac_cv_c_bigendian = yes ; then
ac_cv_c_bigendian=unknown;
else
ac_cv_c_bigendian=no
fi
fi
echo $ac_n 'guessing bigendian ... ' >&AC_FD_MSG
fi
fi
AC_MSG_RESULT($ac_cv_c_bigendian)
fi
if test $ac_cv_c_bigendian = yes; then
AC_DEFINE(WORDS_BIGENDIAN, 1, [whether byteorder is bigendian])
BYTEORDER=4321
else
BYTEORDER=1234
fi
AC_DEFINE_UNQUOTED(BYTEORDER, $BYTEORDER, [1234 = LIL_ENDIAN, 4321 = BIGENDIAN])
if test $ac_cv_c_bigendian = unknown; then
AC_MSG_ERROR(unknown endianess - sorry, please pre-set ac_cv_c_bigendian)
fi
])
Vendored Executable
+1344
View File
File diff suppressed because it is too large Load Diff
Vendored Executable
+1507
View File
File diff suppressed because it is too large Load Diff
+43
View File
@@ -0,0 +1,43 @@
dnl Check if --with-expat[=PREFIX] is specified and
dnl Expat >= 1.95.0 is installed in the system.
dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to
dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX
dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined.
dnl If --with-expat has not been specified, set with_expat to 'no'.
dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly.
dnl This is necessary to adapt a whole lot of packages that have expat
dnl bundled as a static library.
AC_DEFUN(AM_WITH_EXPAT,
[ AC_ARG_WITH(expat,
[ --with-expat=PREFIX Use system Expat library],
, with_expat=no)
AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no)
EXPAT_CFLAGS=
EXPAT_LIBS=
if test $with_expat != no; then
if test $with_expat != yes; then
EXPAT_CFLAGS="-I$with_expat/include"
EXPAT_LIBS="-L$with_expat/lib"
fi
AC_CHECK_LIB(expat, XML_ParserCreate,
[ EXPAT_LIBS="$EXPAT_LIBS -lexpat"
expat_found=yes ],
[ expat_found=no ],
"$EXPAT_LIBS")
if test $expat_found = no; then
AC_MSG_ERROR([Could not find the Expat library])
fi
expat_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $EXPAT_CFLAGS"
AC_CHECK_HEADERS(expat.h, , expat_found=no)
if test $expat_found = no; then
AC_MSG_ERROR([Could not find expat.h])
fi
CFLAGS="$expat_save_CFLAGS"
fi
AC_SUBST(EXPAT_CFLAGS)
AC_SUBST(EXPAT_LIBS)
])
+46
View File
@@ -0,0 +1,46 @@
#!/bin/sh
#
# USAGE: get-version.sh path/to/expat.h
#
# This script will print Expat's version number on stdout. For example:
#
# $ ./conftools/get-version.sh ./lib/expat.h
# 1.95.3
# $
#
if test $# = 0; then
echo "ERROR: pathname for expat.h was not provided."
echo ""
echo "USAGE: $0 path/to/expat.h"
exit 1
fi
if test $# != 1; then
echo "ERROR: too many arguments were provided."
echo ""
echo "USAGE: $0 path/to/expat.h"
exit 1
fi
hdr="$1"
if test ! -r "$hdr"; then
echo "ERROR: '$hdr' does not exist, or is not readable."
exit 1
fi
MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`"
MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`"
MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`"
# Determine how to tell echo not to print the trailing \n. This is
# similar to Autoconf's @ECHO_C@ and @ECHO_N@; however, we don't
# generate this file via autoconf (in fact, get-version.sh is used
# to *create* ./configure), so we just do something similar inline.
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ;;
*c*,* ) ECHO_N=-n ECHO_C= ;;
*) ECHO_N= ECHO_C='\c' ;;
esac
echo $ECHO_N "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$ECHO_C"
+251
View File
@@ -0,0 +1,251 @@
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
chmodcmd=""
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0
+40
View File
@@ -0,0 +1,40 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here
-5
View File
@@ -1,5 +0,0 @@
@echo off
set LIB=..\xmlparse\Release;..\xmltok\Release;..\lib;%LIB%
set INCLUDE=..\xmlparse;..\xmltok;%INCLUDE%
set CL=/nologo /DXMLTOKAPI=__declspec(dllimport) /DXMLPARSEAPI=__declspec(dllimport) xmlparse.lib xmltok.lib
cl /Fe..\bin\demo demo.c
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

File diff suppressed because it is too large Load Diff
+90
View File
@@ -0,0 +1,90 @@
body {
background-color: white;
border: 0px;
margin: 0px;
padding: 0px;
}
.corner {
width: 200px;
height: 80px;
text-align: center;
}
.banner {
background-color: rgb(110,139,61);
color: rgb(255,236,176);
padding-left: 2em;
}
.banner h1 {
font-size: 200%;
}
.content {
padding: 0em 2em 1em 2em;
}
.releaseno {
background-color: rgb(110,139,61);
color: rgb(255,236,176);
padding-bottom: 0.3em;
padding-top: 0.5em;
text-align: center;
font-weight: bold;
}
.noborder {
border-width: 0px;
}
.eg {
padding-left: 1em;
padding-top: .5em;
padding-bottom: .5em;
border: solid thin;
margin: 1em 0;
background-color: tan;
margin-left: 2em;
margin-right: 10%;
}
.handler {
width: 100%;
border-top-width: thin;
margin-bottom: 1em;
}
.handler p {
margin-left: 2em;
}
.setter {
font-weight: bold;
}
.signature {
color: navy;
}
.fcndec {
width: 100%;
border-top-width: thin;
font-weight: bold;
}
.fcndef {
margin-left: 2em;
margin-bottom: 2em;
}
dd {
margin-bottom: 2em;
}
.cpp-symbols dt {
font-family: monospace;
}
.cpp-symbols dd {
margin-bottom: 1em;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

+251
View File
@@ -0,0 +1,251 @@
.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng <steve@ggi-project.org>.
.TH "XMLWF" "1" "24 January 2003" "" ""
.SH NAME
xmlwf \- Determines if an XML document is well-formed
.SH SYNOPSIS
\fBxmlwf\fR [ \fB-s\fR] [ \fB-n\fR] [ \fB-p\fR] [ \fB-x\fR] [ \fB-e \fIencoding\fB\fR] [ \fB-w\fR] [ \fB-d \fIoutput-dir\fB\fR] [ \fB-c\fR] [ \fB-m\fR] [ \fB-r\fR] [ \fB-t\fR] [ \fB-v\fR] [ \fBfile ...\fR]
.SH "DESCRIPTION"
.PP
\fBxmlwf\fR uses the Expat library to
determine if an XML document is well-formed. It is
non-validating.
.PP
If you do not specify any files on the command-line, and you
have a recent version of \fBxmlwf\fR, the
input file will be read from standard input.
.SH "WELL-FORMED DOCUMENTS"
.PP
A well-formed document must adhere to the
following rules:
.TP 0.2i
\(bu
The file begins with an XML declaration. For instance,
<?xml version="1.0" standalone="yes"?>.
\fBNOTE:\fR
\fBxmlwf\fR does not currently
check for a valid XML declaration.
.TP 0.2i
\(bu
Every start tag is either empty (<tag/>)
or has a corresponding end tag.
.TP 0.2i
\(bu
There is exactly one root element. This element must contain
all other elements in the document. Only comments, white
space, and processing instructions may come after the close
of the root element.
.TP 0.2i
\(bu
All elements nest properly.
.TP 0.2i
\(bu
All attribute values are enclosed in quotes (either single
or double).
.PP
If the document has a DTD, and it strictly complies with that
DTD, then the document is also considered \fBvalid\fR.
\fBxmlwf\fR is a non-validating parser --
it does not check the DTD. However, it does support
external entities (see the \fB-x\fR option).
.SH "OPTIONS"
.PP
When an option includes an argument, you may specify the argument either
separately ("\fB-d\fR output") or concatenated with the
option ("\fB-d\fRoutput"). \fBxmlwf\fR
supports both.
.TP
\fB-c\fR
If the input file is well-formed and \fBxmlwf\fR
doesn't encounter any errors, the input file is simply copied to
the output directory unchanged.
This implies no namespaces (turns off \fB-n\fR) and
requires \fB-d\fR to specify an output file.
.TP
\fB-d output-dir\fR
Specifies a directory to contain transformed
representations of the input files.
By default, \fB-d\fR outputs a canonical representation
(described below).
You can select different output formats using \fB-c\fR
and \fB-m\fR.
The output filenames will
be exactly the same as the input filenames or "STDIN" if the input is
coming from standard input. Therefore, you must be careful that the
output file does not go into the same directory as the input
file. Otherwise, \fBxmlwf\fR will delete the
input file before it generates the output file (just like running
cat < file > file in most shells).
Two structurally equivalent XML documents have a byte-for-byte
identical canonical XML representation.
Note that ignorable white space is considered significant and
is treated equivalently to data.
More on canonical XML can be found at
http://www.jclark.com/xml/canonxml.html .
.TP
\fB-e encoding\fR
Specifies the character encoding for the document, overriding
any document encoding declaration. \fBxmlwf\fR
supports four built-in encodings:
US-ASCII,
UTF-8,
UTF-16, and
ISO-8859-1.
Also see the \fB-w\fR option.
.TP
\fB-m\fR
Outputs some strange sort of XML file that completely
describes the the input file, including character postitions.
Requires \fB-d\fR to specify an output file.
.TP
\fB-n\fR
Turns on namespace processing. (describe namespaces)
\fB-c\fR disables namespaces.
.TP
\fB-p\fR
Tells xmlwf to process external DTDs and parameter
entities.
Normally \fBxmlwf\fR never parses parameter
entities. \fB-p\fR tells it to always parse them.
\fB-p\fR implies \fB-x\fR.
.TP
\fB-r\fR
Normally \fBxmlwf\fR memory-maps the XML file
before parsing; this can result in faster parsing on many
platforms.
\fB-r\fR turns off memory-mapping and uses normal file
IO calls instead.
Of course, memory-mapping is automatically turned off
when reading from standard input.
Use of memory-mapping can cause some platforms to report
substantially higher memory usage for
\fBxmlwf\fR, but this appears to be a matter of
the operating system reporting memory in a strange way; there is
not a leak in \fBxmlwf\fR.
.TP
\fB-s\fR
Prints an error if the document is not standalone.
A document is standalone if it has no external subset and no
references to parameter entities.
.TP
\fB-t\fR
Turns on timings. This tells Expat to parse the entire file,
but not perform any processing.
This gives a fairly accurate idea of the raw speed of Expat itself
without client overhead.
\fB-t\fR turns off most of the output options
(\fB-d\fR, \fB-m\fR, \fB-c\fR,
\&...).
.TP
\fB-v\fR
Prints the version of the Expat library being used, including some
information on the compile-time configuration of the library, and
then exits.
.TP
\fB-w\fR
Enables support for Windows code pages.
Normally, \fBxmlwf\fR will throw an error if it
runs across an encoding that it is not equipped to handle itself. With
\fB-w\fR, xmlwf will try to use a Windows code
page. See also \fB-e\fR.
.TP
\fB-x\fR
Turns on parsing external entities.
Non-validating parsers are not required to resolve external
entities, or even expand entities at all.
Expat always expands internal entities (?),
but external entity parsing must be enabled explicitly.
External entities are simply entities that obtain their
data from outside the XML file currently being parsed.
This is an example of an internal entity:
.nf
<!ENTITY vers '1.0.2'>
.fi
And here are some examples of external entities:
.nf
<!ENTITY header SYSTEM "header-&vers;.xml"> (parsed)
<!ENTITY logo SYSTEM "logo.png" PNG> (unparsed)
.fi
.TP
\fB--\fR
(Two hyphens.)
Terminates the list of options. This is only needed if a filename
starts with a hyphen. For example:
.nf
xmlwf -- -myfile.xml
.fi
will run \fBxmlwf\fR on the file
\fI-myfile.xml\fR.
.PP
Older versions of \fBxmlwf\fR do not support
reading from standard input.
.SH "OUTPUT"
.PP
If an input file is not well-formed,
\fBxmlwf\fR prints a single line describing
the problem to standard output. If a file is well formed,
\fBxmlwf\fR outputs nothing.
Note that the result code is \fBnot\fR set.
.SH "BUGS"
.PP
According to the W3C standard, an XML file without a
declaration at the beginning is not considered well-formed.
However, \fBxmlwf\fR allows this to pass.
.PP
\fBxmlwf\fR returns a 0 - noerr result,
even if the file is not well-formed. There is no good way for
a program to use \fBxmlwf\fR to quickly
check a file -- it must parse \fBxmlwf\fR's
standard output.
.PP
The errors should go to standard error, not standard output.
.PP
There should be a way to get \fB-d\fR to send its
output to standard output rather than forcing the user to send
it to a file.
.PP
I have no idea why anyone would want to use the
\fB-d\fR, \fB-c\fR, and
\fB-m\fR options. If someone could explain it to
me, I'd like to add this information to this manpage.
.SH "ALTERNATIVES"
.PP
Here are some XML validators on the web:
.nf
http://www.hcrc.ed.ac.uk/~richard/xml-check.html
http://www.stg.brown.edu/service/xmlvalid/
http://www.scripting.com/frontier5/xml/code/xmlValidator.html
http://www.xml.com/pub/a/tools/ruwf/check.html
.fi
.SH "SEE ALSO"
.PP
.nf
The Expat home page: http://www.libexpat.org/
The W3 XML specification: http://www.w3.org/TR/REC-xml
.fi
.SH "AUTHOR"
.PP
This manual page was written by Scott Bronson <bronson@rinspin.com> for
the Debian GNU/Linux system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the GNU Free Documentation
License, Version 1.1.
+473
View File
@@ -0,0 +1,473 @@
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Makefile.am is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
-->
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>Scott</firstname>">
<!ENTITY dhsurname "<surname>Bronson</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>December 5, 2001</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
<!ENTITY dhemail "<email>bronson@rinspin.com</email>">
<!ENTITY dhusername "Scott Bronson">
<!ENTITY dhucpackage "<refentrytitle>XMLWF</refentrytitle>">
<!ENTITY dhpackage "xmlwf">
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2001</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>Determines if an XML document is well-formed</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option>-s</option></arg>
<arg><option>-n</option></arg>
<arg><option>-p</option></arg>
<arg><option>-x</option></arg>
<arg><option>-e <replaceable>encoding</replaceable></option></arg>
<arg><option>-w</option></arg>
<arg><option>-d <replaceable>output-dir</replaceable></option></arg>
<arg><option>-c</option></arg>
<arg><option>-m</option></arg>
<arg><option>-r</option></arg>
<arg><option>-t</option></arg>
<arg><option>-v</option></arg>
<arg>file ...</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>
<command>&dhpackage;</command> uses the Expat library to
determine if an XML document is well-formed. It is
non-validating.
</para>
<para>
If you do not specify any files on the command-line, and you
have a recent version of <command>&dhpackage;</command>, the
input file will be read from standard input.
</para>
</refsect1>
<refsect1>
<title>WELL-FORMED DOCUMENTS</title>
<para>
A well-formed document must adhere to the
following rules:
</para>
<itemizedlist>
<listitem><para>
The file begins with an XML declaration. For instance,
<literal>&lt;?xml version="1.0" standalone="yes"?&gt;</literal>.
<emphasis>NOTE:</emphasis>
<command>&dhpackage;</command> does not currently
check for a valid XML declaration.
</para></listitem>
<listitem><para>
Every start tag is either empty (&lt;tag/&gt;)
or has a corresponding end tag.
</para></listitem>
<listitem><para>
There is exactly one root element. This element must contain
all other elements in the document. Only comments, white
space, and processing instructions may come after the close
of the root element.
</para></listitem>
<listitem><para>
All elements nest properly.
</para></listitem>
<listitem><para>
All attribute values are enclosed in quotes (either single
or double).
</para></listitem>
</itemizedlist>
<para>
If the document has a DTD, and it strictly complies with that
DTD, then the document is also considered <emphasis>valid</emphasis>.
<command>&dhpackage;</command> is a non-validating parser --
it does not check the DTD. However, it does support
external entities (see the <option>-x</option> option).
</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<para>
When an option includes an argument, you may specify the argument either
separately ("<option>-d</option> output") or concatenated with the
option ("<option>-d</option>output"). <command>&dhpackage;</command>
supports both.
</para>
<variablelist>
<varlistentry>
<term><option>-c</option></term>
<listitem>
<para>
If the input file is well-formed and <command>&dhpackage;</command>
doesn't encounter any errors, the input file is simply copied to
the output directory unchanged.
This implies no namespaces (turns off <option>-n</option>) and
requires <option>-d</option> to specify an output file.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-d output-dir</option></term>
<listitem>
<para>
Specifies a directory to contain transformed
representations of the input files.
By default, <option>-d</option> outputs a canonical representation
(described below).
You can select different output formats using <option>-c</option>
and <option>-m</option>.
</para>
<para>
The output filenames will
be exactly the same as the input filenames or "STDIN" if the input is
coming from standard input. Therefore, you must be careful that the
output file does not go into the same directory as the input
file. Otherwise, <command>&dhpackage;</command> will delete the
input file before it generates the output file (just like running
<literal>cat &lt; file &gt; file</literal> in most shells).
</para>
<para>
Two structurally equivalent XML documents have a byte-for-byte
identical canonical XML representation.
Note that ignorable white space is considered significant and
is treated equivalently to data.
More on canonical XML can be found at
http://www.jclark.com/xml/canonxml.html .
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-e encoding</option></term>
<listitem>
<para>
Specifies the character encoding for the document, overriding
any document encoding declaration. <command>&dhpackage;</command>
supports four built-in encodings:
<literal>US-ASCII</literal>,
<literal>UTF-8</literal>,
<literal>UTF-16</literal>, and
<literal>ISO-8859-1</literal>.
Also see the <option>-w</option> option.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-m</option></term>
<listitem>
<para>
Outputs some strange sort of XML file that completely
describes the the input file, including character postitions.
Requires <option>-d</option> to specify an output file.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-n</option></term>
<listitem>
<para>
Turns on namespace processing. (describe namespaces)
<option>-c</option> disables namespaces.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-p</option></term>
<listitem>
<para>
Tells xmlwf to process external DTDs and parameter
entities.
</para>
<para>
Normally <command>&dhpackage;</command> never parses parameter
entities. <option>-p</option> tells it to always parse them.
<option>-p</option> implies <option>-x</option>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-r</option></term>
<listitem>
<para>
Normally <command>&dhpackage;</command> memory-maps the XML file
before parsing; this can result in faster parsing on many
platforms.
<option>-r</option> turns off memory-mapping and uses normal file
IO calls instead.
Of course, memory-mapping is automatically turned off
when reading from standard input.
</para>
<para>
Use of memory-mapping can cause some platforms to report
substantially higher memory usage for
<command>&dhpackage;</command>, but this appears to be a matter of
the operating system reporting memory in a strange way; there is
not a leak in <command>&dhpackage;</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-s</option></term>
<listitem>
<para>
Prints an error if the document is not standalone.
A document is standalone if it has no external subset and no
references to parameter entities.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-t</option></term>
<listitem>
<para>
Turns on timings. This tells Expat to parse the entire file,
but not perform any processing.
This gives a fairly accurate idea of the raw speed of Expat itself
without client overhead.
<option>-t</option> turns off most of the output options
(<option>-d</option>, <option>-m</option>, <option>-c</option>,
...).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option></term>
<listitem>
<para>
Prints the version of the Expat library being used, including some
information on the compile-time configuration of the library, and
then exits.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-w</option></term>
<listitem>
<para>
Enables support for Windows code pages.
Normally, <command>&dhpackage;</command> will throw an error if it
runs across an encoding that it is not equipped to handle itself. With
<option>-w</option>, &dhpackage; will try to use a Windows code
page. See also <option>-e</option>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-x</option></term>
<listitem>
<para>
Turns on parsing external entities.
</para>
<para>
Non-validating parsers are not required to resolve external
entities, or even expand entities at all.
Expat always expands internal entities (?),
but external entity parsing must be enabled explicitly.
</para>
<para>
External entities are simply entities that obtain their
data from outside the XML file currently being parsed.
</para>
<para>
This is an example of an internal entity:
<literallayout>
&lt;!ENTITY vers '1.0.2'&gt;
</literallayout>
</para>
<para>
And here are some examples of external entities:
<literallayout>
&lt;!ENTITY header SYSTEM "header-&amp;vers;.xml"&gt; (parsed)
&lt;!ENTITY logo SYSTEM "logo.png" PNG&gt; (unparsed)
</literallayout>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--</option></term>
<listitem>
<para>
(Two hyphens.)
Terminates the list of options. This is only needed if a filename
starts with a hyphen. For example:
</para>
<literallayout>
&dhpackage; -- -myfile.xml
</literallayout>
<para>
will run <command>&dhpackage;</command> on the file
<filename>-myfile.xml</filename>.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
Older versions of <command>&dhpackage;</command> do not support
reading from standard input.
</para>
</refsect1>
<refsect1>
<title>OUTPUT</title>
<para>
If an input file is not well-formed,
<command>&dhpackage;</command> prints a single line describing
the problem to standard output. If a file is well formed,
<command>&dhpackage;</command> outputs nothing.
Note that the result code is <emphasis>not</emphasis> set.
</para>
</refsect1>
<refsect1>
<title>BUGS</title>
<para>
According to the W3C standard, an XML file without a
declaration at the beginning is not considered well-formed.
However, <command>&dhpackage;</command> allows this to pass.
</para>
<para>
<command>&dhpackage;</command> returns a 0 - noerr result,
even if the file is not well-formed. There is no good way for
a program to use <command>&dhpackage;</command> to quickly
check a file -- it must parse <command>&dhpackage;</command>'s
standard output.
</para>
<para>
The errors should go to standard error, not standard output.
</para>
<para>
There should be a way to get <option>-d</option> to send its
output to standard output rather than forcing the user to send
it to a file.
</para>
<para>
I have no idea why anyone would want to use the
<option>-d</option>, <option>-c</option>, and
<option>-m</option> options. If someone could explain it to
me, I'd like to add this information to this manpage.
</para>
</refsect1>
<refsect1>
<title>ALTERNATIVES</title>
<para>
Here are some XML validators on the web:
<literallayout>
http://www.hcrc.ed.ac.uk/~richard/xml-check.html
http://www.stg.brown.edu/service/xmlvalid/
http://www.scripting.com/frontier5/xml/code/xmlValidator.html
http://www.xml.com/pub/a/tools/ruwf/check.html
</literallayout>
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>
<literallayout>
The Expat home page: http://www.libexpat.org/
The W3 XML specification: http://www.w3.org/TR/REC-xml
</literallayout>
</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>
This manual page was written by &dhusername; &dhemail; for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the <acronym>GNU</acronym> Free Documentation
License, Version 1.1.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
+8
View File
@@ -0,0 +1,8 @@
Makefile
elements
elements.plg
outline
outline.plg
Debug
Release
.libs
+15 -11
View File
@@ -1,12 +1,14 @@
/* This is simple demonstration of how to use expat. This program
reads an XML document from standard input and writes a line with the
name of each element to standard output indenting child elements by
one tab stop more than their parent element. */
reads an XML document from standard input and writes a line with
the name of each element to standard output indenting child
elements by one tab stop more than their parent element.
*/
#include <stdio.h>
#include "xmlparse.h"
#include "expat.h"
void startElement(void *userData, const char *name, const char **atts)
static void XMLCALL
startElement(void *userData, const char *name, const char **atts)
{
int i;
int *depthPtr = userData;
@@ -16,13 +18,15 @@ void startElement(void *userData, const char *name, const char **atts)
*depthPtr += 1;
}
void endElement(void *userData, const char *name)
static void XMLCALL
endElement(void *userData, const char *name)
{
int *depthPtr = userData;
*depthPtr -= 1;
}
int main()
int
main(int argc, char *argv[])
{
char buf[BUFSIZ];
XML_Parser parser = XML_ParserCreate(NULL);
@@ -33,11 +37,11 @@ int main()
do {
size_t len = fread(buf, 1, sizeof(buf), stdin);
done = len < sizeof(buf);
if (!XML_Parse(parser, buf, len, done)) {
if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
fprintf(stderr,
"%s at line %d\n",
XML_ErrorString(XML_GetErrorCode(parser)),
XML_GetCurrentLineNumber(parser));
"%s at line %d\n",
XML_ErrorString(XML_GetErrorCode(parser)),
XML_GetCurrentLineNumber(parser));
return 1;
}
} while (!done);
+103
View File
@@ -0,0 +1,103 @@
# Microsoft Developer Studio Project File - Name="elements" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=elements - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "elements.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "elements.mak" CFG="elements - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "elements - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "elements - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "elements - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "XML_STATIC" /FD /c
# SUBTRACT CPP /X /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 odbccp32.lib libexpatMT.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib /nologo /subsystem:console /pdb:none /machine:I386 /libpath:"..\lib\Release_static"
!ELSEIF "$(CFG)" == "elements - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# 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
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 odbccp32.lib libexpatMT.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /libpath:"..\lib\Debug_static"
!ENDIF
# Begin Target
# Name "elements - Win32 Release"
# Name "elements - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\elements.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
+90
View File
@@ -0,0 +1,90 @@
/*****************************************************************
* outline.c
*
* Copyright 1999, Clark Cooper
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the license contained in the
* COPYING file that comes with the expat distribution.
*
* 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.
*
* Read an XML document from standard input and print an element
* outline on standard output.
*/
#include <stdio.h>
#include <expat.h>
#define BUFFSIZE 8192
char Buff[BUFFSIZE];
int Depth;
static void XMLCALL
start(void *data, const char *el, const char **attr)
{
int i;
for (i = 0; i < Depth; i++)
printf(" ");
printf("%s", el);
for (i = 0; attr[i]; i += 2) {
printf(" %s='%s'", attr[i], attr[i + 1]);
}
printf("\n");
Depth++;
}
static void XMLCALL
end(void *data, const char *el)
{
Depth--;
}
int
main(int argc, char *argv[])
{
XML_Parser p = XML_ParserCreate(NULL);
if (! p) {
fprintf(stderr, "Couldn't allocate memory for parser\n");
exit(-1);
}
XML_SetElementHandler(p, start, end);
for (;;) {
int done;
int len;
len = fread(Buff, 1, BUFFSIZE, stdin);
if (ferror(stdin)) {
fprintf(stderr, "Read error\n");
exit(-1);
}
done = feof(stdin);
if (XML_Parse(p, Buff, len, done) == XML_STATUS_ERROR) {
fprintf(stderr, "Parse error at line %d:\n%s\n",
XML_GetCurrentLineNumber(p),
XML_ErrorString(XML_GetErrorCode(p)));
exit(-1);
}
if (done)
break;
}
return 0;
}
+103
View File
@@ -0,0 +1,103 @@
# Microsoft Developer Studio Project File - Name="outline" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=outline - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "outline.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "outline.mak" CFG="outline - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "outline - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "outline - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "outline - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
# SUBTRACT CPP /X /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:none /machine:I386
!ELSEIF "$(CFG)" == "outline - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\lib" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386
!ENDIF
# Begin Target
# Name "outline - Win32 Release"
# Name "outline - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\outline.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
+53 -17
View File
@@ -3,19 +3,7 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
###############################################################################
Project: "gennmtab"=.\gennmtab\gennmtab.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "xmlparse"=.\xmlparse\xmlparse.dsp - Package Owner=<4>
Project: "elements"=.\examples\elements.dsp - Package Owner=<4>
Package=<5>
{{{
@@ -24,13 +12,61 @@ Package=<5>
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name xmltok
Project_Dep_Name expat_static
End Project Dependency
}}}
###############################################################################
Project: "xmltok"=.\xmltok\xmltok.dsp - Package Owner=<4>
Project: "expat"=.\lib\expat.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "expat_static"=.\lib\expat_static.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "expatw"=.\lib\expatw.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "expatw_static"=.\lib\expatw_static.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "outline"=.\examples\outline.dsp - Package Owner=<4>
Package=<5>
{{{
@@ -39,7 +75,7 @@ Package=<5>
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name gennmtab
Project_Dep_Name expat
End Project Dependency
}}}
@@ -54,7 +90,7 @@ Package=<5>
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name xmlparse
Project_Dep_Name expat
End Project Dependency
}}}
-80
View File
@@ -1,80 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<TITLE>expat</TITLE>
<BODY>
<H1>expat - XML Parser Toolkit</H1>
<H3>Version 20000512</H3>
<P>Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center
Ltd. Expat is freely available with source under a very liberal <a
href="copying.txt">license</a> (the MIT license).</P>
<P>This is a test version of expat which adds support for parsing
external DTDs and parameter entities. Compiling with -DXML_DTD
enables this support. There's a new <CODE>-p</CODE> option for xmlwf
which will cause it to process external DTDs and parameter entities;
this implies the <CODE>-x</CODE> option. See the comment above
<CODE>XML_SetParamEntityParsing</CODE> in <CODE>xmlparse.h</CODE> for
the API addition that enables this.</P>
<P>Expat is an <A
HREF="http://www.w3.org/TR/1998/REC-xml-19980210">XML 1.0</A> parser
written in C. It aims to be fully conforming. It is currently not a
validating XML processor. The current production version of expat can
be downloaded from <A href =
"http://www.ThaiOpenSource.com/dist/expat/expat.zip"
>http://www.ThaiOpenSource.com/dist/expat/expat.zip</A>.</P>
<P>The directory <SAMP>xmltok</SAMP> contains a low-level library for
tokenizing XML. The interface is documented in
<SAMP>xmltok/xmltok.h</SAMP>.</P>
<P>The directory <SAMP>xmlparse</SAMP> contains an XML parser library
which is built on top of the <SAMP>xmltok</SAMP> library. The
interface is documented in <SAMP>xmlparse/xmlparse.h</SAMP>. The
directory <SAMP>sample</SAMP> contains a simple example program using
this interface; <SAMP>sample/build.bat</SAMP> is a batch file to build
the example using Visual C++.</P>
<P>The directory <SAMP>xmlwf</SAMP> contains the <SAMP>xmlwf</SAMP>
application, which uses the <SAMP>xmlparse</SAMP> library. The
arguments to <SAMP>xmlwf</SAMP> are one or more files which are each
to be checked for well-formedness. An option <SAMP>-d
<VAR>dir</VAR></SAMP> can be specified; for each well-formed input
file the corresponding <A
href="http://www.jclark.com/xml/canonxml.html">canonical XML</A> will
be written to <SAMP>dir/<VAR>f</VAR></SAMP>, where
<SAMP><VAR>f</VAR></SAMP> is the filename (without any path) of the
input file. A <CODE>-x</CODE> option will cause references to
external general entities to be processed. A <CODE>-s</CODE> option
will make documents that are not standalone cause an error (a document
is considered standalone if either it is intrinsically standalone
because it has no external subset and no references to parameter
entities in the internal subset or it is declared as standalone in the
XML declaration).</P>
<P>The <SAMP>bin</SAMP> directory contains Win32 executables. The
<SAMP>lib</SAMP> directory contains Win32 import libraries.</P>
<P>Answers to some frequently asked questions about expat can be found
in the <A
HREF="http://www.ThaiOpenSource.com/product/expat/expatfaq.html">expat
FAQ</A>.</P>
<P></P>
<ADDRESS>
<A HREF="mailto:jjc@ThaiOpenSource.com">James Clark</A>
</ADDRESS>
</BODY>
</HTML>
+82
View File
@@ -0,0 +1,82 @@
%define version 1.95.7
%define release 1
Summary: Expat is an XML 1.0 parser written in C.
Name: expat
Version: %{version}
Release: %{release}
Copyright: MIT/X
Group: Utilities/parsers
URL: http://www.libexpat.org/
Source: http://download.sourceforge.net/expat/expat-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
%description
Expat is an XML 1.0 parser written in C by James Clark. It aims to be
fully conforming. It is not a validating XML parser.
%prep
%setup
%build
./configure
make lib xmlwf
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/include
make install prefix=$RPM_BUILD_ROOT/usr
install -D xmlwf/xmlwf $RPM_BUILD_ROOT/usr/bin/xmlwf
%files
%doc COPYING Changes MANIFEST README doc/reference.html doc/style.css doc/valid-xhtml10.png
/usr/bin/xmlwf
/usr/lib
/usr/include/expat.h
/usr/man/man1/xmlwf.1.gz
%changelog
* Mon Oct 20 2003 Fred L. Drake, Jr. <fdrake@acm.org>
[Release 1.95.7-1]
- Updated for the 1.95.7 release.
* Sat Jan 25 2003 Fred L. Drake, Jr. <fdrake@acm.org>
[Release 1.95.6-1]
- Updated for the 1.95.6 release.
* Wed Sep 4 2002 Fred L. Drake, Jr. <fdrake@acm.org>
[Release 1.95.5-1]
- Updated for the 1.95.5 release.
- Updated URL for Expat home page to point to www.libexpat.org.
- Added "Valid XHTML 1.0" icon to the installed documentation.
* Sat Jun 29 2002 Fred L. Drake, Jr. <fdrake@acm.org>
[Release 1.95.4-1]
- Updated for the 1.95.4 release.
* Fri May 17 2002 Fred L. Drake, Jr. <fdrake@acm.org>
[Release 1.95.3-1]
- Updated for the 1.95.3 release.
- Added xmlwf man page to the list of files.
* Wed Jul 25 2001 Fred L. Drake, Jr. <fdrake@acm.org>
[Release 1.95.2-1]
- Updated for the 1.95.2 release.
* Sun Feb 18 2001 Sean Reifschneider <jafo-rpms@tummy.com>
[Release 1.95.1-1tummy]
- Updated to 1.95.1 release.
- Removed the "/usr/include/expat" directory for headers, as it now uses
"expat.h" instead of "xmlparser.h".
* Thu Jan 25 2001 Sean Reifschneider <jafo-rpms@tummy.com>
[Release 1.1-3tummy]
- Moved xmlparse.h into "/usr/include/expat" directory to prevent conflict
with w3c-libwww-devel package.
* Wed Sep 6 2000 Sean Reifschneider <jafo-rpms@tummy.com>
- Modified to install into /usr.
- Modified to use RPM_BUILD_ROOT instead of writing directly to install
location.
-103
View File
@@ -1,103 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<TITLE>expat FAQ</TITLE>
<BODY>
<H1>Frequently Asked Questions about Expat</H1>
<H4>Where can I get the latest version of expat?</H4>
<p>The latest production version is always available from <a
href="http://www.ThaiOpenSource.com/dist/expat"
>http://www.ThaiOpenSource.com/dist/expat</a>. If there is a test
version, then it will be available from <a
href="http://www.ThaiOpenSource.com/dist/expat/test"
>http://www.ThaiOpenSource.com/dist/expat/test</a>.</p>
<H4>Where can I get help in using expat?</H4>
<p>Try the xml-dev mailing list (subscribe by mailing to <a
href="mailto:majordomo@xml.org&BODY=subscribe%20xml-dev">majordomo@xml.org</a>
with the message <code>subscribe xml-dev</code>). Alternatively try
the <a href="news:comp.text.xml">comp.text.xml</a> USENET
newsgroup.</p>
<H4>Where is expat's API documented?</H4>
<p>In <code>xmlparse/xmlparse.h</code>. There's also an advanced,
low-level API you can use which is documented in
<code>xmltok/xmltok.h</code>.</p>
<p>There's also an excellent <a
href="http://www.xml.com/pub/1999/09/expat/index.html">article</a>
about expat on XML.com by Clark Cooper.</p>
<H4>Is there a simple example of using expat's API?</H4>
<p>See <code>sample/elements.c</code></p>
<H4>How can I get expat to deal with non-ASCII characters?</H4>
<P>By default, expat assumes that documents are encoded in UTF-8. In
UTF-8, ASCII characters are represented by a single byte as they would
be in ASCII, but non-ASCII characters are represented by a sequence of
two or more bytes all with the 8th bit set. The encoding most widely
used for European languages is ISO 8859-1 which is not compatible with
UTF-8. To use this encoding, expat must be told either by supplying
an argument of <code>"iso-8859-1"</code> to
<code>XML_ParserCreate</code>, or by starting the document with
<code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;</code>.</P>
<H4>What encodings does expat support?</H4>
<P>expat has built in support for the following encodings:</P>
<ul>
<li><code>utf-8</code></li>
<li><code>utf-16</code></li>
<li><code>iso-8859-1</code></li>
<li><code>us-ascii</code></li>
</ul>
<P>Additional encodings can be supported by using
<code>XML_SetUnknownEncodingHandler</code>.</P>
<H4>How can I get expat to validate my XML documents?</H4>
<p>You can't. expat is not a validating parser.</p>
<H4>How can I get expat to read my DTD?</H4>
<p>Compile with <code>-DXML_DTD</code> and call
<code>XML_SetParamEntityParsing</code>.</p>
<H4>How can I get expat to recover from errors?</H4>
<p>You can't. All well-formedness errors stop processing. Note that
the XML Recommendation does not permit conforming XML processors to
continue normal processing after a fatal error.</p>
<H4>How do I get at the characters between tags?</H4>
<p>Use <code>XML_SetCharacterDataHandler</code>.</p>
<H4>How can I minimize the size of expat?</H4>
<p>Compile with <code>-DXML_MIN_SIZE</code>. With Visual C++, use the
<code>Win32 MinSize</code> configuration: this creates an
<code>xmlparse.dll</code> that does not require
<code>xmltok.dll</code>.</p>
<ADDRESS>
<A HREF="mailto:jjc@ThaiOpenSource.com">James Clark</A>
</ADDRESS>
</BODY>
</HTML>
-31
View File
@@ -1,31 +0,0 @@
expat.html
xmltok/ascii.h
xmltok/asciitab.h
xmltok/dllmain.c
gennmtab/gennmtab.c
xmltok/iasciitab.h
xmltok/latin1tab.h
Makefile
xmltok/nametab.h
xmltok/utf8tab.h
xmltok/xmldef.h
xmltok/xmlrole.c
xmltok/xmlrole.h
xmltok/xmltok.c
xmltok/xmltok.h
xmltok/xmltok_impl.c
xmltok/xmltok_impl.h
xmltok/xmltok_ns.c
xmlparse/xmlparse.c
xmlparse/xmlparse.h
xmlwf/codepage.c
xmlwf/codepage.h
xmlwf/filemap.h
xmlwf/readfilemap.c
xmlwf/unixfilemap.c
xmlwf/win32filemap.c
xmlwf/xmlfile.c
xmlwf/xmlfile.h
xmlwf/xmltchar.h
xmlwf/xmlwf.c
sample/elements.c
+18 -16
View File
@@ -1,6 +1,5 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
#include <string.h>
@@ -354,21 +353,23 @@ struct range name[] = {
{ 0x30fc, 0x30fe },
};
void setTab(char *tab, struct range *ranges, size_t nRanges)
static void
setTab(char *tab, struct range *ranges, size_t nRanges)
{
size_t i;
int j;
for (i = 0; i < nRanges; i++) {
if (ranges[i].end) {
for (j = ranges[i].start; j <= ranges[i].end; j++)
tab[j] = 1;
tab[j] = 1;
}
else
tab[ranges[i].start] = 1;
}
}
void printTabs(char *tab)
static void
printTabs(char *tab)
{
int nBitmaps = 2;
int i, j, k;
@@ -384,21 +385,21 @@ void printTabs(char *tab)
int kind = tab[i*256];
for (j = 1; j < 256; j++)
if (tab[i*256 +j] != kind) {
kind = -1;
break;
kind = -1;
break;
}
if (i >= 256 && memcmp(tab + (i - 256)*256, tab + i*256, 256) == 0)
pageIndex[i] = pageIndex[i - 256];
else if (kind == -1) {
pageIndex[i] = nBitmaps++;
for (j = 0; j < 8; j++) {
unsigned val = 0;
for (k = 0; k < 32; k++) {
if (tab[i*256 + j*32 +k])
val |= (1 << k);
}
printf("0x%08X,", val);
putchar((((j + 1) & 3) == 0) ? '\n' : ' ');
unsigned val = 0;
for (k = 0; k < 32; k++) {
if (tab[i*256 + j*32 +k])
val |= (1 << k);
}
printf("0x%08X,", val);
putchar((((j + 1) & 3) == 0) ? '\n' : ' ');
}
}
else
@@ -415,7 +416,8 @@ void printTabs(char *tab)
printf("};\n");
}
int main()
int
main()
{
char tab[2*65536];
memset(tab, 0, 65536);
+18
View File
@@ -0,0 +1,18 @@
Makefile
.libs
*.lo
expat.h
Debug
Debug-w
Release
Release-w
expat.ncb
expat.opt
expat.plg
Debug_static
Debug-w_static
Release_static
Release-w_static
expat_static.plg
expatw.plg
expatw_static.plg
+206
View File
@@ -0,0 +1,206 @@
# File: Makefile.MPW
# Targets: All, Dynamic, Static (and Clean, Clean-All)
# Created: Tuesday, July 02, 2002
#
# MPW Makefile for building expat under the "classic" (i.e. pre-X) Mac OS
# Copyright © 2002 Daryle Walker
# Portions Copyright © 2002 Thomas Wegner
# See the COPYING file for distribution information
#
# Description:
# This Makefile lets you build static, dynamic (i.e. shared) and stub
# versions of the expat library as well as the elements.c and outline.c
# examples (built as tools for MPW). This is for PPC only; it should be
# no problem to build a 68K version of the expat library, though.
#
# Usage:
# Buildprogram All
# or Buildprogram Dynamic
# or Buildprogram Static
#
# Note: You first have to rename this file to "Makefile", or the Buildprogram
# commando will not recognize it.
#
MAKEFILE = Makefile
¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified
ObjDir = :
SrcDir = :
HdrDir = :
ToolDir = ::examples:
Includes = -i {HdrDir}
Sym-PPC = -sym off
Defines = -d MACOS_CLASSIC
PPCCOptions = {Includes} {Sym-PPC} -w 35 {Defines}
FragName = libexpat
### Source Files ###
SrcFiles =
"{SrcDir}xmlparse.c"
"{SrcDir}xmlrole.c"
"{SrcDir}xmltok.c"
ToolSrcFiles =
"{ToolDir}elements.c"
"{ToolDir}outline.c"
### Object Files ###
ObjFiles-PPC =
"{ObjDir}xmlparse.c.o"
"{ObjDir}xmlrole.c.o"
"{ObjDir}xmltok.c.o"
ElementToolObjFile = "{ObjDir}elements.c.o"
OutlineToolObjFile = "{ObjDir}outline.c.o"
### Libraries ###
StLibFiles-PPC =
"{PPCLibraries}StdCRuntime.o"
"{PPCLibraries}PPCCRuntime.o"
"{PPCLibraries}PPCToolLibs.o"
ShLibFiles-PPC =
"{SharedLibraries}InterfaceLib"
"{SharedLibraries}StdCLib"
"{SharedLibraries}MathLib"
LibFiles-PPC =
{StLibFiles-PPC}
{ShLibFiles-PPC}
### Special Files ###
ExportFile = "{ObjDir}{FragName}.exp"
StLibFile = "{ObjDir}{FragName}.MrC.o"
ShLibFile = "{ObjDir}{FragName}"
StubFile = "{ObjDir}{FragName}.stub"
ElementsTool = "{ToolDir}elements"
OutlineTool = "{ToolDir}outline"
### Default Rules ###
.c.o Ä .c {¥MondoBuild¥}
{PPCC} {depDir}{default}.c -o {targDir}{default}.c.o {PPCCOptions}
### Build Rules ###
All Ä Dynamic {ElementsTool} {OutlineTool}
Static Ä {StLibFile}
Dynamic Ä Static {ShLibFile} {StubFile}
{StLibFile} ÄÄ {ObjFiles-PPC} {StLibFiles-PPC} {¥MondoBuild¥}
PPCLink
-o {Targ}
{ObjFiles-PPC}
{StLibFiles-PPC}
{Sym-PPC}
-mf -d
-t 'XCOF'
-c 'MPS '
-xm l
{ShLibFile} ÄÄ {StLibFile} {ShLibFiles-PPC} {ExportFile} {¥MondoBuild¥}
PPCLink
-o {Targ}
{StLibFile}
{ShLibFiles-PPC}
{Sym-PPC}
-@export {ExportFile}
-fragname {FragName}
-mf -d
-t 'shlb'
-c '????'
-xm s
{StubFile} ÄÄ {ShLibFile} {¥MondoBuild¥}
shlb2stub -o {Targ} {ShLibFile}
{ElementsTool} ÄÄ {ElementToolObjFile} {StubFile} {LibFiles-PPC} {¥MondoBuild¥}
PPCLink
-o {Targ}
{ElementToolObjFile}
{StLibFile}
{LibFiles-PPC}
{Sym-PPC}
-mf -d
-t 'MPST'
-c 'MPS '
{OutlineTool} ÄÄ {OutlineToolObjFile} {StubFile} {LibFiles-PPC} {¥MondoBuild¥}
PPCLink
-o {Targ}
{OutlineToolObjFile}
{StLibFile}
{LibFiles-PPC}
{Sym-PPC}
-mf -d
-t 'MPST'
-c 'MPS '
### Special Rules ###
{ExportFile} ÄÄ "{HdrDir}expat.h" {¥MondoBuild¥}
StreamEdit -d
-e "/¥('XMLPARSEAPI('Å') ')Ç0,1È'XML_'([A-Za-z0-9_]+)¨1'('/ Print 'XML_' ¨1"
"{HdrDir}expat.h" > {Targ}
### Required Dependencies ###
"{ObjDir}xmlparse.c.o" Ä "{SrcDir}xmlparse.c"
"{ObjDir}xmlrole.c.o" Ä "{SrcDir}xmlrole.c"
"{ObjDir}xmltok.c.o" Ä "{SrcDir}xmltok.c"
"{ObjDir}elements.c.o" Ä "{ToolDir}elements.c"
"{ObjDir}outline.c.o" Ä "{ToolDir}outline.c"
### Optional Dependencies ###
### Build this target to clean out generated intermediate files. ###
Clean Ä
Delete {ObjFiles-PPC} {ExportFile} {ElementToolObjFile} {OutlineToolObjFile}
### Build this target to clean out all generated files. ###
Clean-All Ä Clean
Delete {StLibFile} {ShLibFile} {StubFile} {ElementsTool} {OutlineTool}
### Build this target to generate "include file" dependencies. ###
Dependencies Ä $OutOfDate
MakeDepend
-append {MAKEFILE}
-ignore "{CIncludes}"
-objdir "{ObjDir}"
-objext .o
{Defines}
{Includes}
{SrcFiles}
+3 -4
View File
@@ -1,6 +1,5 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
#define ASCII_A 0x41
@@ -69,7 +68,7 @@ See the file copying.txt for copying permission.
#define ASCII_9 0x39
#define ASCII_TAB 0x09
#define ASCII_SPACE 0x20
#define ASCII_SPACE 0x20
#define ASCII_EXCL 0x21
#define ASCII_QUOT 0x22
#define ASCII_AMP 0x26
+2 -3
View File
@@ -1,6 +1,5 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
/* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
+168
View File
@@ -0,0 +1,168 @@
# Microsoft Developer Studio Project File - Name="expat" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=expat - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "expat.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "expat.mak" CFG="expat - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "expat - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "expat - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "expat - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "EXPAT_EXPORTS" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPILED_FROM_DSP" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /machine:I386 /out:"Release\libexpat.dll"
!ELSEIF "$(CFG)" == "expat - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "EXPAT_EXPORTS" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /GX /ZI /Od /D "_DEBUG" /D "COMPILED_FROM_DSP" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FR /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /debug /machine:I386 /out:"Debug\libexpat.dll"
!ENDIF
# Begin Target
# Name "expat - Win32 Release"
# Name "expat - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\libexpat.def
# End Source File
# Begin Source File
SOURCE=.\xmlparse.c
!IF "$(CFG)" == "expat - Win32 Release"
!ELSEIF "$(CFG)" == "expat - Win32 Debug"
# ADD CPP /GX- /Od
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\xmlrole.c
# End Source File
# Begin Source File
SOURCE=.\xmltok.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\ascii.h
# End Source File
# Begin Source File
SOURCE=.\asciitab.h
# End Source File
# Begin Source File
SOURCE=.\expat.h
# End Source File
# Begin Source File
SOURCE=.\iasciitab.h
# End Source File
# Begin Source File
SOURCE=.\latin1tab.h
# End Source File
# Begin Source File
SOURCE=.\nametab.h
# End Source File
# Begin Source File
SOURCE=.\utf8tab.h
# End Source File
# Begin Source File
SOURCE=.\xmlrole.h
# End Source File
# Begin Source File
SOURCE=.\xmltok.h
# End Source File
# Begin Source File
SOURCE=.\xmltok_impl.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
+1001
View File
File diff suppressed because it is too large Load Diff
+146
View File
@@ -0,0 +1,146 @@
# Microsoft Developer Studio Project File - Name="expat_static" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=expat_static - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "expat_static.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "expat_static.mak" CFG="expat_static - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "expat_static - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "expat_static - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "expat_static - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "expat_static___Win32_Release"
# PROP BASE Intermediate_Dir "expat_static___Win32_Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release_static"
# PROP Intermediate_Dir "Release_static"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "COMPILED_FROM_DSP" /FD /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x1009 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Release_static\libexpatMT.lib"
!ELSEIF "$(CFG)" == "expat_static - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "expat_static___Win32_Debug"
# PROP BASE Intermediate_Dir "expat_static___Win32_Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug_static"
# PROP Intermediate_Dir "Debug_static"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# 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
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x1009 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Debug_static\libexpatMT.lib"
!ENDIF
# Begin Target
# Name "expat_static - Win32 Release"
# Name "expat_static - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\xmlparse.c
# End Source File
# Begin Source File
SOURCE=.\xmlrole.c
# End Source File
# Begin Source File
SOURCE=.\xmltok.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\ascii.h
# End Source File
# Begin Source File
SOURCE=.\asciitab.h
# End Source File
# Begin Source File
SOURCE=.\expat.h
# End Source File
# Begin Source File
SOURCE=.\iasciitab.h
# End Source File
# Begin Source File
SOURCE=.\latin1tab.h
# End Source File
# Begin Source File
SOURCE=.\nametab.h
# End Source File
# Begin Source File
SOURCE=.\utf8tab.h
# End Source File
# Begin Source File
SOURCE=.\xmlrole.h
# End Source File
# Begin Source File
SOURCE=.\xmltok.h
# End Source File
# Begin Source File
SOURCE=.\xmltok_impl.h
# End Source File
# End Group
# End Target
# End Project
+169
View File
@@ -0,0 +1,169 @@
# Microsoft Developer Studio Project File - Name="expatw" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=expatw - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "expatw.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "expatw.mak" CFG="expatw - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "expatw - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "expatw - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "expatw - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release-w"
# PROP Intermediate_Dir "Release-w"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "EXPAT_EXPORTS" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /D "NDEBUG" /D "COMPILED_FROM_DSP" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XML_UNICODE_WCHAR_T" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /machine:I386 /out:"Release-w\libexpatw.dll"
!ELSEIF "$(CFG)" == "expatw - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug-w"
# PROP Intermediate_Dir "Debug-w"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "EXPAT_EXPORTS" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /GX /ZI /Od /D "_DEBUG" /D "COMPILED_FROM_DSP" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XML_UNICODE_WCHAR_T" /FR /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /debug /machine:I386 /out:"Debug-w\libexpatw.dll"
!ENDIF
# Begin Target
# Name "expatw - Win32 Release"
# Name "expatw - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\libexpatw.def
# End Source File
# Begin Source File
SOURCE=.\xmlparse.c
!IF "$(CFG)" == "expatw - Win32 Release"
!ELSEIF "$(CFG)" == "expatw - Win32 Debug"
# ADD CPP /GX- /Od
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\xmlrole.c
# End Source File
# Begin Source File
SOURCE=.\xmltok.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\ascii.h
# End Source File
# Begin Source File
SOURCE=.\asciitab.h
# End Source File
# Begin Source File
SOURCE=.\expat.h
# End Source File
# Begin Source File
SOURCE=.\iasciitab.h
# End Source File
# Begin Source File
SOURCE=.\latin1tab.h
# End Source File
# Begin Source File
SOURCE=.\nametab.h
# End Source File
# Begin Source File
SOURCE=.\utf8tab.h
# End Source File
# Begin Source File
SOURCE=.\xmlrole.h
# End Source File
# Begin Source File
SOURCE=.\xmltok.h
# End Source File
# Begin Source File
SOURCE=.\xmltok_impl.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
+146
View File
@@ -0,0 +1,146 @@
# Microsoft Developer Studio Project File - Name="expatw_static" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=expatw_static - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "expatw_static.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "expatw_static.mak" CFG="expatw_static - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "expatw_static - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "expatw_static - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "expatw_static - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "expatw_static___Win32_Release"
# PROP BASE Intermediate_Dir "expatw_static___Win32_Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release-w_static"
# PROP Intermediate_Dir "Release-w_static"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# 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
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x1009 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Release-w_static\libexpatwMT.lib"
!ELSEIF "$(CFG)" == "expatw_static - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "expatw_static___Win32_Debug"
# PROP BASE Intermediate_Dir "expatw_static___Win32_Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug-w_static"
# PROP Intermediate_Dir "Debug-w_static"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# 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
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x1009 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Debug-w_static\libexpatwMT.lib"
!ENDIF
# Begin Target
# Name "expatw_static - Win32 Release"
# Name "expatw_static - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\xmlparse.c
# End Source File
# Begin Source File
SOURCE=.\xmlrole.c
# End Source File
# Begin Source File
SOURCE=.\xmltok.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\ascii.h
# End Source File
# Begin Source File
SOURCE=.\asciitab.h
# End Source File
# Begin Source File
SOURCE=.\expat.h
# End Source File
# Begin Source File
SOURCE=.\iasciitab.h
# End Source File
# Begin Source File
SOURCE=.\latin1tab.h
# End Source File
# Begin Source File
SOURCE=.\nametab.h
# End Source File
# Begin Source File
SOURCE=.\utf8tab.h
# End Source File
# Begin Source File
SOURCE=.\xmlrole.h
# End Source File
# Begin Source File
SOURCE=.\xmltok.h
# End Source File
# Begin Source File
SOURCE=.\xmltok_impl.h
# End Source File
# End Group
# End Target
# End Project
+2 -3
View File
@@ -1,6 +1,5 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
/* Like asciitab.h, except that 0xD has code BT_S rather than BT_CR */
+73
View File
@@ -0,0 +1,73 @@
/* internal.h
Internal definitions used by Expat. This is not needed to compile
client code.
The following calling convention macros are defined for frequently
called functions:
FASTCALL - Used for those internal functions that have a simple
body and a low number of arguments and local variables.
PTRCALL - Used for functions called though function pointers.
PTRFASTCALL - Like PTRCALL, but for low number of arguments.
inline - Used for selected internal functions for which inlining
may improve performance on some platforms.
Note: Use of these macros is based on judgement, not hard rules,
and therefore subject to change.
*/
#if defined(__GNUC__) && defined(__i386__)
/* We'll use this version by default only where we know it helps.
regparm() generates warnings on Solaris boxes. See SF bug #692878.
Instability reported with egcs on a RedHat Linux 7.3.
Let's comment out:
#define FASTCALL __attribute__((stdcall, regparm(3)))
and let's try this:
*/
#define FASTCALL __attribute__((regparm(3)))
#define PTRFASTCALL __attribute__((regparm(3)))
#endif
/* Using __fastcall seems to have an unexpected negative effect under
MS VC++, especially for function pointers, so we won't use it for
now on that platform. It may be reconsidered for a future release
if it can be made more effective.
Likely reason: __fastcall on Windows is like stdcall, therefore
the compiler cannot perform stack optimizations for call clusters.
*/
/* Make sure all of these are defined if they aren't already. */
#ifndef FASTCALL
#define FASTCALL
#endif
#ifndef PTRCALL
#define PTRCALL
#endif
#ifndef PTRFASTCALL
#define PTRFASTCALL
#endif
#ifndef XML_MIN_SIZE
#if !defined(__cplusplus) && !defined(inline)
#ifdef __GNUC__
#define inline __inline
#endif /* __GNUC__ */
#endif
#endif /* XML_MIN_SIZE */
#ifdef __cplusplus
#define inline inline
#else
#ifndef inline
#define inline
#endif
#endif
+2 -3
View File
@@ -1,6 +1,5 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
/* 0x80 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,
+69
View File
@@ -0,0 +1,69 @@
; DEF file for MS VC++
LIBRARY LIBEXPAT
DESCRIPTION "Implements an XML parser."
EXPORTS
XML_DefaultCurrent @1
XML_ErrorString @2
XML_ExpatVersion @3
XML_ExpatVersionInfo @4
XML_ExternalEntityParserCreate @5
XML_GetBase @6
XML_GetBuffer @7
XML_GetCurrentByteCount @8
XML_GetCurrentByteIndex @9
XML_GetCurrentColumnNumber @10
XML_GetCurrentLineNumber @11
XML_GetErrorCode @12
XML_GetIdAttributeIndex @13
XML_GetInputContext @14
XML_GetSpecifiedAttributeCount @15
XML_Parse @16
XML_ParseBuffer @17
XML_ParserCreate @18
XML_ParserCreateNS @19
XML_ParserCreate_MM @20
XML_ParserFree @21
XML_SetAttlistDeclHandler @22
XML_SetBase @23
XML_SetCdataSectionHandler @24
XML_SetCharacterDataHandler @25
XML_SetCommentHandler @26
XML_SetDefaultHandler @27
XML_SetDefaultHandlerExpand @28
XML_SetDoctypeDeclHandler @29
XML_SetElementDeclHandler @30
XML_SetElementHandler @31
XML_SetEncoding @32
XML_SetEndCdataSectionHandler @33
XML_SetEndDoctypeDeclHandler @34
XML_SetEndElementHandler @35
XML_SetEndNamespaceDeclHandler @36
XML_SetEntityDeclHandler @37
XML_SetExternalEntityRefHandler @38
XML_SetExternalEntityRefHandlerArg @39
XML_SetNamespaceDeclHandler @40
XML_SetNotStandaloneHandler @41
XML_SetNotationDeclHandler @42
XML_SetParamEntityParsing @43
XML_SetProcessingInstructionHandler @44
XML_SetReturnNSTriplet @45
XML_SetStartCdataSectionHandler @46
XML_SetStartDoctypeDeclHandler @47
XML_SetStartElementHandler @48
XML_SetStartNamespaceDeclHandler @49
XML_SetUnknownEncodingHandler @50
XML_SetUnparsedEntityDeclHandler @51
XML_SetUserData @52
XML_SetXmlDeclHandler @53
XML_UseParserAsHandlerArg @54
; added with version 1.95.3
XML_ParserReset @55
XML_SetSkippedEntityHandler @56
; added with version 1.95.5
XML_GetFeatureList @57
XML_UseForeignDTD @58
; added with version 1.95.6
XML_FreeContentModel @59
XML_MemMalloc @60
XML_MemRealloc @61
XML_MemFree @62
+69
View File
@@ -0,0 +1,69 @@
; DEF file for MS VC++
LIBRARY LIBEXPATW
DESCRIPTION "Implements an XML parser."
EXPORTS
XML_DefaultCurrent @1
XML_ErrorString @2
XML_ExpatVersion @3
XML_ExpatVersionInfo @4
XML_ExternalEntityParserCreate @5
XML_GetBase @6
XML_GetBuffer @7
XML_GetCurrentByteCount @8
XML_GetCurrentByteIndex @9
XML_GetCurrentColumnNumber @10
XML_GetCurrentLineNumber @11
XML_GetErrorCode @12
XML_GetIdAttributeIndex @13
XML_GetInputContext @14
XML_GetSpecifiedAttributeCount @15
XML_Parse @16
XML_ParseBuffer @17
XML_ParserCreate @18
XML_ParserCreateNS @19
XML_ParserCreate_MM @20
XML_ParserFree @21
XML_SetAttlistDeclHandler @22
XML_SetBase @23
XML_SetCdataSectionHandler @24
XML_SetCharacterDataHandler @25
XML_SetCommentHandler @26
XML_SetDefaultHandler @27
XML_SetDefaultHandlerExpand @28
XML_SetDoctypeDeclHandler @29
XML_SetElementDeclHandler @30
XML_SetElementHandler @31
XML_SetEncoding @32
XML_SetEndCdataSectionHandler @33
XML_SetEndDoctypeDeclHandler @34
XML_SetEndElementHandler @35
XML_SetEndNamespaceDeclHandler @36
XML_SetEntityDeclHandler @37
XML_SetExternalEntityRefHandler @38
XML_SetExternalEntityRefHandlerArg @39
XML_SetNamespaceDeclHandler @40
XML_SetNotStandaloneHandler @41
XML_SetNotationDeclHandler @42
XML_SetParamEntityParsing @43
XML_SetProcessingInstructionHandler @44
XML_SetReturnNSTriplet @45
XML_SetStartCdataSectionHandler @46
XML_SetStartDoctypeDeclHandler @47
XML_SetStartElementHandler @48
XML_SetStartNamespaceDeclHandler @49
XML_SetUnknownEncodingHandler @50
XML_SetUnparsedEntityDeclHandler @51
XML_SetUserData @52
XML_SetXmlDeclHandler @53
XML_UseParserAsHandlerArg @54
; added with version 1.95.3
XML_ParserReset @55
XML_SetSkippedEntityHandler @56
; added with version 1.95.5
XML_GetFeatureList @57
XML_UseForeignDTD @58
; added with version 1.95.6
XML_FreeContentModel @59
XML_MemMalloc @60
XML_MemRealloc @61
XML_MemFree @62
+104
View File
@@ -0,0 +1,104 @@
/*================================================================
** Copyright 2000, Clark Cooper
** All rights reserved.
**
** This is free software. You are permitted to copy, distribute, or modify
** it under the terms of the MIT/X license (contained in the COPYING file
** with this distribution.)
**
*/
#ifndef MACCONFIG_H
#define MACCONFIG_H
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
#define BYTEORDER 4321
/* Define to 1 if you have the `bcopy' function. */
#undef HAVE_BCOPY
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS
/* whether byteorder is bigendian */
#define WORDS_BIGENDIAN
/* Define to specify how much context to retain around the current parse
point. */
#undef XML_CONTEXT_BYTES
/* Define to make parameter entity parsing functionality available. */
#define XML_DTD
/* Define to make XML Namespaces functionality available. */
#define XML_NS
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to `long' if <sys/types.h> does not define. */
#define off_t long
/* Define to `unsigned' if <sys/types.h> does not define. */
#undef size_t
#endif /* ifndef MACCONFIG_H */
+150
View File
@@ -0,0 +1,150 @@
static const unsigned namingBitmap[] = {
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0x00000000, 0x04000000, 0x87FFFFFE, 0x07FFFFFE,
0x00000000, 0x00000000, 0xFF7FFFFF, 0xFF7FFFFF,
0xFFFFFFFF, 0x7FF3FFFF, 0xFFFFFDFE, 0x7FFFFFFF,
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFE00F, 0xFC31FFFF,
0x00FFFFFF, 0x00000000, 0xFFFF0000, 0xFFFFFFFF,
0xFFFFFFFF, 0xF80001FF, 0x00000003, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0xFFFFD740, 0xFFFFFFFB, 0x547F7FFF, 0x000FFFFD,
0xFFFFDFFE, 0xFFFFFFFF, 0xDFFEFFFF, 0xFFFFFFFF,
0xFFFF0003, 0xFFFFFFFF, 0xFFFF199F, 0x033FCFFF,
0x00000000, 0xFFFE0000, 0x027FFFFF, 0xFFFFFFFE,
0x0000007F, 0x00000000, 0xFFFF0000, 0x000707FF,
0x00000000, 0x07FFFFFE, 0x000007FE, 0xFFFE0000,
0xFFFFFFFF, 0x7CFFFFFF, 0x002F7FFF, 0x00000060,
0xFFFFFFE0, 0x23FFFFFF, 0xFF000000, 0x00000003,
0xFFF99FE0, 0x03C5FDFF, 0xB0000000, 0x00030003,
0xFFF987E0, 0x036DFDFF, 0x5E000000, 0x001C0000,
0xFFFBAFE0, 0x23EDFDFF, 0x00000000, 0x00000001,
0xFFF99FE0, 0x23CDFDFF, 0xB0000000, 0x00000003,
0xD63DC7E0, 0x03BFC718, 0x00000000, 0x00000000,
0xFFFDDFE0, 0x03EFFDFF, 0x00000000, 0x00000003,
0xFFFDDFE0, 0x03EFFDFF, 0x40000000, 0x00000003,
0xFFFDDFE0, 0x03FFFDFF, 0x00000000, 0x00000003,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0xFFFFFFFE, 0x000D7FFF, 0x0000003F, 0x00000000,
0xFEF02596, 0x200D6CAE, 0x0000001F, 0x00000000,
0x00000000, 0x00000000, 0xFFFFFEFF, 0x000003FF,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0xFFFFFFFF, 0xFFFF003F, 0x007FFFFF,
0x0007DAED, 0x50000000, 0x82315001, 0x002C62AB,
0x40000000, 0xF580C900, 0x00000007, 0x02010800,
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0x0FFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x03FFFFFF,
0x3F3FFFFF, 0xFFFFFFFF, 0xAAFF3F3F, 0x3FFFFFFF,
0xFFFFFFFF, 0x5FDFFFFF, 0x0FCF1FDC, 0x1FDC1FFF,
0x00000000, 0x00004C40, 0x00000000, 0x00000000,
0x00000007, 0x00000000, 0x00000000, 0x00000000,
0x00000080, 0x000003FE, 0xFFFFFFFE, 0xFFFFFFFF,
0x001FFFFF, 0xFFFFFFFE, 0xFFFFFFFF, 0x07FFFFFF,
0xFFFFFFE0, 0x00001FFF, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0xFFFFFFFF, 0x0000003F, 0x00000000, 0x00000000,
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0xFFFFFFFF, 0x0000000F, 0x00000000, 0x00000000,
0x00000000, 0x07FF6000, 0x87FFFFFE, 0x07FFFFFE,
0x00000000, 0x00800000, 0xFF7FFFFF, 0xFF7FFFFF,
0x00FFFFFF, 0x00000000, 0xFFFF0000, 0xFFFFFFFF,
0xFFFFFFFF, 0xF80001FF, 0x00030003, 0x00000000,
0xFFFFFFFF, 0xFFFFFFFF, 0x0000003F, 0x00000003,
0xFFFFD7C0, 0xFFFFFFFB, 0x547F7FFF, 0x000FFFFD,
0xFFFFDFFE, 0xFFFFFFFF, 0xDFFEFFFF, 0xFFFFFFFF,
0xFFFF007B, 0xFFFFFFFF, 0xFFFF199F, 0x033FCFFF,
0x00000000, 0xFFFE0000, 0x027FFFFF, 0xFFFFFFFE,
0xFFFE007F, 0xBBFFFFFB, 0xFFFF0016, 0x000707FF,
0x00000000, 0x07FFFFFE, 0x0007FFFF, 0xFFFF03FF,
0xFFFFFFFF, 0x7CFFFFFF, 0xFFEF7FFF, 0x03FF3DFF,
0xFFFFFFEE, 0xF3FFFFFF, 0xFF1E3FFF, 0x0000FFCF,
0xFFF99FEE, 0xD3C5FDFF, 0xB080399F, 0x0003FFCF,
0xFFF987E4, 0xD36DFDFF, 0x5E003987, 0x001FFFC0,
0xFFFBAFEE, 0xF3EDFDFF, 0x00003BBF, 0x0000FFC1,
0xFFF99FEE, 0xF3CDFDFF, 0xB0C0398F, 0x0000FFC3,
0xD63DC7EC, 0xC3BFC718, 0x00803DC7, 0x0000FF80,
0xFFFDDFEE, 0xC3EFFDFF, 0x00603DDF, 0x0000FFC3,
0xFFFDDFEC, 0xC3EFFDFF, 0x40603DDF, 0x0000FFC3,
0xFFFDDFEC, 0xC3FFFDFF, 0x00803DCF, 0x0000FFC3,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0xFFFFFFFE, 0x07FF7FFF, 0x03FF7FFF, 0x00000000,
0xFEF02596, 0x3BFF6CAE, 0x03FF3F5F, 0x00000000,
0x03000000, 0xC2A003FF, 0xFFFFFEFF, 0xFFFE03FF,
0xFEBF0FDF, 0x02FE3FFF, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x1FFF0000, 0x00000002,
0x000000A0, 0x003EFFFE, 0xFFFFFFFE, 0xFFFFFFFF,
0x661FFFFF, 0xFFFFFFFE, 0xFFFFFFFF, 0x77FFFFFF,
};
static const unsigned char nmstrtPages[] = {
0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00,
0x00, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x13,
0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x15, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x17,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
static const unsigned char namePages[] = {
0x19, 0x03, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x00,
0x00, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25,
0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x13,
0x26, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x27, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x17,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
+2 -3
View File
@@ -1,6 +1,5 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
+30
View File
@@ -0,0 +1,30 @@
/*================================================================
** Copyright 2000, Clark Cooper
** All rights reserved.
**
** This is free software. You are permitted to copy, distribute, or modify
** it under the terms of the MIT/X license (contained in the COPYING file
** with this distribution.)
*/
#ifndef WINCONFIG_H
#define WINCONFIG_H
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#include <memory.h>
#include <string.h>
#define XML_NS 1
#define XML_DTD 1
#define XML_CONTEXT_BYTES 1024
/* we will assume all Windows platforms are little endian */
#define BYTEORDER 1234
/* Windows has memmove() available. */
#define HAVE_MEMMOVE
#endif /* ndef WINCONFIG_H */
+5814
View File
File diff suppressed because it is too large Load Diff
+534 -476
View File
File diff suppressed because it is too large Load Diff
+27 -12
View File
@@ -1,11 +1,16 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
#ifndef XmlRole_INCLUDED
#define XmlRole_INCLUDED 1
#ifdef __VMS
/* 0 1 2 3 0 1 2 3
1234567890123456789012345678901 1234567890123456789012345678901 */
#define XmlPrologStateInitExternalEntity XmlPrologStateInitExternalEnt
#endif
#include "xmltok.h"
#ifdef __cplusplus
@@ -17,16 +22,21 @@ enum {
XML_ROLE_NONE = 0,
XML_ROLE_XML_DECL,
XML_ROLE_INSTANCE_START,
XML_ROLE_DOCTYPE_NONE,
XML_ROLE_DOCTYPE_NAME,
XML_ROLE_DOCTYPE_SYSTEM_ID,
XML_ROLE_DOCTYPE_PUBLIC_ID,
XML_ROLE_DOCTYPE_INTERNAL_SUBSET,
XML_ROLE_DOCTYPE_CLOSE,
XML_ROLE_GENERAL_ENTITY_NAME,
XML_ROLE_PARAM_ENTITY_NAME,
XML_ROLE_ENTITY_NONE,
XML_ROLE_ENTITY_VALUE,
XML_ROLE_ENTITY_SYSTEM_ID,
XML_ROLE_ENTITY_PUBLIC_ID,
XML_ROLE_ENTITY_COMPLETE,
XML_ROLE_ENTITY_NOTATION_NAME,
XML_ROLE_NOTATION_NONE,
XML_ROLE_NOTATION_NAME,
XML_ROLE_NOTATION_SYSTEM_ID,
XML_ROLE_NOTATION_NO_SYSTEM_ID,
@@ -42,11 +52,13 @@ enum {
XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS,
XML_ROLE_ATTRIBUTE_ENUM_VALUE,
XML_ROLE_ATTRIBUTE_NOTATION_VALUE,
XML_ROLE_ATTLIST_NONE,
XML_ROLE_ATTLIST_ELEMENT_NAME,
XML_ROLE_IMPLIED_ATTRIBUTE_VALUE,
XML_ROLE_REQUIRED_ATTRIBUTE_VALUE,
XML_ROLE_DEFAULT_ATTRIBUTE_VALUE,
XML_ROLE_FIXED_ATTRIBUTE_VALUE,
XML_ROLE_ELEMENT_NONE,
XML_ROLE_ELEMENT_NAME,
XML_ROLE_CONTENT_ANY,
XML_ROLE_CONTENT_EMPTY,
@@ -62,31 +74,34 @@ enum {
XML_ROLE_CONTENT_ELEMENT_REP,
XML_ROLE_CONTENT_ELEMENT_OPT,
XML_ROLE_CONTENT_ELEMENT_PLUS,
XML_ROLE_PI,
XML_ROLE_COMMENT,
#ifdef XML_DTD
XML_ROLE_TEXT_DECL,
XML_ROLE_IGNORE_SECT,
XML_ROLE_INNER_PARAM_ENTITY_REF,
#endif /* XML_DTD */
XML_ROLE_PARAM_ENTITY_REF,
XML_ROLE_EXTERNAL_GENERAL_ENTITY_NO_NOTATION
XML_ROLE_PARAM_ENTITY_REF
};
typedef struct prolog_state {
int (*handler)(struct prolog_state *state,
int tok,
const char *ptr,
const char *end,
const ENCODING *enc);
int (PTRCALL *handler) (struct prolog_state *state,
int tok,
const char *ptr,
const char *end,
const ENCODING *enc);
unsigned level;
int role_none;
#ifdef XML_DTD
unsigned includeLevel;
int documentEntity;
int inEntityValue;
#endif /* XML_DTD */
} PROLOG_STATE;
void XMLTOKAPI XmlPrologStateInit(PROLOG_STATE *);
void XmlPrologStateInit(PROLOG_STATE *);
#ifdef XML_DTD
void XMLTOKAPI XmlPrologStateInitExternalEntity(PROLOG_STATE *);
void XmlPrologStateInitExternalEntity(PROLOG_STATE *);
#endif /* XML_DTD */
#define XmlTokenRole(state, tok, ptr, end, enc) \
+408 -331
View File
File diff suppressed because it is too large Load Diff
+315
View File
@@ -0,0 +1,315 @@
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
#ifndef XmlTok_INCLUDED
#define XmlTok_INCLUDED 1
#ifdef __cplusplus
extern "C" {
#endif
/* The following token may be returned by XmlContentTok */
#define XML_TOK_TRAILING_RSQB -5 /* ] or ]] at the end of the scan; might be
start of illegal ]]> sequence */
/* The following tokens may be returned by both XmlPrologTok and
XmlContentTok.
*/
#define XML_TOK_NONE -4 /* The string to be scanned is empty */
#define XML_TOK_TRAILING_CR -3 /* A CR at the end of the scan;
might be part of CRLF sequence */
#define XML_TOK_PARTIAL_CHAR -2 /* only part of a multibyte sequence */
#define XML_TOK_PARTIAL -1 /* only part of a token */
#define XML_TOK_INVALID 0
/* The following tokens are returned by XmlContentTok; some are also
returned by XmlAttributeValueTok, XmlEntityTok, XmlCdataSectionTok.
*/
#define XML_TOK_START_TAG_WITH_ATTS 1
#define XML_TOK_START_TAG_NO_ATTS 2
#define XML_TOK_EMPTY_ELEMENT_WITH_ATTS 3 /* empty element tag <e/> */
#define XML_TOK_EMPTY_ELEMENT_NO_ATTS 4
#define XML_TOK_END_TAG 5
#define XML_TOK_DATA_CHARS 6
#define XML_TOK_DATA_NEWLINE 7
#define XML_TOK_CDATA_SECT_OPEN 8
#define XML_TOK_ENTITY_REF 9
#define XML_TOK_CHAR_REF 10 /* numeric character reference */
/* The following tokens may be returned by both XmlPrologTok and
XmlContentTok.
*/
#define XML_TOK_PI 11 /* processing instruction */
#define XML_TOK_XML_DECL 12 /* XML decl or text decl */
#define XML_TOK_COMMENT 13
#define XML_TOK_BOM 14 /* Byte order mark */
/* The following tokens are returned only by XmlPrologTok */
#define XML_TOK_PROLOG_S 15
#define XML_TOK_DECL_OPEN 16 /* <!foo */
#define XML_TOK_DECL_CLOSE 17 /* > */
#define XML_TOK_NAME 18
#define XML_TOK_NMTOKEN 19
#define XML_TOK_POUND_NAME 20 /* #name */
#define XML_TOK_OR 21 /* | */
#define XML_TOK_PERCENT 22
#define XML_TOK_OPEN_PAREN 23
#define XML_TOK_CLOSE_PAREN 24
#define XML_TOK_OPEN_BRACKET 25
#define XML_TOK_CLOSE_BRACKET 26
#define XML_TOK_LITERAL 27
#define XML_TOK_PARAM_ENTITY_REF 28
#define XML_TOK_INSTANCE_START 29
/* The following occur only in element type declarations */
#define XML_TOK_NAME_QUESTION 30 /* name? */
#define XML_TOK_NAME_ASTERISK 31 /* name* */
#define XML_TOK_NAME_PLUS 32 /* name+ */
#define XML_TOK_COND_SECT_OPEN 33 /* <![ */
#define XML_TOK_COND_SECT_CLOSE 34 /* ]]> */
#define XML_TOK_CLOSE_PAREN_QUESTION 35 /* )? */
#define XML_TOK_CLOSE_PAREN_ASTERISK 36 /* )* */
#define XML_TOK_CLOSE_PAREN_PLUS 37 /* )+ */
#define XML_TOK_COMMA 38
/* The following token is returned only by XmlAttributeValueTok */
#define XML_TOK_ATTRIBUTE_VALUE_S 39
/* The following token is returned only by XmlCdataSectionTok */
#define XML_TOK_CDATA_SECT_CLOSE 40
/* With namespace processing this is returned by XmlPrologTok for a
name with a colon.
*/
#define XML_TOK_PREFIXED_NAME 41
#ifdef XML_DTD
#define XML_TOK_IGNORE_SECT 42
#endif /* XML_DTD */
#ifdef XML_DTD
#define XML_N_STATES 4
#else /* not XML_DTD */
#define XML_N_STATES 3
#endif /* not XML_DTD */
#define XML_PROLOG_STATE 0
#define XML_CONTENT_STATE 1
#define XML_CDATA_SECTION_STATE 2
#ifdef XML_DTD
#define XML_IGNORE_SECTION_STATE 3
#endif /* XML_DTD */
#define XML_N_LITERAL_TYPES 2
#define XML_ATTRIBUTE_VALUE_LITERAL 0
#define XML_ENTITY_VALUE_LITERAL 1
/* The size of the buffer passed to XmlUtf8Encode must be at least this. */
#define XML_UTF8_ENCODE_MAX 4
/* The size of the buffer passed to XmlUtf16Encode must be at least this. */
#define XML_UTF16_ENCODE_MAX 2
typedef struct position {
/* first line and first column are 0 not 1 */
unsigned long lineNumber;
unsigned long columnNumber;
} POSITION;
typedef struct {
const char *name;
const char *valuePtr;
const char *valueEnd;
char normalized;
} ATTRIBUTE;
struct encoding;
typedef struct encoding ENCODING;
typedef int (PTRCALL *SCANNER)(const ENCODING *,
const char *,
const char *,
const char **);
struct encoding {
SCANNER scanners[XML_N_STATES];
SCANNER literalScanners[XML_N_LITERAL_TYPES];
int (PTRCALL *sameName)(const ENCODING *,
const char *,
const char *);
int (PTRCALL *nameMatchesAscii)(const ENCODING *,
const char *,
const char *,
const char *);
int (PTRFASTCALL *nameLength)(const ENCODING *, const char *);
const char *(PTRFASTCALL *skipS)(const ENCODING *, const char *);
int (PTRCALL *getAtts)(const ENCODING *enc,
const char *ptr,
int attsMax,
ATTRIBUTE *atts);
int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
int (PTRCALL *predefinedEntityName)(const ENCODING *,
const char *,
const char *);
void (PTRCALL *updatePosition)(const ENCODING *,
const char *ptr,
const char *end,
POSITION *);
int (PTRCALL *isPublicId)(const ENCODING *enc,
const char *ptr,
const char *end,
const char **badPtr);
void (PTRCALL *utf8Convert)(const ENCODING *enc,
const char **fromP,
const char *fromLim,
char **toP,
const char *toLim);
void (PTRCALL *utf16Convert)(const ENCODING *enc,
const char **fromP,
const char *fromLim,
unsigned short **toP,
const unsigned short *toLim);
int minBytesPerChar;
char isUtf8;
char isUtf16;
};
/* Scan the string starting at ptr until the end of the next complete
token, but do not scan past eptr. Return an integer giving the
type of token.
Return XML_TOK_NONE when ptr == eptr; nextTokPtr will not be set.
Return XML_TOK_PARTIAL when the string does not contain a complete
token; nextTokPtr will not be set.
Return XML_TOK_INVALID when the string does not start a valid
token; nextTokPtr will be set to point to the character which made
the token invalid.
Otherwise the string starts with a valid token; nextTokPtr will be
set to point to the character following the end of that token.
Each data character counts as a single token, but adjacent data
characters may be returned together. Similarly for characters in
the prolog outside literals, comments and processing instructions.
*/
#define XmlTok(enc, state, ptr, end, nextTokPtr) \
(((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
#define XmlPrologTok(enc, ptr, end, nextTokPtr) \
XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
#define XmlContentTok(enc, ptr, end, nextTokPtr) \
XmlTok(enc, XML_CONTENT_STATE, ptr, end, nextTokPtr)
#define XmlCdataSectionTok(enc, ptr, end, nextTokPtr) \
XmlTok(enc, XML_CDATA_SECTION_STATE, ptr, end, nextTokPtr)
#ifdef XML_DTD
#define XmlIgnoreSectionTok(enc, ptr, end, nextTokPtr) \
XmlTok(enc, XML_IGNORE_SECTION_STATE, ptr, end, nextTokPtr)
#endif /* XML_DTD */
/* This is used for performing a 2nd-level tokenization on the content
of a literal that has already been returned by XmlTok.
*/
#define XmlLiteralTok(enc, literalType, ptr, end, nextTokPtr) \
(((enc)->literalScanners[literalType])(enc, ptr, end, nextTokPtr))
#define XmlAttributeValueTok(enc, ptr, end, nextTokPtr) \
XmlLiteralTok(enc, XML_ATTRIBUTE_VALUE_LITERAL, ptr, end, nextTokPtr)
#define XmlEntityValueTok(enc, ptr, end, nextTokPtr) \
XmlLiteralTok(enc, XML_ENTITY_VALUE_LITERAL, ptr, end, nextTokPtr)
#define XmlSameName(enc, ptr1, ptr2) (((enc)->sameName)(enc, ptr1, ptr2))
#define XmlNameMatchesAscii(enc, ptr1, end1, ptr2) \
(((enc)->nameMatchesAscii)(enc, ptr1, end1, ptr2))
#define XmlNameLength(enc, ptr) \
(((enc)->nameLength)(enc, ptr))
#define XmlSkipS(enc, ptr) \
(((enc)->skipS)(enc, ptr))
#define XmlGetAttributes(enc, ptr, attsMax, atts) \
(((enc)->getAtts)(enc, ptr, attsMax, atts))
#define XmlCharRefNumber(enc, ptr) \
(((enc)->charRefNumber)(enc, ptr))
#define XmlPredefinedEntityName(enc, ptr, end) \
(((enc)->predefinedEntityName)(enc, ptr, end))
#define XmlUpdatePosition(enc, ptr, end, pos) \
(((enc)->updatePosition)(enc, ptr, end, pos))
#define XmlIsPublicId(enc, ptr, end, badPtr) \
(((enc)->isPublicId)(enc, ptr, end, badPtr))
#define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \
(((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
#define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \
(((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim))
typedef struct {
ENCODING initEnc;
const ENCODING **encPtr;
} INIT_ENCODING;
int XmlParseXmlDecl(int isGeneralTextEntity,
const ENCODING *enc,
const char *ptr,
const char *end,
const char **badPtr,
const char **versionPtr,
const char **versionEndPtr,
const char **encodingNamePtr,
const ENCODING **namedEncodingPtr,
int *standalonePtr);
int XmlInitEncoding(INIT_ENCODING *, const ENCODING **, const char *name);
const ENCODING *XmlGetUtf8InternalEncoding(void);
const ENCODING *XmlGetUtf16InternalEncoding(void);
int FASTCALL XmlUtf8Encode(int charNumber, char *buf);
int FASTCALL XmlUtf16Encode(int charNumber, unsigned short *buf);
int XmlSizeOfUnknownEncoding(void);
typedef int (*CONVERTER)(void *userData, const char *p);
ENCODING *
XmlInitUnknownEncoding(void *mem,
int *table,
CONVERTER convert,
void *userData);
int XmlParseXmlDeclNS(int isGeneralTextEntity,
const ENCODING *enc,
const char *ptr,
const char *end,
const char **badPtr,
const char **versionPtr,
const char **versionEndPtr,
const char **encodingNamePtr,
const ENCODING **namedEncodingPtr,
int *standalonePtr);
int XmlInitEncodingNS(INIT_ENCODING *, const ENCODING **, const char *name);
const ENCODING *XmlGetUtf8InternalEncodingNS(void);
const ENCODING *XmlGetUtf16InternalEncodingNS(void);
ENCODING *
XmlInitUnknownEncodingNS(void *mem,
int *table,
CONVERTER convert,
void *userData);
#ifdef __cplusplus
}
#endif
#endif /* not XmlTok_INCLUDED */
+484 -470
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
/*
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
See the file COPYING for copying permission.
*/
enum {
+106
View File
@@ -0,0 +1,106 @@
const ENCODING *
NS(XmlGetUtf8InternalEncoding)(void)
{
return &ns(internal_utf8_encoding).enc;
}
const ENCODING *
NS(XmlGetUtf16InternalEncoding)(void)
{
#if BYTEORDER == 1234
return &ns(internal_little2_encoding).enc;
#elif BYTEORDER == 4321
return &ns(internal_big2_encoding).enc;
#else
const short n = 1;
return (*(const char *)&n
? &ns(internal_little2_encoding).enc
: &ns(internal_big2_encoding).enc);
#endif
}
static const ENCODING *NS(encodings)[] = {
&ns(latin1_encoding).enc,
&ns(ascii_encoding).enc,
&ns(utf8_encoding).enc,
&ns(big2_encoding).enc,
&ns(big2_encoding).enc,
&ns(little2_encoding).enc,
&ns(utf8_encoding).enc /* NO_ENC */
};
static int PTRCALL
NS(initScanProlog)(const ENCODING *enc, const char *ptr, const char *end,
const char **nextTokPtr)
{
return initScan(NS(encodings), (const INIT_ENCODING *)enc,
XML_PROLOG_STATE, ptr, end, nextTokPtr);
}
static int PTRCALL
NS(initScanContent)(const ENCODING *enc, const char *ptr, const char *end,
const char **nextTokPtr)
{
return initScan(NS(encodings), (const INIT_ENCODING *)enc,
XML_CONTENT_STATE, ptr, end, nextTokPtr);
}
int
NS(XmlInitEncoding)(INIT_ENCODING *p, const ENCODING **encPtr,
const char *name)
{
int i = getEncodingIndex(name);
if (i == UNKNOWN_ENC)
return 0;
SET_INIT_ENC_INDEX(p, i);
p->initEnc.scanners[XML_PROLOG_STATE] = NS(initScanProlog);
p->initEnc.scanners[XML_CONTENT_STATE] = NS(initScanContent);
p->initEnc.updatePosition = initUpdatePosition;
p->encPtr = encPtr;
*encPtr = &(p->initEnc);
return 1;
}
static const ENCODING *
NS(findEncoding)(const ENCODING *enc, const char *ptr, const char *end)
{
#define ENCODING_MAX 128
char buf[ENCODING_MAX];
char *p = buf;
int i;
XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
if (ptr != end)
return 0;
*p = 0;
if (streqci(buf, KW_UTF_16) && enc->minBytesPerChar == 2)
return enc;
i = getEncodingIndex(buf);
if (i == UNKNOWN_ENC)
return 0;
return NS(encodings)[i];
}
int
NS(XmlParseXmlDecl)(int isGeneralTextEntity,
const ENCODING *enc,
const char *ptr,
const char *end,
const char **badPtr,
const char **versionPtr,
const char **versionEndPtr,
const char **encodingName,
const ENCODING **encoding,
int *standalone)
{
return doParseXmlDecl(NS(findEncoding),
isGeneralTextEntity,
enc,
ptr,
end,
badPtr,
versionPtr,
versionEndPtr,
encodingName,
encoding,
standalone);
}
+76
View File
@@ -0,0 +1,76 @@
#! /bin/bash
#
# make-release.sh: make an Expat release
#
# USAGE: make-release.sh tagname
#
# Note: tagname may be HEAD to just grab the head revision (e.g. for testing)
#
CVSROOT=':ext:cvs.libexpat.org:/cvsroot/expat'
#CVSROOT=':pserver:anonymous@cvs.libexpat.org:/cvsroot/expat'
if test $# != 1; then
echo "USAGE: $0 tagname"
exit 1
fi
tmpdir=expat-release.$$
if test -e $tmpdir; then
echo "ERROR: oops. chose the $tmpdir subdir, but it exists."
exit 1
fi
echo "Checking out into temporary area: $tmpdir"
cvs -d "$CVSROOT" export -r "$1" -d $tmpdir expat || exit 1
echo ""
echo "----------------------------------------------------------------------"
echo "Preparing $tmpdir for release (running buildconf.sh)"
(cd $tmpdir && ./buildconf.sh) || exit 1
# figure out the release version
vsn="`$tmpdir/conftools/get-version.sh $tmpdir/lib/expat.h`"
echo ""
echo "Release version: $vsn"
if test "$1" = HEAD ; then
distdir=expat-`date '+%Y-%m-%d'`
else
distdir=expat-$vsn
fi
if test -e $distdir; then
echo "ERROR: for safety, you must manually remove $distdir."
rm -rf $tmpdir
exit 1
fi
mkdir $distdir || exit 1
CPOPTS=-Pp
if (cp --version 2>/dev/null | grep -q 'Free Software Foundation') ; then
# If we're using GNU cp, we can avoid the warnings about forward
# compatibility of the options.
CPOPTS='--parents --preserve'
fi
echo ""
echo "----------------------------------------------------------------------"
echo "Building $distdir based on the MANIFEST:"
files="`sed -e 's/[ ]:.*$//' $tmpdir/MANIFEST`"
for file in $files; do
echo "Copying $file..."
(cd $tmpdir && cp $CPOPTS $file ../$distdir) || exit 1
done
echo ""
echo "----------------------------------------------------------------------"
echo "Removing (temporary) checkout directory..."
rm -rf $tmpdir
tarball=$distdir.tar.gz
echo "Constructing $tarball..."
tar cf - $distdir | gzip -9 > $tarball || exit $?
rm -r $distdir
echo "Done."
-7
View File
@@ -1,7 +0,0 @@
xcopy /y xmltok\Release\xmltok.lib lib
xcopy /y xmlparse\Release\xmlparse.lib lib
rm -f expat.zip
cd ..
sed -e 's;^^;expat/;' expat\files.txt | zip -qr expat\expat.zip -@ -ll
sed -e 's;^^;expat/;' expat\win32files.txt | zip -qr expat\expat.zip -@
cd expat
-4
View File
@@ -1,4 +0,0 @@
@echo off
set LIB=..\xmlparse\Release;..\lib;%LIB%
cl /nologo /DXMLTOKAPI=__declspec(dllimport) /DXMLPARSEAPI=__declspec(dllimport) /I..\xmlparse /Fe..\bin\elements elements.c xmlparse.lib
@echo Run it using: ..\bin\elements ^<..\expat.html
+5
View File
@@ -0,0 +1,5 @@
Makefile
runtests
xmlts.zip
XML-Test-Suite
.libs
+14
View File
@@ -0,0 +1,14 @@
This directory contains the (fledgling) test suite for Expat. The
tests provide general unit testing and regression coverage. The tests
are not expected to be useful examples of Expat usage; see the
examples/ directory for that.
The Expat tests use the "Check" unit testing framework for C. More
information on Check can be found at:
http://check.sourceforge.net/
Check 0.8 must be installed before the unit tests can be compiled & run.
Since both Check and this test suite are young, it can all change in a
later version.
+16
View File
@@ -0,0 +1,16 @@
Use this benchmark command line utility as follows:
benchmark [-n] <file name> <buffer size> <# iterations>
The command line arguments are:
-n ... optional; if supplied, then namespace processing is turned on
<file name> ... name/path of test xml file
<buffer size> ... size of processing buffer;
the file is parsed in chunks of this size
<# iterations> ... how often will the file be parsed
Returns:
The time (in seconds) it takes to parse the test file,
averaged of the number of iterations.@
+101
View File
@@ -0,0 +1,101 @@
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "expat.h"
static void
usage(const char *prog, int rc)
{
fprintf(stderr,
"usage: %s [-n] filename bufferSize nr_of_loops\n", prog);
exit(rc);
}
int main (int argc, char *argv[])
{
XML_Parser parser;
char *XMLBuf, *XMLBufEnd, *XMLBufPtr;
FILE *fd;
struct stat fileAttr;
int nrOfLoops, bufferSize, fileSize, i, isFinal;
int j = 0, ns = 0;
clock_t tstart, tend;
double cpuTime = 0.0;
if (argc > 1) {
if (argv[1][0] == '-') {
if (argv[1][1] == 'n' && argv[1][2] == '\0') {
ns = 1;
j = 1;
}
else
usage(argv[0], 1);
}
}
if (argc != j + 4)
usage(argv[0], 1);
if (stat (argv[j + 1], &fileAttr) != 0) {
fprintf (stderr, "could not access file '%s'\n", argv[j + 1]);
return 2;
}
fd = fopen (argv[j + 1], "r");
if (!fd) {
fprintf (stderr, "could not open file '%s'\n", argv[j + 1]);
exit(2);
}
bufferSize = atoi (argv[j + 2]);
nrOfLoops = atoi (argv[j + 3]);
if (bufferSize <= 0 || nrOfLoops <= 0) {
fprintf (stderr,
"buffer size and nr of loops must be greater than zero.\n");
exit(3);
}
XMLBuf = malloc (fileAttr.st_size);
fileSize = fread (XMLBuf, sizeof (char), fileAttr.st_size, fd);
fclose (fd);
i = 0;
XMLBufEnd = XMLBuf + fileSize;
while (i < nrOfLoops) {
XMLBufPtr = XMLBuf;
isFinal = 0;
if (ns)
parser = XML_ParserCreateNS(NULL, '!');
else
parser = XML_ParserCreate(NULL);
tstart = clock();
do {
int parseBufferSize = XMLBufEnd - XMLBufPtr;
if (parseBufferSize <= bufferSize)
isFinal = 1;
else
parseBufferSize = bufferSize;
if (!XML_Parse (parser, XMLBufPtr, parseBufferSize, isFinal)) {
fprintf (stderr, "error '%s' at line %d character %d\n",
XML_ErrorString (XML_GetErrorCode (parser)),
XML_GetCurrentLineNumber (parser),
XML_GetCurrentColumnNumber (parser));
free (XMLBuf);
XML_ParserFree (parser);
exit (4);
}
XMLBufPtr += bufferSize;
} while (!isFinal);
tend = clock();
cpuTime += ((double) (tend - tstart)) / CLOCKS_PER_SEC;
XML_ParserFree (parser);
i++;
}
free (XMLBuf);
printf ("%d loops, with buffer size %d. Average time per loop: %f\n",
nrOfLoops, bufferSize, cpuTime / (double) nrOfLoops);
return 0;
}
+88
View File
@@ -0,0 +1,88 @@
# Microsoft Developer Studio Project File - Name="benchmark" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=benchmark - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "benchmark.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "benchmark.mak" CFG="benchmark - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "benchmark - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "benchmark - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "benchmark - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /I "..\..\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x1009 /d "NDEBUG"
# ADD RSC /l 0x1009 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
!ELSEIF "$(CFG)" == "benchmark - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\..\lib" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD BASE RSC /l 0x1009 /d "_DEBUG"
# ADD RSC /l 0x1009 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "benchmark - Win32 Release"
# Name "benchmark - Win32 Debug"
# Begin Source File
SOURCE=.\benchmark.c
# End Source File
# End Target
# End Project
+44
View File
@@ -0,0 +1,44 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "benchmark"=.\benchmark.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name expat
End Project Dependency
}}}
###############################################################################
Project: "expat"=..\..\lib\expat.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
+132
View File
@@ -0,0 +1,132 @@
/* Copyright (c) 1998-2003 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
chardata.c
*/
#ifdef HAVE_EXPAT_CONFIG_H
#include <expat_config.h>
#endif
#ifdef HAVE_CHECK_H
#include <check.h>
#else
#error This test suite requires the 'check' unit test framework (http://check.sf.net/)
#endif
#include <assert.h>
#include <check.h>
#include <stdio.h>
#include <string.h>
#include "chardata.h"
static int
xmlstrlen(const XML_Char *s)
{
int len = 0;
assert(s != NULL);
while (s[len] != 0)
++len;
return len;
}
void
CharData_Init(CharData *storage)
{
assert(storage != NULL);
storage->count = -1;
}
void
CharData_AppendString(CharData *storage, const char *s)
{
int maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
int len;
assert(s != NULL);
len = strlen(s);
if (storage->count < 0)
storage->count = 0;
if ((len + storage->count) > maxchars) {
len = (maxchars - storage->count);
}
if (len + storage->count < sizeof(storage->data)) {
memcpy(storage->data + storage->count, s, len);
storage->count += len;
}
}
void
CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len)
{
int maxchars;
assert(storage != NULL);
assert(s != NULL);
maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
if (storage->count < 0)
storage->count = 0;
if (len < 0)
len = xmlstrlen(s);
if ((len + storage->count) > maxchars) {
len = (maxchars - storage->count);
}
if (len + storage->count < sizeof(storage->data)) {
memcpy(storage->data + storage->count, s,
len * sizeof(storage->data[0]));
storage->count += len;
}
}
int
CharData_CheckString(CharData *storage, const char *expected)
{
char buffer[1280];
int len;
int count;
assert(storage != NULL);
assert(expected != NULL);
count = (storage->count < 0) ? 0 : storage->count;
len = strlen(expected);
if (len != count) {
if (sizeof(XML_Char) == 1)
sprintf(buffer, "wrong number of data characters:"
" got %d, expected %d:\n%s", count, len, storage->data);
else
sprintf(buffer,
"wrong number of data characters: got %d, expected %d",
count, len);
fail(buffer);
return 0;
}
if (memcmp(expected, storage->data, len) != 0) {
fail("got bad data bytes");
return 0;
}
return 1;
}
int
CharData_CheckXMLChars(CharData *storage, const XML_Char *expected)
{
char buffer[1024];
int len = xmlstrlen(expected);
int count;
assert(storage != NULL);
count = (storage->count < 0) ? 0 : storage->count;
if (len != count) {
sprintf(buffer, "wrong number of data characters: got %d, expected %d",
count, len);
fail(buffer);
return 0;
}
if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) {
fail("got bad data bytes");
return 0;
}
return 1;
}
+32
View File
@@ -0,0 +1,32 @@
/* chardata.h
Interface to some helper routines used to accumulate and check text
and attribute content.
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of chars, < 0 if not set */
XML_Char data[1024];
} CharData;
void CharData_Init(CharData *storage);
void CharData_AppendString(CharData *storage, const char *s);
void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
int CharData_CheckString(CharData *storage, const char *s);
int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
#endif /* XML_CHARDATA_H */

Some files were not shown because too many files have changed in this diff Show More