Commit Graph

132 Commits

Author SHA1 Message Date
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.
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
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.
ed0cbdbd05 Wrap some long lines; the AS/400 requires line length <= 80
characters.
2002-08-23 21:54:11 +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.
6143619cf2 Elaborate a comment slightly. 2002-08-22 21:58:11 +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
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
de7c8418bb Applied patch for bug #596931: XML_ParseReset and memory leaks. 2002-08-21 20:00:09 +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
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
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.
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.
db6d64a473 Update lists of ignored files to match changes from Makefile.in 1.37. 2002-07-11 18:55:43 +00:00
Karl Waclawek
cc6d031e9e Applied modified version of patch #578161. 2002-07-09 20:58:17 +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
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.
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.
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.
4582daec8f Fix SF bug #575168: "Missing events for end-element". 2002-06-28 23:04:49 +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.
449599e363 There've been patches since 1.95.3, so bump the version number. 2002-06-12 19:43:51 +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.
c457dfb346 VMS support, contributed by Craig Berry. 2002-06-05 04:13:10 +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
Karl Waclawek
b1743f5705 Applied patch # 562005 "Detect invalid UTF-8 sequences" 2002-05-30 18:02:59 +00:00