Commit graph

902 commits

Author SHA1 Message Date
Karl Waclawek
b3ab45b8ec Fix for bug # 1271642. 2005-11-24 14:15:22 +00:00
Karl Waclawek
cbf8ace5fb Fix for bug #1221160. 2005-06-15 14:24:26 +00:00
Karl Waclawek
1da4815bbe Applied patch for bug # 1156398. 2005-03-04 02:20:32 +00:00
Steven Solie
e6beafd504 Added AmigaOS support. 2005-02-26 01:38:13 +00:00
Fred L. Drake, Jr.
51c170f0cd Report XML_NS setting via XML_GetFeatureList(). 2005-01-29 04:48:44 +00:00
Fred L. Drake, Jr.
a9444dc7a9 rename macros: "parsing" -> "ps_parsing", "finalBuffer" -> "ps_finalBuffer"
(closes SF bug #1021776: Recursion in macro "parsing", HP 11.0)
2005-01-29 02:28:33 +00:00
Karl Waclawek
d106fb41b7 "if (ns)" check in addBinding() is not necessary, since it is only
called when namespace processing is turned on.
2004-12-24 18:25:32 +00:00
Karl Waclawek
57081d0c3c Fix for bug # 695407: Reserved prefixes and namespace names.
Contributed by Peter van der Beken.
2004-12-24 18:00:28 +00:00
Karl Waclawek
f47aaad2cd Fix for bug # 1090885: Problem with Suspend/Resume mechanism.
The code path through XML_Parse() when XML_CONTEXT_BYTES
was not defined, did not take into account that XML_ResumParser()
uses bufferPtr and parseEndPtr as the pointers into the working buffer.
2004-12-24 16:30:25 +00:00
Karl Waclawek
7f56ceddbf Improved error message - see bug # 972802. 2004-12-21 18:30:52 +00:00
Karl Waclawek
837398fadb Made it consistent that in the case of namespace triplets, the namespace
separator between local name and prefix is always present, even when
it is omitted between uri and local name.
2004-12-20 05:04:41 +00:00
Karl Waclawek
1f86de6168 Fixed comment for XML_ParserCreateNS. 2004-12-20 03:19:09 +00:00
Karl Waclawek
781e89ed08 Fix for bug #1065040. Improved const correctness.
Minor improvement of XML_GetFeatureList().
2004-11-26 15:16:17 +00:00
Karl Waclawek
4fe9e56a02 Fix for bug #1065042. Improved const correctness. 2004-11-26 15:00:38 +00:00
Karl Waclawek
bbe86f3dff Fix for bug #1065047. Improved const correctness. 2004-11-26 14:58:24 +00:00
Karl Waclawek
d265895d31 Fix for bug #1065044. Improved const correctness. 2004-11-26 14:56:52 +00:00
Karl Waclawek
45594b1bb3 Added include guard to expat_external.h.
Renamed include guard for expat.h, to reflect the changed file name.
2004-11-26 00:20:21 +00:00
Fred L. Drake, Jr.
0699f3c162 convert MSVC project and workspace files to binary files that must always
use the DOS/Windows CR-LF line end convention

(closes SF bug #1007088)
2004-09-30 02:47:03 +00:00
Karl Waclawek
b705d712c2 Removed last comma in enum XML_Status declaration to improve
compiler compatibility.
2004-09-24 13:06:29 +00:00
Karl Waclawek
a5af514c3d Fixed type error that came to light when compiling as C++ file. 2004-08-10 18:04:34 +00:00
Karl Waclawek
f44f6b4200 Fix for bug #1006708. 2004-08-10 17:34:19 +00:00
Fred L. Drake, Jr.
1d757a0771 The status argument to XML_GetParsingStatus() cannot be NULL. 2004-07-23 02:02:41 +00:00
Fred L. Drake, Jr.
b3c95c25bf add some comments about when various error codes were added 2004-07-16 00:54:57 +00:00
Karl Waclawek
c834048b0f Applied patch for bug #961698 supplied by Anders Carlsson. 2004-05-27 17:38:52 +00:00
Karl Waclawek
99f5788c21 Added a few more meaningful error codes (and messages). 2004-05-18 13:50:13 +00:00
Karl Waclawek
cac0ed29a8 Renamed exrternal.h to expat_external.h.
Fixed up references to this file.
2004-05-06 13:55:49 +00:00
Karl Waclawek
656d80eca2 Fix for bug #946506: PublicId for DOCTYPE not checked & normalized. 2004-05-02 17:31:13 +00:00
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
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
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
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.
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.
fba15ab94c remove unnecessary typecast 2003-10-30 14:58:39 +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
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