summaryrefslogtreecommitdiff
path: root/perlapi.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-11-15 18:47:34 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-11-15 18:47:34 +0000
commit8d5630125a4c2a8f0b9bf3e77e79c546fb5c5a6d (patch)
tree79a2007970c37d708bda25ae6ece44fe373dfcd4 /perlapi.c
parentce2f7c3be671853dd8e435baa8ec8d4453b3bb86 (diff)
downloadperl-8d5630125a4c2a8f0b9bf3e77e79c546fb5c5a6d.tar.gz
add a synchronous stub fork() for USE_ITHREADS to prove that a simple
C<if (fork()) { print "parent" } else { print "child" }> works on Windows (incidentally running a cloned^2 interpreter :) p4raw-id: //depot/perl@4589
Diffstat (limited to 'perlapi.c')
-rw-r--r--perlapi.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/perlapi.c b/perlapi.c
index 2a7899cb37..02795ad30d 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -4857,6 +4857,27 @@ Perl_boot_core_xsutils(pTHXo)
}
#if defined(USE_ITHREADS)
+#undef Perl_cx_dup
+PERL_CONTEXT*
+Perl_cx_dup(pTHXo_ PERL_CONTEXT* cx, I32 ix, I32 max)
+{
+ return ((CPerlObj*)pPerl)->Perl_cx_dup(cx, ix, max);
+}
+
+#undef Perl_si_dup
+PERL_SI*
+Perl_si_dup(pTHXo_ PERL_SI* si)
+{
+ return ((CPerlObj*)pPerl)->Perl_si_dup(si);
+}
+
+#undef Perl_ss_dup
+ANY*
+Perl_ss_dup(pTHXo_ ANY* ss, I32 ix, I32 max)
+{
+ return ((CPerlObj*)pPerl)->Perl_ss_dup(ss, ix, max);
+}
+
#undef Perl_he_dup
HE*
Perl_he_dup(pTHXo_ HE* e, bool shared)