Commit Graph

16 Commits

Author SHA1 Message Date
Sebastian Pipping
8d1bd6ff2c Resolve macro HAVE_EXPAT_CONFIG_H 2021-04-22 00:11:28 +02:00
clang-format
d248bbd940 Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
Sebastian Pipping
5c6c28cf40 Streamline preprocessor indentation 2017-08-29 23:21:52 +02:00
Rhodri James
bd12cbc629 Remove CharData_{Append|Check}String functions
Mixing XML_Char and char strings is a bad idea, and trying to put
chars into an XML_Char array tends not to work as you might hope.
Removing these functions removes the temptation to break builds.
2017-08-29 23:21:51 +02:00
Rhodri James
e9aebf0a7f Use correct format for XML_Char in error output
Only actually invoked when XML_Char is char, but it keeps the
compiler quiet
2017-08-29 23:19:35 +02:00
Sebastian Pipping
a704c940a4 Inline copyright headers with C/C++ code where missing (#116) 2017-08-12 21:02:41 +02:00
Joe Orton
a5e20f5bc9 Expand buffer size to avoid GCC 7.x warning. 2017-08-02 08:49:20 +01:00
Sebastian Pipping
3bd715bf75 Address "comparison between signed and unsigned integer" warnings 2016-03-28 21:24:36 +02:00
Gilles Espinasse
b3b07679ee Remove pre-2.0.0 leftovers of using "check" unit testing library 2016-03-12 02:31:29 +01:00
Fred L. Drake, Jr.
d1df594ca2 If the check library is not available, use an abbreviated implementation of
the check API.  This allows the unit and regression tests to be run on any
system without requiring an external package.
2004-04-30 03:18:11 +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
Greg Stein
c02e8784e7 Put in a little protection against the developer not having the check
package available.

sfbug #664541.

* configure.in: look for check.h. This will set up a HAVE_CHECK_H define.

* tests/chardata.c, tests/runtests.c: update banner. add test for
    HAVE_CHECK_H and bail if not present.
2003-10-09 21:32:28 +00:00
Fred L. Drake, Jr.
f122dd821c 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).
2002-05-21 21:39: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.
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