This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Put common override code into gv_override
authorFather Chrysostomos <sprout@cpan.org>
Tue, 5 Nov 2013 22:35:45 +0000 (14:35 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 6 Nov 2013 13:56:03 +0000 (05:56 -0800)
commit9e3fb20c3e612686e655b7bb4d6982e3b565270a
tree85001b8405a42b516ee0f798c2ac7f607e906d44
parenta93a1bfd14dd3999c151fe1931d06a570700eb5c
Put common override code into gv_override

When I moved the three occurrences of this code in op.c into a static
function, I did not realise at the time that it also occurred thre
etimes in toke.c.

So now it is in a new non-static function in gv.c.

Only two of the instances in toke.c could be changed to use this func-
tion, as the otherwise is a little different.  I couldn’t see a simple
way of factoring its requirements in.
embed.fnc
embed.h
gv.c
op.c
proto.h
toke.c