This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add SvREFCNT_dec_NN()
authorDavid Mitchell <davem@iabyn.com>
Tue, 4 Dec 2012 11:32:39 +0000 (11:32 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 4 Dec 2012 11:32:39 +0000 (11:32 +0000)
commit4a9a56a75c57646b348598f90875415e994d2f65
treec6b563b3f66247d8ef7596f8010bd6b4fd1c50f6
parent75a9bf9690b77515a287eb483ea2709b73810c41
add SvREFCNT_dec_NN()

Like SvREFCNT_dec(), but skips the not null check, making code potentially
smaller and faster.

Also as proof of concept, updates the SvREFCNT_dec's in scope.c where
it's obvious the value can't be NULL. There are still 500+ uses in the
perl core that need evaluating!
inline.h
scope.c
sv.h