11 Commits

Author SHA1 Message Date
Nicholas Wilson
b79ee1dea5 Rename files which are #included (#708)
We have four files which have .c extensions, but which are actually #included rather than treated as their own compilation unit.

This goes against conventions - Autotools, CMake, and Bazel all assume that the .h/.c distinction indicates which files are compilation units.

pcre2_jit_match.c -> _inc.h
pcre2_jit_misc.c -> _inc.h
pcre2_printint.c -> _inc.h
pcre2_ucptables.c -> _inc.h
2025-02-27 06:57:44 +00:00
Nicholas Wilson
5b3edae9d2 Add CI test to ensure installation manifest is correct (#630)
The new CI job ensures that `make distcheck` passes.

It also bundles up the tarball and includes in the GitHub artifacts, along with a GitHub-provided attestation that the tarball is derived from the given build steps.
2024-12-18 12:02:23 +00:00
Carlo Marcelo Arenas Belón
8c84b4ba58 reimplement asserts with a safer approach (#490)
The original asserts weren't very useful in debug mode as they
were lacking information on where they were being triggered and
were also unreliable and dangerous as they could result in
important code being removed and trigger crashes (even in non
debug mode).

Instead of implementing one generic assert for both modes, build
a more useful one for each one, so PCRE2_UNREACHABLE() could be
also used in non debug builds to help with optimization.

Reinstate all original assertions to use the new versions, which
will have the sideeffect of fixing indentation issues introduced
in the original, and include additional asserts that were provided
as the original ones were being audited for safety. Note that during
such audit the use of the original asserts might had been refactored
so it also includes all those relevant code changes.

While at it, update cmake and CI to help with testing as well as
other documentation.

Co-authored-by: Alex Dowad <alexinbeijing@gmail.com>
2024-10-02 15:08:18 +01:00
Carlo Marcelo Arenas Belón
9c905ce0c1 maint: avoid duplicated boolean properties and bad script extensions (#202)
`ucptest` was misbehaving and showing the wrong properties and
finding the wrong characters.
2023-02-03 14:57:32 +00:00
Philip Hazel
87571b5af3 Update documentation and comments for UCD generation 2022-01-10 16:26:41 +00:00
Philip Hazel
ec091e2e44 Restore lost de-duplication 2022-01-10 11:31:27 +00:00
Philip Hazel
636569a957 Initial code for Boolean property support 2022-01-09 14:46:43 +00:00
Zoltan Herczeg
f90542a209 Improve unicode property abbreviation support (#74)
* Improve unicode property abbreviation support

* Auto-generate script names

Co-authored-by: Zoltan Herczeg <hzmester@freemail.hu>
2022-01-07 10:01:18 +00:00
Zoltan Herczeg
afa4756d19 Rework script extension handling (#64)
Co-authored-by: Zoltan Herczeg <hzmester@freemail.hu>
2021-12-29 09:35:22 +00:00
Philip Hazel
7713f33e46 Add support for 4-character script abbreviations 2021-12-28 15:10:12 +00:00
Philip Hazel
98e7d70bc6 Refactor Python scripts for generating Unicode property data 2021-12-26 17:49:58 +00:00