Commit Graph

2793 Commits

Author SHA1 Message Date
Sebastian Pipping
17dcf52606 Makefile.am: Use $(srcdir) and $(*builddir) in target "run-xmltest" 2019-08-11 19:38:00 +02:00
Sebastian Pipping
08a7d458bd apply-clang-format.sh: Adapt to new expat_config.h.cmake line endings 2019-08-11 02:12:18 +02:00
Sebastian Pipping
45e1b4f595 CMake.README: Remove trailing whitespace 2019-08-10 23:53:50 +02:00
dos2unix
5e4af89d56 CMake: Migrate files from Windows to Unix line endings 2019-08-10 23:52:10 +02:00
Sebastian Pipping
ca9c19e161 Changes: Streamline entries about new CMake arguments 2019-08-10 20:33:00 +02:00
Sebastian Pipping
b4690c0d55 Changes: Document #239 and #301 2019-08-10 20:30:27 +02:00
kkkunche
d6cd0e4769 Autotool new options : --with/--without -getrandom and --with/--without -sysgetrandom.
Autodetect works by default for getrandom and sysgetrandom.
With the these options user can use the detected functions or ignore them.
2019-08-10 20:25:42 +02:00
Sebastian Pipping
8c1d9c144a Changes: Document #299 and #302 2019-08-07 19:50:50 +02:00
Sebastian Pipping
8a935ff9ab xmlparse.c: Mention rand_s with stdlib include 2019-08-07 19:50:50 +02:00
David Loffredo
5d34a708e7 replace loadlibrary.c and RtlGenRandom call with rand_s() on windows
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-07 19:43:38 +02:00
David Loffredo
c5a2867de1 Make win32 stdlib.h define rand_s(), add writeRandomBytes_rand_s().
Signed-off-by: David Loffredo <loffredo@steptools.com>
2019-08-07 19:42:16 +02:00
Sebastian Pipping
879021192b Changes: Document fix to #240 2019-08-04 15:17:07 +02:00
Sebastian Pipping
ee4581af41 runtests.c: Add two test cases for/from issue #240
Many thanks to Rolf Ade (@pointsman)!
2019-08-04 15:17:07 +02:00
Sebastian Pipping
4007706509 xmlparse.c: Fix effect of XML_StopParser for end element handlers (#240) 2019-08-04 15:15:27 +02:00
Sebastian Pipping
f485410a9b Changes: Document mass-application of clang-format 9 2019-08-03 21:31:44 +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
c951711d75 siphash.h: Prepare for application of clang-format 2019-08-03 21:31:44 +02:00
Sebastian Pipping
65fcabba37 runtests.c: Mark some sections as to be excluded by clang-format
This will make clang-format 9 produce stable results.
2019-08-03 21:31:44 +02:00
Sebastian Pipping
61b010bde6 xmltok_impl.c: Re-format use of LEAD_CASE macro
This will make clang-format 9 produce stable results.
2019-08-03 21:31:44 +02:00
Sebastian Pipping
090b1cbdef Travis CI: Integrate clang-format 9 2019-08-03 21:31:44 +02:00
Sebastian Pipping
51ba984bb3 .clang-format: Comment out AlignConsecutiveMacros
Because clang-format 9.0.0-svn362770-1~exp1+0~20190607061653.2401~1.gbp2444fc
on Travis does not yet support it.
2019-08-03 21:31:44 +02:00
Sebastian Pipping
88495639de .clang-format: Tune 2019-08-03 21:31:44 +02:00
Sebastian Pipping
91abe04b2f .clang-format: Update to clang-format 9 default style 2019-08-03 20:34:04 +02:00
Sebastian Pipping
da2bc32938 .clang-format: Pin clang-format 8 default style
Trailing whitespace has been removed.
2019-08-03 20:34:04 +02:00
Sebastian Pipping
3a3f873a16 Makefile.am: Make "run-xmltest" robust to wine error output 2019-07-30 23:29:16 +02:00
Sebastian Pipping
f0b8636ccc qa.sh: Add missing DLL symlinks for MinGW 2019-07-30 21:27:05 +02:00
Sebastian Pipping
0ff0d45359 qa.sh: Show tests/runtests*.log on "make check" failure for MinGW 2019-07-30 21:27:05 +02:00
Sebastian Pipping
ef075b086f Changes: Document #286 2019-07-29 22:04:36 +02:00
Sebastian Pipping
55854c993e xmlwf: Drop COM code 2019-07-29 22:04:36 +02:00
Philippe Antoine
689d9245f8 qa.sh: Pass command line arguments to ./configure 2019-07-28 23:47:22 +02:00
Marco Maggi
b306ee963f minicheck.c: Fix volatile variables (#235) 2019-07-28 23:13:56 +02:00
Sebastian Pipping
c174c05433 expat.h: Drop OpenVMS support leftover (#14) 2019-07-28 17:58:56 +02:00
Sebastian Pipping
8a327049d8 Changes: Add missing entries 2019-07-28 02:01:03 +02:00
Sebastian Pipping
8a39eedcd3 runtests.c: Address null pointer warnings by Clang Static Analyzer 2019-07-28 01:38:13 +02:00
Sebastian Pipping
ff0606bb86 structdata.c: Address Clang Static Analyzer warnings (#294) 2019-07-28 01:38:13 +02:00
Sebastian Pipping
3053f53d34 xmlparse.c: Address Clang Static Analyzer false positive (#295) 2019-07-28 00:09:25 +02:00
Sebastian Pipping
ce03de2986 runtests.c: Pull semicolon out of braces 2019-07-27 19:08:48 +02:00
Sebastian Pipping
c6ef133d1b runtests.c: Reduce code duplication 2019-07-27 19:08:40 +02:00
Sebastian Pipping
99cc61c438 qa.sh: Dump compiler version 2019-07-22 23:56:30 +02:00
Marco Maggi
775cfba1d5 fixed warning about potential null pointer dereference 2019-07-22 23:15:12 +02:00
Sebastian Pipping
be784f0c9c runtests.c: Address warnings about variable shadowing 2019-07-22 23:03:11 +02:00
Sebastian Pipping
0fa72e8086 configure.ac: Use curly braces for variable 2019-07-21 22:57:48 +02:00
Sebastian Pipping
9d6915ab8a configure.ac: Adhust spelling of MinGW 2019-07-21 22:35:05 +02:00
Marco Maggi
3e3dc1f0f7 cleaner test for mingw as host system 2019-07-21 22:28:45 +02:00
Marco Maggi
3f8e28f3cb fixed use of compilation flags in coverage script (#229) 2019-07-20 17:11:39 +02:00
Sebastian Pipping
224c217eb6 clean_coverage.sh: Use portable shebang 2019-07-20 17:05:32 +02:00
Marco Maggi
54f1dff7ac added shebang and comments to clean_coverage script 2019-07-20 17:05:02 +02:00
Sebastian Pipping
21e11f7782 internal.h: Fix UNUSED_P for GCC 3.3 (fixes #288) 2019-07-20 16:42:21 +02:00
Sebastian Pipping
9c9d0d1a1f runtests.c: Address cppcheck warning (fixes #283)
[tests/runtests.c:647]: (error) Address of local auto-variable assigned to a function parameter.
2019-07-17 18:05:17 +02:00
Sebastian Pipping
c906acdafc xmlwf: Ensure that STDMETHODIMP_ is defined for cppcheck (fixes #285) 2019-07-17 16:38:39 +02:00
Sebastian Pipping
d4d8d486af xmltok.c: Use memcpy instead of copying single bytes (fixes #282)
Fixes cppcheck's complaint as a side-effect.
2019-07-17 16:21:32 +02:00
Sebastian Pipping
c5b3ce0932 tests: Silence cppcheck false positive (fixes #284) 2019-07-17 16:02:09 +02:00
Sebastian Pipping
429bf39b02 qa.sh: Pass -fsanitize=undefined to linker as well 2019-07-10 00:31:19 +02:00
Sebastian Pipping
23e95b42b4 qa.sh: Use clang++ to link (for ubsan) 2019-07-10 00:31:19 +02:00
Sebastian Pipping
99d60755bd qa.sh: Support GCC coverage reporting with Apple GCC as well 2019-07-10 00:31:19 +02:00
Sebastian Pipping
25c46e0acf qa.sh: Re-write
- A bit more flexible and high level
- Drop support for ncc
- Fix coverage rendering, drop split mode
2019-07-10 00:02:14 +02:00
Sebastian Pipping
434f549134 Changes: Document #239 and #277 2019-07-09 23:18:21 +02:00
Sebastian Pipping
17c1fb49e7 CMake: Write expat_config.h as late as needed
Previously, our post-processing of HAVE_GETRANDOM did
was not applied to expat_config.h.
2019-07-09 23:14:18 +02:00
Sebastian Pipping
a33e021955 CMake: Resolve code duplication by use of a macro 2019-07-09 23:14:05 +02:00
Sebastian Pipping
dfef43bf9b CMake: Support bypassing auto-detection of syscall SYS_getrandom 2019-07-09 23:13:54 +02:00
Sebastian Pipping
592528b6b3 CMake: Turn getrandom build flag into a tribool 2019-07-09 23:13:54 +02:00
Sebastian Pipping
c43fea5e10 CMake: Move reset of HAVE_GETRANDOM after ConfigureChecks.cmake 2019-07-09 23:13:23 +02:00
kkkunche
bba9d973c7 CMake: Option to Disable the usuage of getrandom after autodetect 2019-07-09 23:13:23 +02:00
Sebastian Pipping
4eeb9af97a Merge branch 'issue-268-address-variable-shadowing' (#270, fixes #268) 2019-07-06 19:17:52 +02:00
Sebastian Pipping
cd2d9826a5 Changes: Mention #268 and #270 2019-07-06 19:17:05 +02:00
Sebastian Pipping
cdad8bad64 Changes: Mention #244 2019-07-03 22:58:49 +02:00
Sebastian Pipping
aa1faa2de5 Changes: Document #264 2019-07-03 22:52:32 +02:00
Sebastian Pipping
e7c4f16f9e coverage.sh: Simplify if statement
Conistent with unicode_enabled check above
2019-07-03 22:51:38 +02:00
Sebastian Pipping
6d3b700f6e coverage.sh: Make xml_attr_info_enabled match unicode_enabled 2019-07-03 22:39:50 +02:00
Sebastian Pipping
5caac8663e configure: Make --enable-xml-attr-info help match --enable-static 2019-07-03 22:35:38 +02:00
Mohammed Khajapasha
4a2eb0b7f0 Enable XML_ATTR_INFO in build
enable XML_ATTR_INFO in build to cover XML_ATTR_INFO in CI

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
2019-07-03 22:32:34 +02:00
Sebastian Pipping
0117f01906 xmlparse.c: Limit scope of new_connector to save sizeof(char*) on the stack 2019-07-01 20:15:11 +02:00
Sebastian Pipping
eef2b12935 xmlparse.c: Drop needless re-calculation of keep (#268)
Fixes variable shadowing as a side effect.
2019-06-29 22:41:54 +02:00
Sebastian Pipping
94ea91cf6a xmlparse.c: Resolve temp variable shadow (#268)
Also add const.
2019-06-29 22:40:44 +02:00
Sebastian Pipping
9c90d3db3a Changes: Attach CVE-2018-20843 to #186 and #262 2019-06-24 20:08:48 +02:00
Sebastian Pipping
f9ff801c5b Changes: Document #265 2019-06-20 21:59:28 +02:00
xantares
42816e3625
Fix link step on MinGW
.def files are handled differently on MinGW than MSVC for the WIN32 target:

```
[ 14%] Linking C shared library libexpat.dll
/usr/lib/gcc/x86_64-w64-mingw32/9.1.0/../../../../x86_64-w64-mingw32/bin/ld: ../lib/libexpat.def:4: syntax error
/usr/lib/gcc/x86_64-w64-mingw32/9.1.0/../../../../x86_64-w64-mingw32/bin/ld:../lib/libexpat.def: file format not recognized; treating as linker script
/usr/lib/gcc/x86_64-w64-mingw32/9.1.0/../../../../x86_64-w64-mingw32/bin/ld:../lib/libexpat.def:1: syntax error
collect2: error: ld returned 1 exit status
```
2019-06-20 19:01:30 +02:00
Sebastian Pipping
d3b78b42a2 Bump version from 2.2.6 to 2.2.7 2019-06-19 18:41:14 +02:00
Sebastian Pipping
c04903b3d1 Bump version info from 7:8:6 to 7:9:6 2019-06-19 18:29:05 +02:00
Sebastian Pipping
a91e771f63 Changes: Group/re-order changes for upcoming 2.2.7 2019-06-19 17:58:55 +02:00
Sebastian Pipping
fc65cc00b4 Changes: Document #158 and #263 2019-06-19 15:52:05 +02:00
kkkunche
e4772783d0 Correct the man page installation path in CMake Build
CMake build system : corrected the man page creation to PROJECT_BINARY_DIR
and avoid creation into PROJECT_SOURCE_DIR.

Signed-off-by: kkkunche <kishore.kunche@intel.com>
2019-06-18 21:59:27 +05:30
Sebastian Pipping
ed682ae567 Changes: Document #186 and #262 2019-06-16 23:58:45 +02:00
Sebastian Pipping
11f8838bf9 xmlparse.c: Fix extraction of namespace prefix from XML name (#186) 2019-06-12 15:42:54 +02:00
Sebastian Pipping
8d922c1ecf Changes: Document #257 2019-05-18 14:11:14 +02:00
Sebastian Pipping
20ee2c0375 Use "/usr/bin/env bash" shebang everywhere for protability (#257) 2019-05-18 14:09:19 +02:00
Jeffrey Walton
42b9c71ead Fix build on OpenBSD (GH #257) 2019-05-18 14:07:06 +02:00
Sebastian Pipping
dcc356ce8e Changes: Remove @ GitHub username marker noise 2019-05-12 19:25:39 +02:00
Sebastian Pipping
844e5482c7 Autotools: Produce .tar.{gz,lz,xz} release archives (#236, #258) 2019-05-12 19:19:40 +02:00
luz.paz
08a0dd4a2e README: Add Repology badge showing repos package is available in 2019-02-02 14:24:18 -05:00
Sebastian Pipping
6e29a8bbaf qa.sh: Link with clang for Address Sanitizer 2019-01-27 21:58:15 +01:00
Sebastian Pipping
75fbe10f71 qa.sh: Dump config.log for configure failures 2019-01-27 21:58:15 +01:00
Sebastian Pipping
1d24a9dc61 qa.sh: Fix incomplete link flags for Address Sanitizer
Prefix "-Wc," is fot libtool, see
https://www.gnu.org/software/libtool/manual/libtool.html#Stripped-link-flags
2019-01-27 21:56:00 +01:00
Sebastian Pipping
95455453b1 Fix compilation for lack of docbook2x-man
The guard in doc/Makefile.am was supposed to protect against
publishing release tarballs lacking a compiled xmlwf.1 man page
without noticing.  Now it does no more than advertised.
2019-01-26 20:34:41 +01:00
Sebastian Pipping
f511408215 Changes: Mention PR #246 2019-01-26 18:55:51 +01:00
Sebastian Pipping
c69657f8fd m4: Fix check for -fvisibility=hidden for Clang 2019-01-26 18:35:37 +01:00
Sebastian Pipping
8a95a28658 m4: Reformat C test code to be readable 2019-01-26 16:42:02 +01:00
Sebastian Pipping
b90d29e44d Changes: Document fix to #243 2019-01-11 01:32:25 +01:00
Sebastian Dröge
1bc4aff75e Fix syntax of Windows module definition files
Otherwise this fails with:
  Cannot export @: symbol not defined
2019-01-10 21:26:07 +02:00
Mariusz Zaborski
7f3291057b Un-break build libexpat.
The writeRandomBytes_arc4random is not used if the arc4random_buf
is available. This caused compiler to throw warnings.
Finally this breaks a build when warnings are treated as errors.
2018-11-04 19:34:08 +01:00
Sebastian Pipping
8e4bd31840 Changes: Document #227 2018-10-21 14:59:34 +02:00
Sebastian Pipping
d7f0c2e055 configure.ac: Streamline mention of defaults in --help output a bit 2018-10-21 14:52:11 +02:00
KangLin
1fdfd8a1b4 Add build condition 2018-10-21 14:47:40 +02:00
Sebastian Pipping
c39d391550 Mark disabled code to make it easy to see again 2018-10-21 14:36:00 +02:00
Marco Maggi
5841ab111b change code exclusion style to make sure that the excluded code still compiles 2018-10-21 14:31:39 +02:00
Sebastian Pipping
ffd7fe33dc Changes: Document #228 2018-10-21 14:17:35 +02:00
Sebastian Pipping
c477867550 configure.ac: Fix indendation regression in --help output 2018-10-21 14:13:11 +02:00
Marco Maggi
8e64ef849d fixed missing dollar sign in parameter expansion of custom autoconf macro 2018-10-20 20:55:16 +02:00
Marco Maggi
c5a8932204 restore the definition of WORDS_BIGENDIAN when the platform is big endian 2018-10-20 13:30:25 +02:00
Marco Maggi
06b02bd25f removed unused AC_PROG_MKDIR_P from configure.ac 2018-10-20 13:16:26 +02:00
Marco Maggi
12733c9026 rewritten check for visibility support by the compiler 2018-10-20 12:57:22 +02:00
Marco Maggi
c66e010436 fixed name of autoconf macro file 2018-10-20 12:37:56 +02:00
Marco Maggi
4900bfc0b7 fixed comment in configure.ac 2018-10-19 07:07:06 +02:00
Marco Maggi
925a247db0 prefixed m4 macros in configure.ac 2018-10-18 15:58:31 +02:00
Marco Maggi
ee925db9ff clean up of acinclude 2018-10-18 15:49:19 +02:00
Marco Maggi
f4698cde13 more flags for the gcc compiler 2018-10-18 14:54:21 +02:00
Marco Maggi
2d8db00d33 better flag variable assignment 2018-10-18 13:30:05 +02:00
Marco Maggi
78646864c9 reorganised check for compiler supporting visibility 2018-10-18 13:27:40 +02:00
Marco Maggi
67342942d6 more autoconf macros for linker flags 2018-10-18 13:06:14 +02:00
Marco Maggi
5556d00f9f reorganised selection of flags for compilers in configure.ac 2018-10-18 13:01:06 +02:00
Marco Maggi
97afdec50d added usage of more autoconf macros (from the autoconf marcros archive) 2018-10-18 12:54:28 +02:00
Marco Maggi
d84a5f6caa added use of AX_CHECK_COMPILE_FLAG Autoconf macro 2018-10-18 12:26:04 +02:00
Marco Maggi
633b3a2a50 style fixes in configure.ac 2018-10-18 12:13:03 +02:00
Marco Maggi
f41b657299 requires gnu autoconf 2.69 2018-10-18 11:41:40 +02:00
Marco Maggi
cf3c2aa084 stopped using ac_c_bigendian_croos in favor of ac_c_bigendian 2018-10-18 11:40:29 +02:00
Marco Maggi
9fb802c7fc started autotools usage overhaul with some configure.ac revision
Modernisation of libtool initialisation.  Use of acinclude.m4 to load
macro definition files.
2018-10-18 11:24:11 +02:00
Mikhail Matrosov
6b0d52543f Remove expat.h from .gitignore (#224)
Since it is actually present in the repository and is used in the build.
2018-10-05 17:14:37 +02:00
Sebastian Pipping
47ce3ef99c Changes: Document #219, give credit to @benjaminp 2018-09-20 21:26:48 +02:00
Benjamin Peterson
fba16e0bfe Assume memmove(3) exists.
memmove is specified since POSIX.1-2001 and C89, and bcopy is deprecated.
2018-09-20 21:24:17 +02:00
Sebastian Pipping
fdc4400609 Changes: Document #195 and #197, give credit to @yugr 2018-09-20 21:18:19 +02:00
Yury Gribov
30f8c30b6a Hide private symbols. 2018-09-20 17:45:01 +01:00
Sebastian Pipping
af9e45e778 Changes: Mark GitHub accounts with an "@" prefix 2018-08-22 10:16:00 +02:00
Sebastian Pipping
ad30429fe1 Changes: Document #212 2018-08-22 10:14:03 +02:00
userwithuid
23cf8dc612 CMake: Use GNUInstallDirs for pkgconfig too
Fixes i.e. multilib setups on linux

Follow-up to 5681911965
2018-08-21 06:30:48 +00:00
Sebastian Pipping
39e487da35 Prepare release version 2.2.6 (#209) 2018-08-12 21:40:00 +02:00
Sebastian Pipping
62f92a5e1c Bump version info from 7:7:6 to 7:8:6 (#209) 2018-08-12 21:40:00 +02:00
Sebastian Pipping
12732b9f85 tests/.gitignore: Add .log and .trs 2018-08-12 21:40:00 +02:00
Sebastian Pipping
109275dd08 Add script to create signed tarballs for upload (#193) 2018-08-12 21:40:00 +02:00
Sebastian Pipping
5aa85a1efc Changes: Document #207 and #208, give credit to @frast 2018-08-12 16:41:35 +02:00
Frank Rast
59fec97670 CMake: Show error if combination of XML_UNICODE, XML_UNICODE_WCHAR_T and BUILD_tools is not supported. 2018-08-10 08:41:16 +02:00
Frank Rast
1a1d1841c0 CMake: Add options XML_UNICODE and XML_UNICODE_WCHAR_T 2018-08-09 09:33:48 +02:00
Frank Rast
53d8e00275 CMake: fix option XML_DEV_URANDOM to use set() 2018-08-09 09:20:51 +02:00
Sebastian Pipping
50f4e1695f Re-add int casts dropped at 3960f6061a (#170)
This is meant to address warning C4244.

> C4244: '=' : conversion from '__int64' to 'int', possible loss of data
> C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data
2018-08-06 23:05:23 +02:00
Sebastian Pipping
3139a2465f Changes: Document #170 and #206 2018-08-06 19:58:01 +02:00
Rhodri James
3960f6061a (#170) Prevent XML_GetBuffer doing arithmetic with NULL pointers 2018-08-06 19:56:50 +02:00
Rhodri James
428d69cd42 Remove senseless pointer arithmetic (issue #170) 2018-08-06 19:56:50 +02:00
Sebastian Pipping
2f720e5ffa Changes: Document #204 and #205
Big thanks to @pointsman and @RMJ10!
2018-08-03 20:31:31 +02:00
Rhodri James
0959d8e409 Revise (according to @hartwork's plan) nearer to original code (#204)
This reverts commit 3f5b1cfa75.
2018-08-03 20:25:40 +02:00
Rhodri James
3f5b1cfa75 Fix for #204, XML_ResumeParser regression
When we suspend at the end of input, we failed to update the
parser's m_processor field to point to the epilogProcessor.  When
the regular contentProcessor runs with no input, it returns an
error (which is what you usually want).  If we had not suspended,
in those circumstances we would have run the epilogProcessor
instead, so we just make sure this is the processor we will invoke
when we resume parsing.
2018-08-03 20:19:05 +02:00
Rhodri James
29bc47d2af Add regression test for issue #204, resume failure on empty input 2018-08-03 20:19:05 +02:00
Sebastian Pipping
e314feb290 Document #202 2018-07-08 19:36:30 +02:00
Sebastian Pipping
5994e40650 siphash.h: Fix indentation (#202) 2018-07-08 19:36:30 +02:00
Anton Maklakov
7981e23331 Fix -Wimplicit-fallthrough related warnings 2018-07-06 10:12:05 +07:00
Sebastian Pipping
491aa5cbf5 Changes: Document #200 2018-06-30 22:24:18 +02:00
Sebastian Pipping
19bc8f0760 configure.ac: Fix wording (#188) 2018-06-30 22:22:48 +02:00
Sebastian Pipping
8c4c880ef0 configure.ac: Limit SGML docbook2man detection to when it was found (#188) 2018-06-30 22:22:48 +02:00
Benjamin Peterson
cc1c5e2ce3
fix capitalization in comment 2018-06-25 21:14:12 -07:00
Sebastian Pipping
867579e41f Support db2x_docbook2man for man page compilation (#188) 2018-02-28 15:07:21 +01:00
Sebastian Pipping
8a0e46999c Changes: Document #190 2018-02-18 15:56:21 +01:00
luz.paz
5b1584c81d Misc. typos
Found via `codespell -q 3`
2018-02-16 09:47:13 -05:00
Sebastian Pipping
19391f33cc configure.ac: Detect and report SGML docbook2man (#188) 2018-02-14 21:51:29 +01:00
Sebastian Pipping
41fe2b887e expat.h: Fix comment typo (#187) 2018-02-01 21:19:44 +01:00
Sebastian Pipping
8bde051202 Changes: Document #184 2018-01-08 00:57:25 +01:00
Sebastian Pipping
48a372bc92 CMakeLists.txt: Adjust style for readability and consistency (#184) 2018-01-08 00:57:05 +01:00
pedro-vicente
cc58946cc8 CMake: Add option MSVC_USE_STATIC_CRT (#184)
to compile as C++/static CRT on Visual Studio
2018-01-08 00:50:31 +01:00
Sebastian Pipping
74877dde28 Changes: Document #181 2018-01-07 23:23:31 +01:00
Tomasz Kłoczko
d739e1d0e2 Drop -rpath libtool option as libexpat.so has no dependencies (#181) 2018-01-07 23:23:31 +01:00
Sebastian Pipping
a04764dcf0 runtests.c: Support Visual Studio <=9.x/2008 w/o stdint.h (#180)
Same approach as done in `lib/siphash.h`, earlier.
2017-12-27 13:33:46 +01:00
Rolf Eike Beer
5681911965 CMake: Use GNUInstallDirs module to set proper defaults for install directories 2017-12-14 20:35:04 +01:00
Sebastian Pipping
03fe35ef55 Changes: Document #176 2017-12-13 19:49:54 +01:00
Rolf Eike Beer
fa4bf716bd CMake: create the same pkg-config file as the autotools build 2017-12-13 19:48:30 +01:00
Sebastian Pipping
b7fbef9950 Changes: Add missing pull request references for 2.2.6 2017-12-13 18:28:00 +01:00
Sebastian Pipping
50d1ae6c28 Merge branch 'issue-165-fix-configure' (issue #165, pull request #168) 2017-12-13 18:17:36 +01:00
Brad King
6b3c448153 CMake: Prefer check_symbol_exists over check_function_exists
The `CheckFunctionExists` module documentation recommends using
`CheckSymbolExists` instead.  `check_symbol_exists` verifies that one
can actually include a header file and refer to a symbol.  This is more
robust than just checking whether one can link to a symbol by name.
2017-12-13 07:05:46 -05:00
Sebastian Pipping
298f93aa3c Changes: Document new CMake option WARNINGS_AS_ERRORS 2017-12-06 14:29:52 +01:00
vanklompf
ef64aa331d CMake option to treat warnings as errors 2017-12-04 23:31:10 +01:00
Sebastian Pipping
07584712a0 Changes: Move 2.2.6+ changes where they belong
Added to 2.2.5 by mistake, earlier.
2017-12-04 19:39:45 +01:00
Sebastian Pipping
38d1c9aeb4 Changes: Use vanklompf's real name (#173) 2017-12-04 19:32:48 +01:00
Sebastian Pipping
5f92189033 Changes: Give credit to vanklompf 2017-12-04 00:15:55 +01:00
Sebastian Pipping
f5322b01ac Address 64bit intptr_t loss warning for Visual Studio
Message was:
warning C4244: '=' : conversion from 'intptr_t' to 'int', possible loss of data
2017-12-04 00:15:55 +01:00
Sebastian Pipping
850c0922e1 Address 64bit size_t loss warning for Visual Studio
Message was:
warning C4267: 'argument' : conversion from 'size_t' to 'int'
2017-12-04 00:15:55 +01:00
Sebastian Pipping
fc9fe8f17c Address warning about sip_tobin by Visual Studio
Message was:
Warning: C4551 function call missing argument
2017-12-03 17:33:35 +01:00
Sebastian Pipping
9add0e11d4 qa.sh: Start using -Werror
.. in a way that does not break existing configure checks
(e.g. the one for memmove)
2017-12-03 17:18:30 +01:00
Sebastian Pipping
47135a3cca Add Visual Studio const correctness compiler warnings
Warning was:
warning C4090: 'function' : different 'const' qualifiers
2017-12-03 17:15:02 +01:00
vanklompf
bc54490e6d Fix missing posix functions declaration on Visual Studio build 2017-12-03 16:31:12 +01:00
vanklompf
399eadd15d Enable CRT_SECURE_NO_WARNINGS in default VC projects
Silence warnings on windows builds
2017-12-03 16:30:58 +01:00
Sebastian Pipping
8e3f402efe Fix configure syntax error (#165) 2017-11-02 22:20:11 +01:00
Sebastian Pipping
86cbbb2e74 Changes: Limit scope of grep -q to autotools build system (#166) 2017-11-02 22:18:11 +01:00
Sebastian Pipping
e41c222677 Changes: Document #167 2017-11-02 22:16:37 +01:00
Joe Orton
b242236c8e Allow configure with DOCBOOK_TO_MAN="xmlto man --skip-validation". 2017-11-02 22:11:49 +01:00
Sebastian Pipping
622da3af18 Avoid grep option -q for Solaris (#166)
Also utilize variable ${FGREP} set by configure
2017-11-02 21:37:38 +01:00
Sebastian Pipping
336b921708 Changes: Document upgrade to Visual Studio 2017
Related commit: a1f553f5f5
2017-11-01 19:36:06 +01:00
Karl Waclawek
968b8cc46d Improved Win32 setup file name. 2017-11-01 10:47:55 -04:00
Karl Waclawek
99c17d3b98 Simplified version number updating in setup file for Win32. Fixed Copyright character for UTF-8. 2017-11-01 10:43:36 -04:00
Karl Waclawek
a1f553f5f5 Auto-upgrade of project files performed by Visual Studio 2017. This should not be a problem as the Community Edition of VS 2017 can be obtained for free. 2017-11-01 10:09:14 -04:00
Sebastian Pipping
5f9bc4836f Prepare release version 2.2.5 (#133) 2017-10-31 17:20:31 +01:00
Sebastian Pipping
824b9efe25 Extend .gitignore 2017-10-31 17:20:31 +01:00
Sebastian Pipping
0a6b7d2f31 Bump version info from 7:6:6 to 7:7:6 (#133) 2017-10-27 20:05:59 +02:00
Sebastian Pipping
0f5186c7b8 Support docbook-to-man command, e.g. for openSUSE (#153) 2017-10-27 19:47:08 +02:00
Sebastian Pipping
c227d90984 Changes: Document lack of XML_ERROR_INVALID_ARGUMENT message 2017-10-25 14:12:57 +02:00
Sebastian Pipping
4cf92e08cf xmlparse.c: Add version information to XML_ErrorString messages
.. based on comments from enum XML_Error in expat.h.
2017-10-25 14:09:23 +02:00
Hans Wennborg
5ae72360c6 XML_ErrorString: handle XML_ERROR_INVALID_ARGUMENT
Previously, this enum didn't have any error string.
2017-10-25 13:42:44 +02:00
Hans Wennborg
0ab7640bd9 Rewrite XML_ErrorString to use a switch
This makes it a little easier to correlate each enumerator with its
error message, and the compiler should generate a lookup table anyway.

It also avoids running into Clang's -Wsign-compare warning when building
on Windows (where enum's are signed ints):

  error: comparison of integers of different signs: 'enum XML_Error'
  and 'unsigned int' [-Werror,-Wsign-compare]
  if (code > 0 && code < sizeof(message)/sizeof(message[0]))
                  ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We ran into this when building Chromium on Windows using a recent version of
Clang.
2017-10-25 13:42:44 +02:00
Sebastian Pipping
5c224d67ec xmlparse.c: Make failproof entropy providers stand out more 2017-10-24 22:50:01 +02:00
Sebastian Pipping
a80b209884 xmlparse.c: Address warning about unused functions (#161) 2017-10-24 22:46:30 +02:00
Sebastian Pipping
535047b10c Tests: Fix CPPFLAGS=-DNDEBUG ourselves (#160) 2017-10-24 21:41:18 +02:00
Sebastian Pipping
68bf904027 Changes: Document #153 and #155 2017-10-21 19:55:32 +02:00
Sebastian Pipping
b1ca18f795 doc/Makefile.am: Round braces for style 2017-10-21 19:50:55 +02:00
Sebastian Pipping
8fa1d0e7cd doc/Makefile.am: Fix mis-use of variable
We want to delete all generated man pages, not all distributed ones.
2017-10-21 19:50:27 +02:00
Sebastian Pipping
b49e3f907e configure.ac: Improve documentation of --with(out)-docbook 2017-10-21 19:48:23 +02:00
Sebastian Pipping
7c62246abc configure.ac: Allow for custom docbook2x-man command
Example:
./configure DOCBOOK_TO_MAN=/bin/true
2017-10-21 19:44:16 +02:00
Sebastian Pipping
9ec95b7605 doc/Makefile.am: Improve scope of docbook2man availability
.. so that "make dist" has no chance of shipping no manpage
or and outdated one.
2017-10-21 19:40:14 +02:00
Stephen Groat
cb7d430d22 Fix docbook 2017-10-21 19:23:48 +02:00
Sebastian Pipping
f75a40cbae xmlwf|tests: Repeat L string prefix to fix compilation 2017-10-04 22:55:42 +02:00
Sebastian Pipping
31bdf3025b xmlwf/xmltchar.h: Make T(..) support T(XML_FMT_INT_MOD) 2017-10-04 21:29:35 +02:00
Sebastian Pipping
41cc68cb67 xmlwf.c: Fix code indentation 2017-10-04 21:14:10 +02:00
Sebastian Pipping
177eb6bbb9 README.md: Use pseudo-organization AppVeyor account 2017-09-16 01:03:18 +02:00
Sebastian Pipping
a0567a38c2 loadlibrary.c: Exclude line from coverage
.. as it seems that something in Windows/Wine would need to be off
to execute it.
2017-09-11 17:11:29 +02:00
Sebastian Pipping
3240718240 Fix test suite for --disable-xml-context (#146)
Regression from bc6468d230
2017-09-11 15:29:57 +02:00
Sebastian Pipping
4bad01f941 udiffer.py: Ship with tarballs 2017-09-09 19:20:40 +02:00
Sebastian Pipping
9f166f82e8 runtests.c: Fix compilation for undefined XML_CONTEXT_BYTES
Regression from 70d19d635a

Compile error was:
  runtests.c: In function ‘byte_character_handler’:
  runtests.c:4195:11: error: ‘s’ undeclared (first use in this function)
       (void)s;
2017-09-09 19:13:21 +02:00
Sebastian Pipping
bc7d690203 Changes: Mention #144 2017-09-09 18:59:29 +02:00
Sebastian Pipping
21df4d3064 coverage.sh: Support XML_UNICODE_WCHAR_T with MinGW 2017-09-09 18:59:29 +02:00
Sebastian Pipping
7b3f902a69 Make wmain work with MinGW 2017-09-09 18:59:29 +02:00
Sebastian Pipping
d1a4212992 coverage.sh: Migrate to GNU Automake (#65) 2017-09-09 18:59:29 +02:00
Sebastian Pipping
3efafceb60 udiffer.py: Improve overall structure 2017-09-09 18:21:18 +02:00
Sebastian Pipping
7c0f6d71cc udiffer.py: Extract function to resolve code duplication 2017-09-09 18:21:18 +02:00
Sebastian Pipping
7f768b5068 udiffer.py: Add license header 2017-09-09 18:21:18 +02:00
Rhodri James
fec399291e Make xmltest.sh script work for UTF-16 builds 2017-09-09 18:21:18 +02:00
Sebastian Pipping
df75ab14f4 xmlwf: Indent preprocessor code 2017-09-09 18:21:18 +02:00
Rhodri James
71b533dae1 Fix file access for xmlwf compiled with XML_UNICODE_WCHAR_T on MinGW 2017-09-04 14:29:39 +01:00
Rhodri James
742fbf024f Make xmlwf build with XML_UNICODE_WCHAR_T on MinGW
This seems to need some extra mangling of Makefile.am for MinGW.

  * Add "-mwindows" to AM_CPPFLAGS
  * Add "AM_LDFLAGS = -municode"

Running the XML tests (xmltest.sh) is problematic: it needs a
unicode-aware differ for starters
2017-09-04 14:29:39 +01:00
Sebastian Pipping
56b64ca040 Changes: Document fix to #59 2017-09-03 02:13:03 +02:00
Sebastian Pipping
a6f25bc39f xmlparse.c: Stop malloc/realloc/free macros from hiding parser (issue #59) 2017-09-03 02:00:23 +02:00
Sebastian Pipping
598be69685 xmlparse.c: Resolve macro "buffer" (issue #59) 2017-09-03 01:51:56 +02:00
Sebastian Pipping
66f64e58f8 xmlparse.c: Resolve macro "encoding" (issue #59) 2017-09-03 01:48:17 +02:00
Sebastian Pipping
9cc3ded1b8 xmlparse.c: Resolve macro "defaultExpandInternalEntities" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
fe9deeeb79 xmlparse.c: Resolve macro "unknownEncodingHandlerData" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
89017e2b1f xmlparse.c: Resolve macro "internalEntityRefHandler" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
71950e96be xmlparse.c: Resolve macro "externalEntityRefHandlerArg" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
28fd39ca7d xmlparse.c: Resolve macro "externalEntityRefHandler" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
a0d9d36652 xmlparse.c: Resolve macro "startNamespaceDeclHandler" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
6472431ab7 xmlparse.c: Resolve macro "unparsedEntityDeclHandler" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
588570c96f xmlparse.c: Resolve macro "startCdataSectionHandler" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
f71b05f38a xmlparse.c: Resolve macro "processingInstructionHandler" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
01ab82f496 xmlparse.c: Resolve macro "hash_secret_salt" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
a436b94582 xmlparse.c: Resolve macro "paramEntityParsing" (issue #59) 2017-09-03 01:42:25 +02:00
Sebastian Pipping
c1040d02fa xmlparse.c: Resolve macro "useForeignDTD" (issue #59) 2017-09-03 01:32:36 +02:00
Sebastian Pipping
52b69d2905 xmlparse.c: Resolve macro "isParamEntity" (issue #59) 2017-09-03 01:32:04 +02:00
Sebastian Pipping
7c3ece72fa xmlparse.c: Resolve macro "ps_finalBuffer" (issue #59) 2017-09-03 01:31:23 +02:00