This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Put sub redef warnings in one place
authorFather Chrysostomos <sprout@cpan.org>
Tue, 22 Nov 2011 05:57:21 +0000 (21:57 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 Nov 2011 05:57:58 +0000 (21:57 -0800)
commit156d738fbb36dec69a83032866786dd3b6a1c2e9
treea538f4a9441b726a96c027a37101201d0758ba12
parent971c5244800c9017603979e4f5202b8e5e374b62
Put sub redef warnings in one place

The logic surrounding subroutine redefinition warnings (to warn or not
to warn?) was in three places.  Over time, they drifted apart, to the\rpoint that newXS was following completely different rules.  It was
only warning for redefinition of functions in the autouse namespace.
Recent commits have brought it into conformity with the other redefi-
nition warnings.

Obviously it’s about time we put it in one function.
embed.fnc
embed.h
op.c
proto.h
sv.c