summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2014-12-25 01:33:42 +0100
committerYves Orton <demerphq@gmail.com>2014-12-25 01:34:39 +0100
commiteaab56493bda8d2c9e499f01433ea2da9b29f6e5 (patch)
treef52f9654540bc436cf4482d0dfe54e65410158bc /embed.h
parentcced55d2e366f8ccb0884e747f32c32c1b538989 (diff)
downloadperl-eaab56493bda8d2c9e499f01433ea2da9b29f6e5.tar.gz
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.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index 8e71a421dc..c52446a44e 100644
--- a/embed.h
+++ b/embed.h
@@ -620,6 +620,7 @@
#define sv_eq_flags(a,b,c) Perl_sv_eq_flags(aTHX_ a,b,c)
#define sv_force_normal_flags(a,b) Perl_sv_force_normal_flags(aTHX_ a,b)
#define sv_free(a) Perl_sv_free(aTHX_ a)
+#define sv_get_backrefs(a) Perl_sv_get_backrefs(aTHX_ a)
#define sv_gets(a,b,c) Perl_sv_gets(aTHX_ a,b,c)
#define sv_grow(a,b) Perl_sv_grow(aTHX_ a,b)
#define sv_inc(a) Perl_sv_inc(aTHX_ a)