X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/aff85f084d118f0aa4410cf7270a3af178d4c6b4..fc6aef98f51e092c1f5912343d85fe904363efe9:/dist/Devel-PPPort/PPPort_pm.PL diff --git a/dist/Devel-PPPort/PPPort_pm.PL b/dist/Devel-PPPort/PPPort_pm.PL index b2fb34a..2eee616 100644 --- a/dist/Devel-PPPort/PPPort_pm.PL +++ b/dist/Devel-PPPort/PPPort_pm.PL @@ -286,7 +286,14 @@ sub expand_pp_expr my $proto = make_prototype($e); if (exists $prototypes{$func}) { if (compare_prototypes($proto, $prototypes{$func})) { - check(1, "differing prototypes for $func:\n API: $proto\n PPP: $prototypes{$func}"); + my $proto_no_pTHX = $proto; + $proto_no_pTHX =~ s/pTHX_\s*//; + if (compare_prototypes($proto_no_pTHX, $prototypes{$func})) { + check(1, "differing prototypes for $func:\n API: $proto\n PPP: $prototypes{$func}"); + } + else { + check(1, "prototypes differ in pTHX_ for $func:\n API: $proto\n PPP: $prototypes{$func}"); + } $proto = $prototypes{$func}; } }