This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add new API function sv_get_backrefs()
authorYves Orton <demerphq@gmail.com>
Thu, 25 Dec 2014 00:33:42 +0000 (01:33 +0100)
committerYves Orton <demerphq@gmail.com>
Thu, 25 Dec 2014 00:34:39 +0000 (01:34 +0100)
commiteaab56493bda8d2c9e499f01433ea2da9b29f6e5
treef52f9654540bc436cf4482d0dfe54e65410158bc
parentcced55d2e366f8ccb0884e747f32c32c1b538989
add new API function sv_get_backrefs()

This encapsulates the logic to extract the backrefs from a weak-referent.

Since sv_get_backrefs() can be used for a similar purposes as hv_backreferences_p()
we no longer need to export the later, and therefore this patch also reverts
ad2f46a793b4ade67d45ac0086ae62f6756c2752.

See perl #123473 for related discussion, and https://github.com/Sereal/Sereal/issues/73
for a practical example of why this API is required.
MANIFEST
embed.fnc
embed.h
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/weaken.t [new file with mode: 0644]
proto.h
sv.c