Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pcre2 to v10.44 #1

Merged
merged 1,762 commits into from
Jan 31, 2025
Merged

Update pcre2 to v10.44 #1

merged 1,762 commits into from
Jan 31, 2025

Conversation

MaartenBent
Copy link

No description provided.

PhilipHazel and others added 30 commits January 18, 2023 17:57
When using -t or its variants the timing results with a modern CPU
where not very significant even with 4 decimal digits.

While at it, move the factor calculation that can be done with
integer arithmetic and even optimized out for the more common case
when CLOCKS_PER_SEC == 1000000 out of the denominator.
Recent code uses C99 syntax (as reported in #163, and therefore it
will fail to build unless C99 (or higher) support is required by the
compiler (gcc >= 5 does it by default).

For those unfortunate to need an older compiler that does require a
flag to enable that, make sure that both autoconf and cmake make it
explicit.

While testing the change with the ancient autoconf version listed as
a prerequisite, noticed that the LT_INIT syntax introduced with 91485e5
(Update configure.ac for latest version of autoconf., 2021-02-02), was
not supported, so update the autoconf minimum as well.
It doesn't change much in practice, but helps clarify the interfaces
of some functions that were either documented with the wrong type or
had mismatching types between declaration and implementation.
Reverting several reserved characters that were removed from the
previous release, and that are only referencing as "@missing@ in
DerivedBidiClass.txt
* ucptest: regenerate testoutput

Last sync with 1a5fcd (Remove unused variables in ucptest.c and update test data
for added properties, 2022-04-25), and showing significant differences.

* fix `findprop +` with UTF-8 characters and duplicated other case
Starting with Unicode 15, the provided DerivedBidiClass data file
reports different default values to use for unassigned characters
in different groups.

Process the additional hints for that specific file, and allow
overriding the values later if more specific.

Since that was previously forbidden, change get_other_case() to
report when no valid value could be provided and allow skipping
conflicting rule lines that required that restriction.

While at it, Allow using the long identifiers in `ucptest` with
the `find bidi` command (underscores also allowed).
Compilers had become far more creative about optimizing code that
might be considered undefined behaviour, so improve our integer
overflow checking to prevent any possible miscompilations.

While at it, expand the use of the checks to pcre2test to fix a
similar problem to the one that was tackled in pcre2_compile.

Prefer (if available) a builtin provided by the compiler.
…(#202)

`ucptest` was misbehaving and showing the wrong properties and
finding the wrong characters.
PhilipHazel and others added 27 commits March 19, 2024 17:23
…(for an error message) before any potential use.
I'm going to commit this because it looks sensible, though I know nothing about MSVC and only a bit about CMake. Note that the failing actions on this PR are unrelated.
The test is now done in sljitConfigCPU.h
…uences like "){9){123}", causing a JIT timeout.
This is the only breaking change since the previous update

https://ziglang.org/documentation/0.12.0/std/#std.Build.Step.Compile.installHeader

Co-authored-by: Jordan Griege <>
…e tested with JIT, to avoid oss-fuzz timeouts.
Since a8a875e (windows: integrate visibility attributes without
conflicts (#249), 2023-05-16), PCRE2_EXPORT was meant to be
defined as an empty value for compilers that don't support
-fvisibility in *NIX, but a branch was left uncovered by mistake
resulting in compilation issues with propietary compilers in at
least Solaris and AIX.

define PCRE2_EXPORT even if the compiler is not GCC compatible.
remove files that are not in the upstream repo
update chartables
update config files
'for' loop initial declarations are only allowed in C99 mode
@vadz vadz merged commit b4b4098 into wxWidgets:wx Jan 31, 2025
@vadz
Copy link

vadz commented Jan 31, 2025

Really done now, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.