This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
change sv_setsv(sv,NULL) to sv_set_undef(sv)
authorDavid Mitchell <davem@iabyn.com>
Sat, 15 Jul 2017 21:12:41 +0000 (22:12 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 10:30:23 +0000 (11:30 +0100)
commit3773545d7938a87216a5f326c367a8c445193939
tree5114f3113d95617bb9bb7508db97b42f40e6a710
parent7c114860c0fa8ade5e00a4b609d2fbd11d5a494c
change sv_setsv(sv,NULL) to sv_set_undef(sv)

There are still a few core occurrences of

    sv_setsv(sv, NULL);

which is equivalent to

    sv_setsv(sv, &PL_sv_undef);

but which can now be done more efficiently with

    sv_set_undef(sv);
mg.c
pp_hot.c