summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-01-03 15:17:29 +0000
committerNicholas Clark <nick@ccl4.org>2007-01-03 15:17:29 +0000
commit4674ade5b759c9369580374e5145fe253ded600d (patch)
treee7e934e33bf28ab0f7f73a3301ff23df98793f33 /sv.c
parentb0cda13faf629d100b3142c37f2720b08a110474 (diff)
downloadperl-4674ade5b759c9369580374e5145fe253ded600d.tar.gz
Make the ptr_table functions available in an unthreaded perl, as other
code (such as Storable) can take advantage of them. p4raw-id: //depot/perl@29673
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 5f066c79bc..8bed94185d 100644
--- a/sv.c
+++ b/sv.c
@@ -9689,6 +9689,8 @@ Perl_mg_dup(pTHX_ MAGIC *mg, CLONE_PARAMS* param)
return mgret;
}
+#endif /* USE_ITHREADS */
+
/* create a new pointer-mapping table */
PTR_TBL_t *
@@ -9832,6 +9834,7 @@ Perl_ptr_table_free(pTHX_ PTR_TBL_t *tbl)
Safefree(tbl);
}
+#if defined(USE_ITHREADS)
void
Perl_rvpv_dup(pTHX_ SV *dstr, const SV *sstr, CLONE_PARAMS* param)