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

Add support for libpcre2 (compiles and works) #1035

Closed
wants to merge 1 commit into from

Conversation

aswild
Copy link
Contributor

@aswild aswild commented Dec 18, 2016

I did a thing.

Add optional support to build with libpcre2.
Enable by passing --with-pcre2 to ./configure, the default is still to
build against legacy libpcre.

To facilitate compiling against either PCRE API version, an ag_pcre
wrapper API was created. This is done through a combination of AG_PCRE_*
defines and ag_pcre_* functions, plus typedefs ag_pcre_re_t and
ag_pcre_extra_t

At this point, ag can be built with libpcre or libpcre2 and passes tests
without modifying them. Preliminary testing hasn't shown much change in
speed, but further profiling should still be done.

Add optional support to build with libpcre2.
Enable by passing --with-pcre2 to ./configure, the default is still to
build against legacy libpcre.

To facilitate compiling against either PCRE API version, an ag_pcre
wrapper API was created. This is done through a combination of AG_PCRE_*
defines and ag_pcre_* functions, plus typedefs ag_pcre_re_t and
ag_pcre_extra_t

At this point, ag can be built with libpcre or libpcre2 and passes tests
without modifying them. Preliminary testing hasn't shown much change in
speed, but further profiling should still be done.
@gcflymoto
Copy link

this is great, I cherry picked your changes and updates for the latest code in git. Hopefully with this patch it solves #975

@aswild
Copy link
Contributor Author

aswild commented May 15, 2018

out of date PR which got no attention anyway

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.

2 participants