Fred L. Drake, Jr. [Thu, 30 May 2002 19:03:07 +0000 (19:03 +0000)]
Simple makefile that remembers how to update the anonymous checkout of
the HTML docs that gets shoved out through HTTP.
Karl Waclawek [Thu, 30 May 2002 18:02:59 +0000 (18:02 +0000)]
Applied patch # 562005 "Detect invalid UTF-8 sequences"
Fred L. Drake, Jr. [Thu, 23 May 2002 18:50:51 +0000 (18:50 +0000)]
Give in and define a constant for the intial number of elements in the
content type scaffold.
This removes the annoying magic number in the code.
Fred L. Drake, Jr. [Thu, 23 May 2002 18:37:03 +0000 (18:37 +0000)]
In the "DTD scaffold", keep the count of elements allocated in sync with the
number of elements.
Fred L. Drake, Jr. [Wed, 22 May 2002 20:22:25 +0000 (20:22 +0000)]
Share the comment style with the rest of Expat.
Fred L. Drake, Jr. [Wed, 22 May 2002 20:20:05 +0000 (20:20 +0000)]
Add a small comment to tell what this is.
Fred L. Drake, Jr. [Wed, 22 May 2002 04:27:06 +0000 (04:27 +0000)]
Code hygiene: Use "NULL" instead of "0" for NULL pointers.
Compare pointers == NULL or != NULL instead of using the implicit
point-to-int conversion.
Fred L. Drake, Jr. [Wed, 22 May 2002 04:04:39 +0000 (04:04 +0000)]
Bring indentation consistency to the header comments.
Fred L. Drake, Jr. [Wed, 22 May 2002 03:27:17 +0000 (03:27 +0000)]
Fix the regression test for SF bug #477667. This now fails, but accurately
tests the reported bug.
It should also serve as increased motivation for me to get it fixed
before the next release.
Fred L. Drake, Jr. [Tue, 21 May 2002 21:39:18 +0000 (21:39 +0000)]
Remove the use of C99's stdbool.h and the bool type; not all compilers
support this (gcc 2.8.1 on IRIX 6.5 bit this time).
Fred L. Drake, Jr. [Tue, 21 May 2002 14:45:18 +0000 (14:45 +0000)]
Another link to C++ wrappers, this time with a SAX interface and multiple
parser backends.
Greg Stein [Mon, 20 May 2002 11:06:41 +0000 (11:06 +0000)]
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.
Greg Stein [Mon, 20 May 2002 11:01:29 +0000 (11:01 +0000)]
Karl noticed that Expat didn't build on Windows any more. winconfig.h
needs to state that memmove() exists.
Karl Waclawek [Sat, 18 May 2002 03:34:44 +0000 (03:34 +0000)]
Merged in patch # 551599
Greg Stein [Sat, 18 May 2002 00:26:59 +0000 (00:26 +0000)]
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
Greg Stein [Fri, 17 May 2002 21:42:05 +0000 (21:42 +0000)]
Remove acconfig.h altogether by removing XML_BYTE_ORDER. We can simply
use the BYTEORDER constant that ac_c_bigendian_cross.m4 generates.
* accconfig.h: removed; obsolete.
* lib/winconfig.h:
- set the BYTEORDER constant, rather than XML_BYTE_ORDER, and leave
a note about what we're assuming.
* lib/xmltok.c, lib/xmltok_ns.c:
- change all XML_BYTE_ORDER references to BYTEORDER, and
update the constants from 12, 21 to 1234, 4321 respectively.
Greg Stein [Fri, 17 May 2002 21:38:44 +0000 (21:38 +0000)]
A couple more tweaks for config.h -> expat_config.h
Greg Stein [Fri, 17 May 2002 21:38:12 +0000 (21:38 +0000)]
There is no lib/config.h file...
Greg Stein [Fri, 17 May 2002 21:35:12 +0000 (21:35 +0000)]
ignore the expat_config.h* files rather than config.h*
Greg Stein [Fri, 17 May 2002 21:30:07 +0000 (21:30 +0000)]
Various configuration fixes, focused primarily around expat_config.h
(which used to be called config.h)
* configure.in:
- change the header name to expat_config.h to prevent any possible
conflict with some other packages 'config.h'
- add a prerequisite on autoconf 2.50 or newer
- shift some acconfig.h values to AC_DEFINE() values
* MANIFEST:
- rename config.h.in to expat_config.h.in
* Makefile.in:
- clean out expat_config.h* instead of config.h*
* acconfig.h:
- remove the XML_NS, XML_DTD, and XML_CONTEXT_BYTES symbols; they
are now defined directly by configure.in
- shift the memmove() compatibility to xmlparse.c, its only consumer
- remove the @BOTTOM@ part since there are no more values to put at
the bottom of expat_config.h.in via acconfig.h
* xmlparse.c:
- switch from config.h to expat_config.h
- insert macro to define memmove() if it isn't available, but
bcopy() is available. also, changed one branch to #error rather
than insert bogus code.
* xmlrole.c:
- tweak the copyright header, per Fred-ism
- remove the unused RCSId[] variable (no other file has these)
- switch from config.h to expat_config.h
* xmltok.c:
- switch from config.h to expat_config.h
Greg Stein [Fri, 17 May 2002 21:23:35 +0000 (21:23 +0000)]
follow Fred's footsteps and reformat the copyright header.
Greg Stein [Fri, 17 May 2002 21:16:42 +0000 (21:16 +0000)]
These files are unmaintained, so I'm removing them. If somebody wants
to restart a C++ Expat, they should use the current sources. Of
course, these will always be available in the CVS repository for
historical purposes and for recovery.
Fred L. Drake, Jr. [Fri, 17 May 2002 19:12:54 +0000 (19:12 +0000)]
Code hygiene edits.
Fred L. Drake, Jr. [Fri, 17 May 2002 18:55:08 +0000 (18:55 +0000)]
Remove unused files.
Fred L. Drake, Jr. [Fri, 17 May 2002 18:47:53 +0000 (18:47 +0000)]
Using "0" instead of "NULL" is insane, and leads to unmaintainable code.
Fix a number of other "code-hygiene" consistency nits.
Fred L. Drake, Jr. [Fri, 17 May 2002 18:17:33 +0000 (18:17 +0000)]
Minor nit; layout function signatures in a more consistent way.
Fred L. Drake, Jr. [Fri, 17 May 2002 18:05:06 +0000 (18:05 +0000)]
Include a more reasonable definition of the UTF8_INVALID3() macro.
It still is not used anywhere, though. ;-(
Fred L. Drake, Jr. [Fri, 17 May 2002 17:21:51 +0000 (17:21 +0000)]
Using "0" instead of "NULL" is insane, and leads to unmaintainable code.
Fred L. Drake, Jr. [Fri, 17 May 2002 15:21:53 +0000 (15:21 +0000)]
Hopefully the last needed checks for MALLOC() failure in xmlparse.c, this
avoids memory faults when the initial allocations fail, returning NULL to
the caller instead.
This closes SF bug #496505.
Fred L. Drake, Jr. [Fri, 17 May 2002 15:09:34 +0000 (15:09 +0000)]
Be more careful about failed MALLOC() and REALLOC() calls. This avoids a
number of potential memory leaks.
Fred L. Drake, Jr. [Fri, 17 May 2002 14:15:38 +0000 (14:15 +0000)]
Updated for the 1.95.3 release.
Fred L. Drake, Jr. [Fri, 17 May 2002 14:12:25 +0000 (14:12 +0000)]
Make the uninstall target use the right location for the header file.
Fred L. Drake, Jr. [Fri, 17 May 2002 13:42:36 +0000 (13:42 +0000)]
Added a link to an article with additional C++ wrappers for Expat,
by Tim Smith.
Fred L. Drake, Jr. [Fri, 17 May 2002 03:41:34 +0000 (03:41 +0000)]
Fix a number of potential memory leaks around REALLOC(). More are lurking.
Fred L. Drake, Jr. [Wed, 15 May 2002 15:57:22 +0000 (15:57 +0000)]
Add casts to suppress a couple of warnings from MSVC with warning level 4.
Karl Waclawek [Fri, 10 May 2002 16:32:59 +0000 (16:32 +0000)]
Added link to Expat wrapper for Delphi
Greg Stein [Fri, 10 May 2002 00:10:57 +0000 (00:10 +0000)]
Patch from Joe Orton <joe@manyfish.co.uk>:
Allow the environment to specify a different autoconf and autoheader.
This is useful when Expat is bundled into another program, which is
being configured using something other than the autoconf/autoheader in
the path.
Fred L. Drake, Jr. [Thu, 9 May 2002 15:09:18 +0000 (15:09 +0000)]
Added a reference to tDOM (Tcl DOM package using Expat).
Fred L. Drake, Jr. [Thu, 9 May 2002 12:26:45 +0000 (12:26 +0000)]
Oops, fix the title!
Fred L. Drake, Jr. [Thu, 9 May 2002 12:24:46 +0000 (12:24 +0000)]
Completely replace the style of the Expat web page, but keep the original
content. (I need to write new content, but that is a separate task.)
Fred L. Drake, Jr. [Thu, 9 May 2002 12:14:54 +0000 (12:14 +0000)]
Simple style sheet for the Expat web page.
Fred L. Drake, Jr. [Thu, 9 May 2002 12:14:33 +0000 (12:14 +0000)]
Lame "logo" for the Expat web page.
Fred L. Drake, Jr. [Wed, 8 May 2002 11:26:01 +0000 (11:26 +0000)]
Added link to information about a C++ binding for Expat.
Fred L. Drake, Jr. [Sat, 4 May 2002 21:47:46 +0000 (21:47 +0000)]
xml_failure(): Pass the relevant XML_Parser into the function so it is
useful when parsing external entities as well as the document entity.
All callers have been updated.
Fred L. Drake, Jr. [Mon, 29 Apr 2002 21:31:18 +0000 (21:31 +0000)]
Added target to run checks based on xmlwf and James Clark's test cases.
This is not run by "make check" since it requires unzip, wget, and network
access to set up the tests. Use "make run-xmltext" to run the tests.
Fred L. Drake, Jr. [Mon, 29 Apr 2002 17:10:26 +0000 (17:10 +0000)]
Fix stupid last minute change.
Fred L. Drake, Jr. [Mon, 29 Apr 2002 17:09:31 +0000 (17:09 +0000)]
Added a bunch of assertions that internal assumptions are not violated
(specifically, make sure args are not NULL).
If the expected value is not the right length, include the value found in
the error message, to make problems easier to diagnose.
Fred L. Drake, Jr. [Fri, 26 Apr 2002 05:14:20 +0000 (05:14 +0000)]
Wrap some long lines, including ones I just introduced.
There ought to be a good way to use a real editor with MSCV!
Fred L. Drake, Jr. [Fri, 26 Apr 2002 04:46:24 +0000 (04:46 +0000)]
Cut down on the warnings from MSVC6 on Warning Level 4.
Fred L. Drake, Jr. [Thu, 25 Apr 2002 04:04:42 +0000 (04:04 +0000)]
Revise the data accumulation to be at least a little separated from the
actual test code. Not pretty & lacking in internal documentation, but
allows the test code to be a bit more readable.
Fred L. Drake, Jr. [Thu, 25 Apr 2002 01:42:34 +0000 (01:42 +0000)]
Make the organization slightly easier to discern.
Fred L. Drake, Jr. [Wed, 24 Apr 2002 13:11:00 +0000 (13:11 +0000)]
Added "NEWS" file for 1.95.3. Still needs to be filled in a bit.
Fred L. Drake, Jr. [Wed, 24 Apr 2002 13:10:09 +0000 (13:10 +0000)]
Bump version number.
Fred L. Drake, Jr. [Wed, 24 Apr 2002 03:48:03 +0000 (03:48 +0000)]
Take advantage of XML_ParserReset(): Instead of creating new parsers in
run_*_check(), reset the parser between uses in the one place its actually
needed.
Fred L. Drake, Jr. [Wed, 24 Apr 2002 03:36:23 +0000 (03:36 +0000)]
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.
Fred L. Drake, Jr. [Tue, 23 Apr 2002 21:36:16 +0000 (21:36 +0000)]
Squash compiler warning (GCC): simply referencing a variable in the
initialization clause of a for statement does not have any effect.
Karl Waclawek [Tue, 23 Apr 2002 19:48:29 +0000 (19:48 +0000)]
Attribute type constants did not have null terminators.
Karl Waclawek [Tue, 23 Apr 2002 13:49:31 +0000 (13:49 +0000)]
Fixed rev. 1.26 patch for XML_SetReturnNSTriplet.
Added fixes to make UTF-16 output work when XML_UNICODE is defined.
Karl Waclawek [Tue, 23 Apr 2002 13:48:50 +0000 (13:48 +0000)]
XML_UNICODE fixes
Fred L. Drake, Jr. [Mon, 22 Apr 2002 18:50:18 +0000 (18:50 +0000)]
Add a new test that demonstrates SF bug #481609 is invalid.
Fred L. Drake, Jr. [Mon, 22 Apr 2002 18:46:00 +0000 (18:46 +0000)]
Test support enhancements:
_xml_failure(): Clean up the output message so the first line doesn't
wrap in the typical case.
CharData typedef: If count is less than 0, consider it "unset". This
is used in the new support to check attribute values.
accumulate_characters(): Handle storage->count < 0. Allow XML_Char
to be more than one byte.
accumulate_attribute(): New function: store the value of the first
attribute encountered in parsing. This needs the concept of a
CharData that is unset to allow capturing a value that is an empty
string.
check_characters(): Handle storage->count < 0. Allow XML_Char to be
more than one byte.
run_character_check(): Create a local parser so that both
run_character_check() and run_attribute_check() can be used in a
single test function.
run_attribute_check(): New function: check that the value of the
first attribute in a document matches the expected value.
Fred L. Drake, Jr. [Mon, 22 Apr 2002 17:04:36 +0000 (17:04 +0000)]
Add support for the xmlwf manpage, both for install and uninstall.
Fred L. Drake, Jr. [Mon, 22 Apr 2002 17:03:39 +0000 (17:03 +0000)]
Formatted version of the Unix manpage, ready for installation.
Greg Stein [Mon, 22 Apr 2002 10:22:48 +0000 (10:22 +0000)]
xmlwf should depend on the library, too.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 21:32:22 +0000 (21:32 +0000)]
Added another line to the copyright notice.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 21:17:15 +0000 (21:17 +0000)]
Bump version number.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 21:15:46 +0000 (21:15 +0000)]
Bump the release number.
Remove text about -fexceptions for use with C++; that is added automatically
now.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 21:14:48 +0000 (21:14 +0000)]
Add missing word in comment.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 13:24:59 +0000 (13:24 +0000)]
Added missing library to link line for tests; not sure how this had not
been checked in!
Fred L. Drake, Jr. [Sat, 20 Apr 2002 13:19:40 +0000 (13:19 +0000)]
Added test for SF bug #480278.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 13:11:16 +0000 (13:11 +0000)]
Simplify the command used to run the test program.
Fred L. Drake, Jr. [Sat, 20 Apr 2002 02:53:15 +0000 (02:53 +0000)]
Fix typo in comment.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 21:41:54 +0000 (21:41 +0000)]
Check in SF patch #488196: Make xmlwf read from standard input.
This modifies the patch for style (slightly).
The style of these files is also slightly modified in an attempt to create
more consistency. (But that mostly swamps the feature patch.)
Fred L. Drake, Jr. [Fri, 19 Apr 2002 20:59:01 +0000 (20:59 +0000)]
Added a test for SF bug #231864.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 20:52:39 +0000 (20:52 +0000)]
Check in SF patch #476929: Fix XML_SetReturnNSTriplet().
This is slightly modified from the submitted patch to ensure a variable is
never used uninitialized.
Patch contributed by Karl Waclawek.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 19:18:35 +0000 (19:18 +0000)]
Add a test that checks that illegal UTF-8 sequences are not allowed to pass
when we are using UTF-8 encoding.
This closes SF bug #477667.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 18:57:24 +0000 (18:57 +0000)]
Make the sample applications depend on the Expat library.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 18:50:26 +0000 (18:50 +0000)]
Add the new tests to the right TCase object.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 18:25:07 +0000 (18:25 +0000)]
basic_setup(): Remove bogus assumption that all tests would use US-ASCII
data; let Expat determine the proper encoding from the XML source text.
Added several tests relating to supposed mis-interpretation of Latin-1;
these show that Expat (at least in the CVS version) is properly decoding
the Latin-1 text and generating the proper UTF-8 output.
This closes SF bug #491986, #514281.
Fred L. Drake, Jr. [Fri, 19 Apr 2002 16:19:33 +0000 (16:19 +0000)]
Wrap some long lines.
Fred L. Drake, Jr. [Tue, 16 Apr 2002 03:24:48 +0000 (03:24 +0000)]
Remove files that are no longer used.
This closes SF patch #488187.
Fred L. Drake, Jr. [Tue, 16 Apr 2002 02:12:20 +0000 (02:12 +0000)]
Fix name of the "bin" directory; was missing the default $prefix component.
Fred L. Drake, Jr. [Mon, 25 Feb 2002 16:40:42 +0000 (16:40 +0000)]
Add link to the TclXML project (includes Tcl binding for Expat).
Fred L. Drake, Jr. [Thu, 21 Feb 2002 21:27:55 +0000 (21:27 +0000)]
Manual page for the xmlwf utility, contributed by Scott Bronson.
[Description of the -v option added to the original, contributed text.]
Fred L. Drake, Jr. [Mon, 21 Jan 2002 19:49:40 +0000 (19:49 +0000)]
Added links to the Objective-C and Ruby bindings to Expat.
Fred L. Drake, Jr. [Fri, 11 Jan 2002 15:42:12 +0000 (15:42 +0000)]
Add a list of references to other Expat resources.
It is short, but it includes a plea for additional links.
Greg Stein [Mon, 10 Dec 2001 00:52:55 +0000 (00:52 +0000)]
Fix the URL to the online CVS browsing.
Greg Stein [Fri, 7 Dec 2001 10:20:51 +0000 (10:20 +0000)]
Remove the Makefile.in files from the subdirs
Greg Stein [Fri, 7 Dec 2001 10:19:31 +0000 (10:19 +0000)]
* Switch to a single, top-level Makefile (simplification, consistency)
* use libtool to compile/link all programs
* remove */Makefile.in and remove them from configure
* remove autom4te.cache after running autoconf
* remove .o from the FILEMAP logic in configure and the Make system;
provides more flexibility in the Makefile to use it
* for VPATH builds: create the build subdirs by running
"make mkdir-init" from the configure script
* adjust .cvsignore files to account for presence of .libs now
Fred L. Drake, Jr. [Wed, 5 Dec 2001 16:30:31 +0000 (16:30 +0000)]
Add a -v option to cause xmlwf to report the version of Expat (hence the
version of xmlwf).
Fred L. Drake, Jr. [Sun, 18 Nov 2001 13:56:01 +0000 (13:56 +0000)]
Add a check for unknown command line options.
Fred L. Drake, Jr. [Sun, 18 Nov 2001 05:27:12 +0000 (05:27 +0000)]
Use the SF logo that has no box around the edge; it looks a bit cleaner.
Fred L. Drake, Jr. [Fri, 16 Nov 2001 20:57:30 +0000 (20:57 +0000)]
prologProcessor(): Avoid segfault by making sure "next" is initialized;
fix suggested by Tim Crook.
This fixes (I think!) SF bug #226514.
Removed extra "break".
Fred L. Drake, Jr. [Fri, 16 Nov 2001 20:19:39 +0000 (20:19 +0000)]
Added a test to make sure that whitespace in ENTITIES, IDREFS, and NMTOKENS
attributes is properly collapsed according to Section 3.3.3 of the spec.
This is the first even slightly complicated test; boy are these painful in
C! Had to add a test of a helper routine as well; that just uses assertions
since the test framework should not be dealing with tests of the tester,
just of Expat.
Added a helper to make the failure messages more useful when Expat produces
an unexpected error code; we now include the error message and location from
Expat. This is mostly useful when developing a new test.
Fred L. Drake, Jr. [Tue, 13 Nov 2001 17:31:53 +0000 (17:31 +0000)]
Added tests that some basic encodings are recognized and the corresponding
BOM marks do not cause core dumps. The UTF-8 BOM bug was fixed a while ago,
but a regression test is always a good idea.
Fred L. Drake, Jr. [Tue, 13 Nov 2001 05:04:51 +0000 (05:04 +0000)]
Note that the tests need check 0.8 to work.
Fred L. Drake, Jr. [Tue, 13 Nov 2001 05:04:02 +0000 (05:04 +0000)]
Update to work with check 0.8.
Fred L. Drake, Jr. [Tue, 13 Nov 2001 04:49:52 +0000 (04:49 +0000)]
Added a test that ensures the parser reports an out-of-place XML declaration.
(Originally written to attempt to tickle a different bug, but useful as a
regression test even though Expat has been doing the right thing.)
Fred L. Drake, Jr. [Fri, 9 Nov 2001 20:21:10 +0000 (20:21 +0000)]
As long as SourceForge is changing their logo, we can look really slick too.
A little geometric twiddle can take us a long way toward fame & fortune! ;-)
Fred L. Drake, Jr. [Fri, 9 Nov 2001 04:57:33 +0000 (04:57 +0000)]
Added note about conftools/expat.m4.