Commit Graph

884 Commits

Author SHA1 Message Date
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.
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.
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
Karl Waclawek
8128549ff1 Corrected typo. 2003-09-05 00:42:46 +00:00
Karl Waclawek
8ffc7e6556 Explains usage of benchmark utility. 2003-09-04 16:13:10 +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.
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.
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.
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