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
Devel::PPPort makes incorrect suggestion for changing Perl_filter_read #16958
Comments
From @karenetheridgeA while ago I applied some changes to B::Hooks::Parser as suggested by ppport.h: karenetheridge/B-Hooks-Parser@66a934c ..and then yesterday released as This failed on threaded builds: 09:43 <%ether> khw: your changes in B::Hooks::Parser looked good, so I |
From @khwilliamsonI started to look at this, and can no longer recall the exact suggestion that was wrong, and can't find it in the ticket. Could you furnish that? |
The RT System itself - Status changed from 'new' to 'open' |
From @karenetheridgeOn Sun, 21 Apr 2019 17:49:34 -0700, khw wrote:
The suggestions it made are exactly what I patched in this commit: Going back one commit further than that is the 0.19 release, and running 'perl ppport.h' at that point should produce the same results. It had version 3.35 of the ppport file at the time, but last week I checked the lastest Devel::PPPort (3.45) and it still produced the same suggestions. |
From @tonycozOn Sun, 14 Apr 2019 11:15:27 -0700, karen@froods.org wrote:
I expect the output from ppport.h is intended for callers of the perl API filter_read() rather than for code that tries to redefine it. Calling the filter_read() macro instead of using Perl_filter_read() is good advice for callers of filter_read(), I don't think it's necessary for it to deal with the hopefully much less common case of code that tries to redefine perl API functions. Tony |
From @khwilliamsonOn Tue, 23 Apr 2019 18:56:18 -0700, tonyc wrote:
I've studied this more, and I agree with Tony. I'm thinking this ticket should be rejected. The problem is that this is using stolen core code, which is a situation we want to avoid, and should be quite rare. And I don't think it's worth enhancing ppport to handle this unlikely case. I looked at its code, and it does handle the case of a call to such a function, noting the aTHX_, and including its removal in the suggestion. But it has no current way of coping with a function definition which uses pTHX_ instead. If someone wanted to undertake doing this, I'd be happy to accept their pull request. But there are much more important things to spend one's time on. |
From @khwilliamsonDue to the reasons already given, I'm rejecting this ticket |
@khwilliamson - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#134032 (status was 'rejected')
Searchable as RT134032$
The text was updated successfully, but these errors were encountered: