Commit Graph

924 Commits

Author SHA1 Message Date
Karl Waclawek
69af7dedff Fixed compile errors when XML_DTD and XML_CONTEXT_BYTES
were undefined.
2004-04-29 17:53:34 +00:00
Karl Waclawek
e55585a9ee Added note about the effects on well-formedness checking when
calling XML_UseForeignDTD(parser, XML_TRUE).
2004-04-27 00:50:50 +00:00
Karl Waclawek
edca100c0c Added comment about the effects on well-formedness checking after
calling XML_UseForeignDTD(parser, XML_TRUE).
2004-04-27 00:49:34 +00:00
Karl Waclawek
6361de48a2 Would not build on Linux without including stddef.h before
including external.h.
2004-04-24 23:56:41 +00:00
Karl Waclawek
149774b6ec Fix for bug #920274. 2004-04-13 13:17:59 +00:00
Fred L. Drake, Jr.
8e56c54876 update URL to the mailing lists page 2004-04-02 21:53:40 +00:00
Karl Waclawek
9b665601fd Fix for bug #923913, Calling convention problems.
For details see bug description.
2004-03-26 14:24:11 +00:00
Karl Waclawek
22fc8d15d4 Changed to allow aborting a suspended parser instance. 2004-03-16 22:14:31 +00:00
Karl Waclawek
9c48460b5e Removed ability to suspend while parsing an external parameter entity.
The problem is that on return from the externalEntityRefHandler() call-back
the parser currently assumes that parsing of the parameter entity is finished,
and updates its internal state accordingly. I do not have the time at this
point to implement and test a solution. Being able to suspend while parsing
the DTD is also less desirable than doing the same while parsing content.
2004-03-16 20:29:28 +00:00
Karl Waclawek
c50aeb9f9c When the parser was suspended while processing an internal entity,
an XML_ERROR_NO_ELEMENTS condition could happen.
The reason was that the internal entity's start tag level was not preserved
when parsing was suspended. This has been corrected.
2004-03-16 04:41:54 +00:00
Karl Waclawek
86f4b1471b Fixed the XML_GetCurrentLine/ColumnNumber() functions so that
they don't produce an access violation when the value of eventPtr is
less than the value of positionPtr. This can happen when a handler
raises an exception or potentially in some border cases.

Also added some more updates of eventPtr.
2004-03-16 04:27:18 +00:00
Karl Waclawek
2a3e8fa423 Changed signature of XML_GetParsingStatus(), changing the return value
to a parameter passed by reference (pointer). It seems that  the processing
of return values is not standardized, even when calling convention and
platform are specified. This should make Expat more usable as a shared library.
2004-03-16 03:53:24 +00:00
Karl Waclawek
5d1062a57d Fix for bug #916228. 2004-03-15 00:34:12 +00:00
Karl Waclawek
28ede67c7f Improved comments for XML_StopParser() and XML_ResumeParser(). 2004-03-10 15:56:11 +00:00
Karl Waclawek
cab3befee5 Applied a simplified version of Jeremy Kloth's patch for bug #896188.
Also removed some code that was never executed, because the condition
(prologState.documentEntity && role == XML_ROLE_INNER_PARAM_ENTITY_REF)
can never be true. Improved some comments as well.
2004-02-13 18:11:51 +00:00
Karl Waclawek
3cb7a47584 Made these compiler warnings go away:
- not all cases handled for switch based an enumeration:
  added default: ; where appropriate
- char* passed where const char* was expected:
  changed variable declarations to const char*
2004-02-11 16:42:40 +00:00
Fred L. Drake, Jr.
5f7ed9e1d9 update version number (closes SF patch #841591) 2004-01-29 00:11:32 +00:00
Karl Waclawek
100e0bd4a2 Cosmetic changes in function signatures - for consistency. 2004-01-27 01:48:58 +00:00
Fred L. Drake, Jr.
b57b602cf0 add MSVC 6 project files to the source distribution
closes SF bug #856659
2004-01-21 21:30:54 +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.
f5092bbff6 Defined HAVE_EXPAT_CONFIG_H when building on VMS.
Closes SF bug #840173.
2003-11-17 15:36:02 +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.
441247cf0c remove unused stanzas 2003-11-02 18:14:11 +00:00
Fred L. Drake, Jr.
8b57439995 Simplify preprocessor construct. 2003-11-02 09:44:55 +00:00
Fred L. Drake, Jr.
d11807a7b5 Allow the configure script to set where manpages go using --mandir.
Closes SF bug #827319.
2003-11-02 08:21:30 +00:00
Fred L. Drake, Jr.
0a0a850ae7 added regression test for SF bug #824420:
in non-namespace mode, Expat reported the use of an unbound namespace
when encountering an element that looks like it has a namespace prefix
(were namespaces enabled) and there's a definition for that prefix in
the DTD
2003-11-02 08:12:46 +00:00
Fred L. Drake, Jr.
b2686e7b0f update the dates 2003-10-30 19:59:50 +00:00
Fred L. Drake, Jr.
fba15ab94c remove unnecessary typecast 2003-10-30 14:58:39 +00:00
Fred L. Drake, Jr.
556f1650b1 extend the "Communicating between handlers" section a bit; needed to
mention the need to accumulate data between calls to the character
data handler
2003-10-28 21:25:43 +00:00
Karl Waclawek
e16720329e Make XML_ParserFree() null-safe, so that it behaves
like the standard free() memory deallocation function.
2003-10-26 08:13:54 +00:00
Karl Waclawek
bd816ff175 Corrected docs regarding Win32 builds with MS VC++. 2003-10-24 00:40:54 +00:00
Karl Waclawek
9b01868388 Cleaned up make files and improved docs. 2003-10-24 00:39:42 +00:00
Fred L. Drake, Jr.
216def7c39 make sure we pick up the Expat logo in the doc directory 2003-10-21 17:05:43 +00:00
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.
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