summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index d6ea1d2c58..b981c12fae 100644
--- a/mg.c
+++ b/mg.c
@@ -1511,6 +1511,13 @@ magic_freeregexp(SV *sv, MAGIC *mg)
return 0;
}
+int
+magic_unchain(SV *sv, MAGIC *mg)
+{
+ sv_unmagic(sv, mg->mg_type);
+ return 0;
+}
+
#ifdef USE_LOCALE_COLLATE
int
magic_setcollxfrm(SV *sv, MAGIC *mg)