Add new API function sv_rvunweaken

Programming / Compilers / PERL - Dagfinn Ilmari Mannsåker [ilmari.org] - 4 September 2017 05:11 EDT

Needed to fix in-place sort of weak references in a future commit.

Stolen from Scalar::Util::unweaken, which will be made to use this when available via CPAN upstream.

ae2cf9f Add new API function sv_rvunweaken
embed.fnc | 1 +
embed.h | 1 +
pod/perldiag.pod | 10 ++++++++++
proto.h | 3 +++
sv.c | 39 ++++++++++++++++++++++++++++++++++++++-
5 files changed, 53 insertions(+), 1 deletion(-)

Upstream: perl5.git.perl.org


  • Share