summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-11-11 12:48:26 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-11-11 12:48:26 +0000
commit38a03e6ea6b9b346c41b9006fbeedc3b0f0130b2 (patch)
treedfad8700b788597b91a0ada8768e7b083306c4b7 /mg.c
parent57d3b86dc9b74a9b2d9e24c40494104c74f62be7 (diff)
downloadperl-38a03e6ea6b9b346c41b9006fbeedc3b0f0130b2.tar.gz
Fix up $@ (ERRSV now refers to GvSV(errgv) for non-threaded perl and
thr->errsv for threaded perl). Fix pp_tie and pp_dbmopen to use GvCV(gv) instead of gv so AUTOLOAD stuff works. All tests now pass again for non-threaded perl. Enhanced perl_get_sv to return per-thread magicals where necessary for threaded perl. p4raw-id: //depot/perl@228
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 47e05a1176..15005e075e 100644
--- a/mg.c
+++ b/mg.c
@@ -580,7 +580,7 @@ MAGIC *mg;
break;
#ifdef USE_THREADS
case '@':
- sv_setsv(sv, errsv);
+ sv_setsv(sv, thr->errsv);
break;
#endif /* USE_THREADS */
}
@@ -1719,7 +1719,7 @@ MAGIC* mg;
break;
#ifdef USE_THREADS
case '@':
- sv_setsv(errsv, sv);
+ sv_setsv(thr->errsv, sv);
break;
#endif /* USE_THREADS */
}