This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Perl_amagic_deref_call() to implement the bulk of tryAMAGICunDEREF_var().
authorNicholas Clark <nick@ccl4.org>
Wed, 3 Nov 2010 14:57:11 +0000 (14:57 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 3 Nov 2010 15:04:34 +0000 (15:04 +0000)
commit25a9ffce153b0e67cfefd260754edeb097da5be7
tree6d7e60d1842fa73c3f0fcec7cc9a2e2272baf085
parent7d255dc8b56bf0fe58c3f8a5aa84ba17aade145f
Add Perl_amagic_deref_call() to implement the bulk of tryAMAGICunDEREF_var().

This removes around 300 bytes of object code from each place it was previously
inlined. It also provides a better interface - quite a lot of the core
currently bodges things by creating a local variable C<SV **sp = &sv> to use
the macro.

Change the XS::APItest wrapper to amagic_deref_call().
embed.fnc
embed.h
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/overload.t
global.sym
gv.c
pp.h
proto.h