diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1998-07-26 14:31:01 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1998-07-26 14:31:01 +0000 |
commit | c485e6072d15e92c314a8b9cb6957c3edf13f985 (patch) | |
tree | 91936656aa4b557fe9c7bb4b88a47b3e3591df64 /mg.c | |
parent | f13d8a8ffd56f8f5e7431d8bef692aaa336d55a8 (diff) | |
download | perl-c485e6072d15e92c314a8b9cb6957c3edf13f985.tar.gz |
Add dTHR so that it compiles miniperl in threaded mode
p4raw-id: //depot/perl@1667
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1149,6 +1149,7 @@ magic_setpos(SV *sv, MAGIC *mg) SSize_t pos; STRLEN len; STRLEN ulen; + dTHR; mg = 0; @@ -1166,7 +1167,7 @@ magic_setpos(SV *sv, MAGIC *mg) } len = SvPOK(lsv) ? SvCUR(lsv) : sv_len(lsv); - WITH_THR(pos = SvIV(sv) - PL_curcop->cop_arybase); + pos = SvIV(sv) - PL_curcop->cop_arybase; if (IN_UTF8) { ulen = sv_len_utf8(lsv); |