Commit graph

3922 commits

Author SHA1 Message Date
Sebastian Pipping
6162b99065
Merge pull request #748 from libexpat/runtests-cxx-restore
tests: Restore that all of runtestspp is run through a C++ compiler
2023-09-21 13:25:09 +02:00
Sebastian Pipping
74dbef1552 CMake: Pass -Wno-format with MinGW 2023-09-20 19:08:05 +02:00
Sebastian Pipping
4642553bb8 CMake: Stop redefining STDC_HEADERS 2023-09-20 19:08:03 +02:00
Sebastian Pipping
07b6d0089f tests: Rename "runtestspp" to "runtests_cxx" 2023-09-19 19:25:19 +02:00
Sebastian Pipping
aacc14f4b4 tests: Restore that all of runtestspp is run through a C++ compiler
.. as originally intended before the big split-up refactoring.
2023-09-19 19:22:20 +02:00
Sebastian Pipping
322ac581e3 tests: Cast malloc/calloc/realloc results to allow use as C and C++ 2023-09-19 19:20:11 +02:00
Sebastian Pipping
f5e20fcb9d tests: Add more const near malloc/calloc/realloc 2023-09-19 19:19:33 +02:00
Sebastian Pipping
34dc95a08a tests/structdata.c: Avoid name "new" to allow reuse from C++ 2023-09-19 19:14:14 +02:00
Sebastian Pipping
2fb1aee9aa tests/Makefile.am: Sort libruntests_a_SOURCES alphabetically 2023-09-19 18:51:41 +02:00
Sebastian Pipping
8192058e2a
Merge pull request #747 from libexpat/tests-explicit-expat-config-h
tests/handlers.h: Be explicit about direct dependency expat_config.h
2023-09-19 18:34:29 +02:00
Sebastian Pipping
41762d1cf2
Merge pull request #746 from libexpat/cmake-sort-xmlwf-sources
CMake: Sort xmlwf sources alphabetically
2023-09-19 17:58:47 +02:00
Sebastian Pipping
b709ce2b0a CMake: Sort xmlwf sources alphabetically 2023-09-19 16:19:47 +02:00
Sebastian Pipping
48f15bfa1c tests/handlers.h: Be explicit about direct dependency expat_config.h
The file checks for XML_DTD being defined.
2023-09-19 16:16:54 +02:00
Sebastian Pipping
4811d55b12
Merge pull request #745 from SonyMobile/is-final
Document the importance of isFinal + adjust tests accordingly
2023-09-14 16:05:54 +02:00
Snild Dolkow
d4105a9080 tests: Set isFinal=1 in line/column-number-after-error tests 2023-09-14 11:16:40 +02:00
Snild Dolkow
2cee1061e2 tests: Set isFinal in test_column_number_after_parse
Without this, parsing of the end tag may be deferred, yielding an
unexpected column number.
2023-09-14 11:16:36 +02:00
Snild Dolkow
d52b414149 tests: Move triplet_start_checker flag check after isFinal=1 call
There is no guarantee that the callback will happen before the parse
call with isFinal=XML_TRUE. Let's move the assertion to a location
where we know it must have happened.
2023-09-14 11:16:29 +02:00
Snild Dolkow
355a123b92 docs: Document the importance of isFinal
Before the concluding `isFinal=XML_TRUE` parse call, there is no
guarantee that all input has been parsed. An application that omits
that call risks missing handler callbacks and/or parsing errors.
2023-09-14 11:15:59 +02:00
Sebastian Pipping
9d715b1062
Merge pull request #744 from libexpat/xmlwf-help-fixes
xmlwf: Improve language and URL clickability in help output
2023-09-11 23:13:19 +02:00
Sebastian Pipping
2f2cda0a2a xmlwf: Improve language and URL clickability in help output 2023-09-11 21:54:24 +02:00
Sebastian Pipping
ac5faf7d2d
Merge pull request #743 from libexpat/dependabot/github_actions/actions/checkout-4.0.0
Actions(deps): Bump actions/checkout from 3.6.0 to 4.0.0
2023-09-11 21:11:59 +02:00
Sebastian Pipping
3e92d68ce2
Merge pull request #742 from libexpat/dependabot/github_actions/actions/upload-artifact-3.1.3
Actions(deps): Bump actions/upload-artifact from 3.1.2 to 3.1.3
2023-09-11 15:36:24 +02:00
dependabot[bot]
37a2262af4
Actions(deps): Bump actions/checkout from 3.6.0 to 4.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...3df4ab11eb)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 12:19:44 +00:00
dependabot[bot]
d644e679d4
Actions(deps): Bump actions/upload-artifact from 3.1.2 to 3.1.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](0b7f8abb15...a8a3f3ad30)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 12:19:39 +00:00
Sebastian Pipping
8b5c9e1a01
Merge pull request #740 from libexpat/pull-674-sandwich
Merge branch `pull-674-sandwich` into `master`
2023-09-02 23:11:31 +02:00
Sebastian Pipping
f4071b8417
Merge pull request #739 from libexpat/codespell-action
codespell.yml: Make CI reject spelling errors using codespell + fix two typos
2023-09-02 22:14:31 +02:00
Sebastian Pipping
66435e268f
Merge pull request #738 from libexpat/pull-674-topping
Make branch `pull-674-sandwich` mergable to `master`
2023-09-02 20:50:34 +02:00
Sebastian Pipping
181d06421d codespell.yml: Make CI reject spelling errors using codespell 2023-09-02 19:04:38 +02:00
Sebastian Pipping
c0a78d0511 Changes: Fix typo "curruption" in section on release 2.5.0 2023-09-02 19:04:38 +02:00
Sebastian Pipping
1264df28b3 CMake: Fix in-comment typo "compatiblity" 2023-09-02 19:04:38 +02:00
Sebastian Pipping
2ac0600db5
Merge pull request #737 from libexpat/dependabot/github_actions/actions/checkout-3.6.0
Actions(deps): Bump actions/checkout from 3.5.3 to 3.6.0
2023-09-02 18:46:29 +02:00
Sebastian Pipping
ca6050827d tests/ns_tests.c: Be explicit about direct dependency expat_config.h 2023-09-02 18:38:03 +02:00
Sebastian Pipping
26c33a2dcc tests: Undef NDEBUG where needed more after refactoring
All other test files using assert(..) and <assert.h> have the same.
2023-09-02 18:37:35 +02:00
Sebastian Pipping
17367a5642 tests/runtests.c: Re-apply 883115d0a3 and c094e450a1
This effectively reverts commit 42dc2c2c4e.
2023-09-02 18:36:36 +02:00
Sebastian Pipping
014a303dc1
Merge pull request #674 from RMJ10/test_refactor_2
Refactor coverage and conformance tests
2023-09-02 18:33:53 +02:00
dependabot[bot]
fab7fdd903
Actions(deps): Bump actions/checkout from 3.5.3 to 3.6.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](c85c95e3d7...f43a0e5ff2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 12:05:56 +00:00
Sebastian Pipping
42dc2c2c4e tests/runtests.c: Revert 883115d0a3 and c094e450a1
.. to not break a ~100 commit refactoring during rebase.  Will be re-applied after refactoring.

Related command was:
$ git checkout c094e450a136ffdf4d3e128588b615008a35489e^ -- ./tests/runtests.c
2023-08-26 15:31:34 +02:00
Sebastian Pipping
b8c22bd391
Merge pull request #736 from libexpat/doc-reference-null
doc/reference.html: Improve on use of "NULL" and "null"
2023-08-24 22:18:47 +02:00
Sebastian Pipping
8249a3e62e doc/reference.html: Fix "non NULL" to "non-NULL" 2023-08-24 15:37:10 +02:00
Sebastian Pipping
c9205bb934 doc/reference.html: Be consistent about "null-terminated"
.. regarding spelling
2023-08-24 15:37:10 +02:00
Sebastian Pipping
572bab6fe5 doc/reference.html: Replace mistaken "NULL" by "null"
.. in context of string termination
2023-08-24 15:37:10 +02:00
Sebastian Pipping
f2d934910c doc/reference.html: Replace "null" by "NULL" where adequate 2023-08-24 15:37:10 +02:00
Sebastian Pipping
a779f1300c doc/reference.html: Style NULL in text as code consistently 2023-08-24 15:31:45 +02:00
Sebastian Pipping
20293f2ad2
Merge pull request #733 from libexpat/fix-ci
runtests.c: Initialize storage prior to usage (cppcheck 2.11) + autotools: Sync CMake templates with CMake 3.25
2023-07-26 18:05:59 +02:00
Sebastian Pipping
87c87a0d7d Changes: Document #706 and #733 2023-07-26 17:13:02 +02:00
Sebastian Pipping
54a8cbac61 autotools: Sync CMake templates with CMake 3.25 2023-07-26 17:12:00 +02:00
Sebastian Pipping
883115d0a3 runtests.c: Initialize storage prior to usage (cppcheck 2.11)
Error was:
> expat/tests/runtests.c:6818:50: error: Uninitialized variable: &storage [uninitvar]
>   ParserPlusStorage parserPlusStorage = {parser, &storage};
>                                                  ^
2023-07-26 17:07:02 +02:00
Sebastian Pipping
6a36e138f3
Merge pull request #728 from libexpat/dependabot/github_actions/actions/checkout-3.5.3
Actions(deps): Bump actions/checkout from 3.5.2 to 3.5.3
2023-06-12 16:50:46 +02:00
dependabot[bot]
beb4ede991
Actions(deps): Bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 12:56:56 +00:00
Sebastian Pipping
a7d16c77e5
Merge pull request #727 from libexpat/issue-726-configure-support-disable-maintainer-mode
configure.ac: Support --disable-maintainer-mode (fixes #726)
2023-06-07 21:51:29 +02:00