Commit Graph

594 Commits

Author SHA1 Message Date
Greg Stein
de857347b6 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.
2002-05-17 21:42:05 +00:00
Greg Stein
950c9a1124 A couple more tweaks for config.h -> expat_config.h 2002-05-17 21:38:44 +00:00
Greg Stein
0d64c9f4e9 There is no lib/config.h file... 2002-05-17 21:38:12 +00:00
Greg Stein
366e9ccd3e ignore the expat_config.h* files rather than config.h* 2002-05-17 21:35:12 +00:00
Greg Stein
9fcff4a9eb 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
2002-05-17 21:30:07 +00:00
Greg Stein
d3947b2fef follow Fred's footsteps and reformat the copyright header. 2002-05-17 21:23:35 +00:00
Greg Stein
dd5f540cbf 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.
2002-05-17 21:16:42 +00:00
Fred L. Drake, Jr.
aeb96f4e38 Code hygiene edits. 2002-05-17 19:12:54 +00:00
Fred L. Drake, Jr.
935f3457ef Remove unused files. 2002-05-17 18:55:08 +00:00
Fred L. Drake, Jr.
65b4ed8f47 Using "0" instead of "NULL" is insane, and leads to unmaintainable code.
Fix a number of other "code-hygiene" consistency nits.
2002-05-17 18:47:53 +00:00
Fred L. Drake, Jr.
7040180274 Minor nit; layout function signatures in a more consistent way. 2002-05-17 18:17:33 +00:00
Fred L. Drake, Jr.
fa2455c305 Include a more reasonable definition of the UTF8_INVALID3() macro.
It still is not used anywhere, though.  ;-(
2002-05-17 18:05:06 +00:00
Fred L. Drake, Jr.
ad5481c9f5 Using "0" instead of "NULL" is insane, and leads to unmaintainable code. 2002-05-17 17:21:51 +00:00
Fred L. Drake, Jr.
aec2b976cd 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.
2002-05-17 15:21:53 +00:00
Fred L. Drake, Jr.
7857293967 Be more careful about failed MALLOC() and REALLOC() calls. This avoids a
number of potential memory leaks.
2002-05-17 15:09:34 +00:00
Fred L. Drake, Jr.
0ddc85a661 Updated for the 1.95.3 release. 2002-05-17 14:15:38 +00:00
Fred L. Drake, Jr.
74b32a6fc3 Make the uninstall target use the right location for the header file. 2002-05-17 14:12:25 +00:00
Fred L. Drake, Jr.
fa1711873b Added a link to an article with additional C++ wrappers for Expat,
by Tim Smith.
2002-05-17 13:42:36 +00:00
Fred L. Drake, Jr.
3edce7a7ca Fix a number of potential memory leaks around REALLOC(). More are lurking. 2002-05-17 03:41:34 +00:00
Fred L. Drake, Jr.
5b5c48d4a3 Add casts to suppress a couple of warnings from MSVC with warning level 4. 2002-05-15 15:57:22 +00:00
Karl Waclawek
0b4f62dbe2 Added link to Expat wrapper for Delphi 2002-05-10 16:32:59 +00:00
Greg Stein
cd48fb33d6 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.
2002-05-10 00:10:57 +00:00
Fred L. Drake, Jr.
a0a093184c Added a reference to tDOM (Tcl DOM package using Expat). 2002-05-09 15:09:18 +00:00
Fred L. Drake, Jr.
fce382d610 Oops, fix the title! 2002-05-09 12:26:45 +00:00
Fred L. Drake, Jr.
0cee361f66 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.)
2002-05-09 12:24:46 +00:00
Fred L. Drake, Jr.
2e00d6e6b3 Simple style sheet for the Expat web page. 2002-05-09 12:14:54 +00:00
Fred L. Drake, Jr.
8292fa6968 Lame "logo" for the Expat web page. 2002-05-09 12:14:33 +00:00
Fred L. Drake, Jr.
bcf2a3ecf4 Added link to information about a C++ binding for Expat. 2002-05-08 11:26:01 +00:00
Fred L. Drake, Jr.
7ed4ac9d81 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.
2002-05-04 21:47:46 +00:00
Fred L. Drake, Jr.
d05c7a58f7 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.
2002-04-29 21:31:18 +00:00
Fred L. Drake, Jr.
0767c2ce17 Fix stupid last minute change. 2002-04-29 17:10:26 +00:00
Fred L. Drake, Jr.
d29adbd972 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.
2002-04-29 17:09:31 +00:00
Fred L. Drake, Jr.
6556c9be67 Wrap some long lines, including ones I just introduced.
There ought to be a good way to use a real editor with MSCV!
2002-04-26 05:14:20 +00:00
Fred L. Drake, Jr.
79aab4b10a Cut down on the warnings from MSVC6 on Warning Level 4. 2002-04-26 04:46:24 +00:00
Fred L. Drake, Jr.
198ab270fe 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.
2002-04-25 04:04:42 +00:00
Fred L. Drake, Jr.
d701da0bd5 Make the organization slightly easier to discern. 2002-04-25 01:42:34 +00:00
Fred L. Drake, Jr.
f759700086 Added "NEWS" file for 1.95.3. Still needs to be filled in a bit. 2002-04-24 13:11:00 +00:00
Fred L. Drake, Jr.
6af14eca02 Bump version number. 2002-04-24 13:10:09 +00:00
Fred L. Drake, Jr.
a1451f8ae7 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.
2002-04-24 03:48:03 +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
Fred L. Drake, Jr.
36f5bfd4b9 Squash compiler warning (GCC): simply referencing a variable in the
initialization clause of a for statement does not have any effect.
2002-04-23 21:36:16 +00:00
Karl Waclawek
968b13268b Attribute type constants did not have null terminators. 2002-04-23 19:48:29 +00:00
Karl Waclawek
42ab6c34f1 Fixed rev. 1.26 patch for XML_SetReturnNSTriplet.
Added fixes to make UTF-16 output work when XML_UNICODE is defined.
2002-04-23 13:49:31 +00:00
Karl Waclawek
59d1c05288 XML_UNICODE fixes 2002-04-23 13:48:50 +00:00
Fred L. Drake, Jr.
d2baa2aec2 Add a new test that demonstrates SF bug #481609 is invalid. 2002-04-22 18:50:18 +00:00
Fred L. Drake, Jr.
c5e5a2cab9 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.
2002-04-22 18:46:00 +00:00
Fred L. Drake, Jr.
91e3f5c543 Add support for the xmlwf manpage, both for install and uninstall. 2002-04-22 17:04:36 +00:00
Fred L. Drake, Jr.
fe6c8d05d1 Formatted version of the Unix manpage, ready for installation. 2002-04-22 17:03:39 +00:00
Greg Stein
5fa57b76e6 xmlwf should depend on the library, too. 2002-04-22 10:22:48 +00:00
Fred L. Drake, Jr.
109bee0339 Added another line to the copyright notice. 2002-04-20 21:32:22 +00:00