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
Bleadperl v5.19.0-339-g52a21eb breaks DGL/re-engine-RE2-0.11.tar.gz #13834
Comments
From @andkgit bisect commit 52a21eb add strbeg argument to Perl_re_intuit_start() diagnostics http://www.cpantesters.org/cpan/report/2c5513f4-cd69-11e3-86a8-5ce66dfca90a ticket in rt.cpan https://rt.cpan.org/Ticket/Display.html?id=95144 perl -V see diagnostics -- |
From @tonycozOn Tue May 13 20:07:18 2014, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
This was broken by a documented change to the regular expression API: =item * The signature of the C<Perl_re_intuit_start()> regex function has changed; Unfortunately it was also broken by a more vaguely documented change: The regular expression engine now supports strings longer than 2**31 I've added: =item * The signature of the C<Perl_regexec_flags()> regex function has The attached patch fixes the build for re-engine-RE2 on blead. Tony |
From @tonycozre-engine-RE2.patchdiff -ru re-engine-RE2-0.11-orig/re2_xs.cc re-engine-RE2-0.11/re2_xs.cc
--- re-engine-RE2-0.11-orig/re2_xs.cc 2012-07-29 21:27:10.000000000 +1000
+++ re-engine-RE2-0.11/re2_xs.cc 2014-05-15 13:39:15.000000000 +1000
@@ -30,10 +30,17 @@
const
#endif
SV * const, U32);
+#if PERL_VERSION >= 19
+ char * RE2_intuit(pTHX_ REGEXP * const, SV *, const char *,
+ char *, char *, U32, re_scream_pos_data *);
+ I32 RE2_exec(pTHX_ REGEXP * const, char *, char *,
+ char *, SSize_t, SV *, void *, U32);
+#else
I32 RE2_exec(pTHX_ REGEXP * const, char *, char *,
char *, I32, SV *, void *, U32);
char * RE2_intuit(pTHX_ REGEXP * const, SV *, char *,
char *, U32, re_scream_pos_data *);
+#endif
SV * RE2_checkstr(pTHX_ REGEXP * const);
void RE2_free(pTHX_ REGEXP * const);
SV * RE2_package(pTHX_ REGEXP * const);
@@ -243,10 +250,17 @@
return rx_sv;
}
+#if PERL_VERSION >= 19
+I32
+RE2_exec(pTHX_ REGEXP * const rx, char *stringarg, char *strend,
+ char *strbeg, SSize_t minend, SV * sv,
+ void *data, U32 flags)
+#else
I32
RE2_exec(pTHX_ REGEXP * const rx, char *stringarg, char *strend,
char *strbeg, I32 minend, SV * sv,
void *data, U32 flags)
+#endif
{
RE2 * ri = (RE2*) RegSV(rx)->pprivate;
regexp * re = RegSV(rx);
@@ -291,12 +305,21 @@
return 1;
}
+#if PERL_VERSION >= 19
+char *
+RE2_intuit(pTHX_ REGEXP * const rx, SV * sv, const char *strbeg, char *strpos,
+ char *strend, U32 flags, re_scream_pos_data *data)
+#else
char *
RE2_intuit(pTHX_ REGEXP * const rx, SV * sv, char *strpos,
char *strend, U32 flags, re_scream_pos_data *data)
+#endif
{
PERL_UNUSED_ARG(rx);
PERL_UNUSED_ARG(sv);
+#if PERL_VERSION >= 19
+ PERL_UNUSED_ARG(strbeg);
+#endif
PERL_UNUSED_ARG(strpos);
PERL_UNUSED_ARG(strend);
PERL_UNUSED_ARG(flags);
|
The RT System itself - Status changed from 'new' to 'open' |
From @dglThanks for the patch, but it's fixed in re-engine-RE2 git already. Will do
|
From @rjbsSince we're not blocked by this, I've resolved it! David: RC1 comes out Real Soon. So consider making that pre-5.20.0 release. ;) -- |
@rjbs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#121868 (status was 'resolved')
Searchable as RT121868$
The text was updated successfully, but these errors were encountered: