Commit Graph

111 Commits

Author SHA1 Message Date
Karl Waclawek
100e0bd4a2 Cosmetic changes in function signatures - for consistency. 2004-01-27 01:48:58 +00:00
Fred L. Drake, Jr.
3fc33bf3b6 suggested patch from SF bug #846309:
avoid generating spurious warning from GCC on non-x86 platforms
2004-01-20 16:04:47 +00:00
Karl Waclawek
2335294f7c Applied patch #835123: Suspend/Resume functionality.
For details check the patch description.
2004-01-07 17:12:04 +00:00
Fred L. Drake, Jr.
1b3f0f6b1f bump the version number since the code has changed, however slightly 2003-11-02 20:37:22 +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
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.
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.
fa49735f8a - bump the versioning information
- start describing the changes in 1.95.7
2003-07-15 15:20:35 +00:00
Fred L. Drake, Jr.
5bd3d020d3 - better explain the XML_GetCurrent*() functions (SF bug #683681) 2003-03-13 02:17:48 +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
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
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
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
Karl Waclawek
e6802bb514 Fix for bug/feature request #653180. 2002-12-16 04:02:02 +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
Fred L. Drake, Jr.
47d66b73ba Remove trailing whitespace. 2002-11-12 21:44:18 +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
Karl Waclawek
b6a92c7a8f Improved documentation of XML_ExternalEntityRefHandler. 2002-10-17 16:47:45 +00:00
Fred L. Drake, Jr.
6fca489398 Bump version numbers. 2002-10-07 20:26:31 +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.
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.
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.
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.
bb761420b6 XML_GetFeatureList(): New API function. 2002-08-26 17:19:41 +00:00
Karl Waclawek
4e5aedecfa Applied patch #599715: Enable undeclared DTD 2002-08-26 15:04:19 +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.
9f99125a39 Preliminary version number increment. 2002-08-22 21:32:39 +00:00
Karl Waclawek
de7c8418bb Applied patch for bug #596931: XML_ParseReset and memory leaks. 2002-08-21 20:00: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.
56ba3dc676 Add definitions to support Boolean values in the Expat API. 2002-07-31 22:10:42 +00:00
Fred L. Drake, Jr.
f44e4a0b87 Fixup whitespace. 2002-07-15 19:57:34 +00:00
Karl Waclawek
cc6d031e9e Applied modified version of patch #578161. 2002-07-09 20:58:17 +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.
449599e363 There've been patches since 1.95.3, so bump the version number. 2002-06-12 19:43:51 +00:00
Karl Waclawek
b825301fc1 Applied patch # 559910 - New SkippedEntityHandler 2002-06-09 00:01:43 +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.
0bd69962db Bring indentation consistency to the header comments. 2002-05-22 04:04:39 +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
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
d3947b2fef follow Fred's footsteps and reformat the copyright header. 2002-05-17 21:23:35 +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
Karl Waclawek
59d1c05288 XML_UNICODE fixes 2002-04-23 13:48:50 +00:00
Fred L. Drake, Jr.
94cf789277 Bump version number. 2002-04-20 21:17:15 +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
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.
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.
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
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
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
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
e8b7b5fa4f Fixes to allow DLLs to built under Windows. 2000-09-28 17:53:00 +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
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