summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-02-03 03:45:09 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-02-03 03:45:09 +0000
commit43a861f1c4418d63c6d99fbecb816d11ccf25793 (patch)
tree5e372c082dfbfb4e786c379f5a2897f797cd270f /perl.c
parent423d68ab98265bbd73b2ade2438378d2784c6e8c (diff)
parente7f07268aa53c62dd99727c5a996618d28697a90 (diff)
downloadperl-43a861f1c4418d63c6d99fbecb816d11ccf25793.tar.gz
[win32] integrate mainline
p4raw-id: //depot/win32/perl@455
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl.c b/perl.c
index 60d4d7d7df..54fb772d4e 100644
--- a/perl.c
+++ b/perl.c
@@ -936,7 +936,7 @@ print \" \\@INC:\\n @INC\\n\";");
SvREFCNT_dec(rs);
rs = SvREFCNT_inc(nrs);
#ifdef USE_THREADS
- sv_setsv(*av_fetch(thr->threadsv, find_threadsv("/"), FALSE), rs);
+ sv_setsv(THREADSV(find_threadsv("/")), rs);
#else
sv_setsv(GvSV(gv_fetchpv("/", TRUE, SVt_PV)), rs);
#endif /* USE_THREADS */
@@ -1054,7 +1054,7 @@ perl_get_sv(char *name, I32 create)
PADOFFSET tmp = find_threadsv(name);
if (tmp != NOT_IN_PAD) {
dTHR;
- return *av_fetch(thr->threadsv, tmp, FALSE);
+ return THREADSV(tmp);
}
}
#endif /* USE_THREADS */
@@ -2510,7 +2510,7 @@ init_predump_symbols(void)
GV *othergv;
#ifdef USE_THREADS
- sv_setpvn(*av_fetch(thr->threadsv,find_threadsv("\""),FALSE)," ", 1);
+ sv_setpvn(THREADSV(find_threadsv("\"")), " ", 1);
#else
sv_setpvn(GvSV(gv_fetchpv("\"", TRUE, SVt_PV)), " ", 1);
#endif /* USE_THREADS */
@@ -2799,6 +2799,7 @@ init_main_thread()
curcop = &compiling;
thr->cvcache = newHV();
thr->threadsv = newAV();
+ /* thr->threadsvp is set when find_threadsv is called */
thr->specific = newAV();
thr->errhv = newHV();
thr->flags = THRf_R_JOINABLE;